Win Trigger Script
Customize your variables, then fill in the blanks!
Your Custom Settings
ScreenGui name in StarterGui
Part name in Workspace
LocalScript (StarterPlayerScripts)
This shows a win screen when the player touches the finish platform. Create a ScreenGui with a Frame called "winGui" (Enabled = false), and a part called "winPlatform" at the end of your obby.
local plr = game..LocalPlayer
local winScreen = plr:WaitForChild(""):WaitForChild("winGui")
local winPlatform = :WaitForChild("winPlatform")
local function onTouch(part)
local character = plr.
if not character then return end
if part:(character) then
winScreen. = true
end
end
winPlatform.:Connect(onTouch)
