I have a script that does three things:
When touched, teleports the player
When Touched, plays a sound
And when touched, sets the player's WalkSpeed to 16
Here is the Script:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
hit.Parent.Head.CFrame = CFrame.new(-736.004, 8.161, 124.424)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
game.Workspace.WorkspaceSoundService.Sound:Play()
end
end)
Everything works fine in Studio, but when I get into the actual game, it ignores the sound and WalkSpeed changes, and just teleports.
Any help?
