For sure
You didnt send the actual script, send a screenshot so your gonna have to implement into your script
local isLeft = false
local isRight = true
MB.RightButton.InputBegan:Connect(function()
isRight= true
end)
MB.LeftButton.InputBegan:Connect(function()
isLeft = true
end)
MB.RightButton.InputEnded:Connect(function()
isRight = false
hum:Move(char.HumanoidRootPart.Position)
end)
MB.LeftButton.InputEnded:Connect(function()
isLeft = false
hum:Move(char.HumanoidRootPart.Position)
end)
game:GetService("RunService").Heartbeat:Connect(function()
if isLeft then
hum:Move(Vector3.new(0,0,1))
elseif isRight then
hum:Move(Vector3.new(0,0,-1))
end
end)
2 Likes
oh mb bro u had to type allat
Anyways It worked flawlessly, thanks for all your help
1 Like
glad it worked for you good luck with your game looks cool
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.