pad1 = workspace["Open me"].Stop
pad = workspace["Open me"].Start
pad.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local Playing = plr.Playing
Playing.Value = true
end
pad1.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local Playing = plr.Playing
Playing.Value = false
wait(3)
Playing:destroy()
end
end)
Error: Players.xp5u.PlayerScripts.LocalScript:22: Expected 'end' (to close 'function' at line 3), got ; did you forget to close 'then' at line 12? - Studio - LocalScript:22

2 comments
It doesn't exactly work, I got: Players.xp5u.PlayerScripts.LocalScript:22: Expected ')' (to close '(' at line 11), got - Studio - LocalScript:22
Oh yeah... Try Hate_ZEU's response below then.