I was editing the cutscene editor's main script for the skip button and I am not really sure why my script wont work. Im trying to allow the local player to click on the button and have them teleport to my second place.
repeat wait () until script.Parent.Cutscene.Value ~= nil
script.Parent.Skip.Visible = true
function onClicked(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService("TeleportService"):Teleport(1519449994, player)
script.Parent:Destroy()
end
end
script.Parent.Skip.MouseButton1Down:connect(onClicked)

1 comment
MouseButton1Down doesn't return anything