Hi, I am working on an obby game.
The game settings: Jump: 0 Walk: 0
Basically, you cannot move or jump.
local sounds = game.Workspace.Sounds
local player = script.Parent.Parent.Parent.Parent
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.2,Enum.EasingStyle.Linear)
local SongFadeTweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Quad)
local SongFadeOut = TweenService:Create(sounds.MainMenu,SongFadeTweenInfo,{Volume=0})
local button = script.Parent.Parent:WaitForChild("PlayButton")
button.MouseEnter:Connect(function()
button.Parent.Texty.Visible = true
end)
button.MouseLeave:Connect(function()
button.Parent.Texty.Visible = false
end)
button.MouseButton1Click:Connect(function()
local Character = game.Workspace:FindFirstChild(player.Name)
script.Parent.Visible = false
script.Parent.Parent.Texty.Visible = false
SongFadeOut:Play()
wait(2)
script.Parent.Parent.ImageLabel.Visible = false
script.Parent.Parent.TextLabel.Visible = false
game.Lighting.Blur:Destroy()
Character.Humanoid.WalkSpeed = 16
Character.Humanoid.JumpPower = 50
wait(5)
script.Parent.Parent.ModeSelectFrame.Visible = true
script.Parent.Parent.ModeSelectBackground.Visible = true
script.Parent.Parent.Texty2.Visible = true
end)
This is a LocalScript in StarterGUI > Frame > TextButton
This script works fine, but the WalkSpeed and JumpPower change doesn't apply on respawn. Any help is appreciated!
If you want more information, please ask. I will answer whenever I can.

1 comment
I believe the problem of this is the game starter walk speed and jump power is at 0 so when you respawn it stays like that. How can I change that? I understand the problem, just didn't knew how to fix it