SGP_PRO
(SG_Playz)
#1
i want to make a start screen and stop walking when start screen is open. However, the player didn’t stop walking when i use this script, what wrong?
local button = script.Parent
local blur = game.Lighting.Blur
game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”).Walkspeed = 0
button.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”).Walkspeed = 16
blur.Enabled = false
button.Visible = false
end)
1 Like
Apicphis
(Apicphis)
#2
The property is WalkSpeed, not Walkspeed.
This script should work:
local button = script.Parent
local blur = game.Lighting.Blur
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 0
button.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 16
blur.Enabled = false
button.Visible = false
end)
1 Like
It’s WalkSpeed
not Walkspeed
.
Forummer
(Forummer)
#4
local Lighting = game:GetService("Lighting")
local Blur = Lighting:WaitForChild("Blur")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
Humanoid.JumpHeight = 0
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
Humanoid.WalkSpeed = 16
Humanoid.JumpPower = 50
Humanoid.JumpHeight = 7.2
Blur.Enabled = false
Button.Visible = false
end)
“WalkSpeed” not “Walkspeed”, I’ve also made it so that the player’s character cannot jump while the loading screen is active.