local button = script.Parent
local player = game.Players.LocalPlayer
button.MouseButton1Click:Connect(function()
player:Move(Vector3.new(0, 0, -1), false)
end)
none of these scripts work
Here’s a interesting fact to know:
I believe this also happens when calling the Move
function on the Player object as well, which is why I resulted to disable the Controls to prevent it from overriding every frame
@Creeperman16487 Are you sure that you tried my script? The Humanoid’s WalkSpeed should be 16
im sorry but i need the humanoid speed to 50
Ok that should still work regardless
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Button = script.Parent
local PlayerControls = require(Player.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerControls:GetControls()
Button.MouseButton1Click:Connect(function()
print("Clicked")
Controls:Disable()
wait(1)
Player:Move(Vector3.new(0, 0, -1), false)
print("Moving")
end)
What about this?
it didnt work and it didnt print anything maybe i can give the place copy to you privately and help me out
is your button script disabled false?
local button = script.Parent
local player = game.Players.LocalPlayer
local PlayerControls = require(player.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerControls:GetControls()
button.MouseButton1Click:Connect(function()
Controls:Disable()
player.Character.Humanoid:MoveTo(Vector3.new(1, 0, 0))
player.Character.Humanoid.MoveToFinished:Wait()
Controls:Enable()
end)