Is it possible to have a script where players move automatically without having to click a key? If there is, how would it work?
COMMUNITY QUESTION
Is This Possible? (Auto Movement)
1 answer
Yes, there is a way to move a player's character to a specific location. In the character's Humanoid, you can find a section of property values named WalkToPoint, WalkToPart, and TargetPoint. These are used to make the player move to a specific location through a script! I would suggest WalkToPoint though for positions.
For example:
local debounce = true
script.Parent.Touched:connect(function(plr)
if debounce == true then
local humanoid = plr.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil then
humanoid.WalkToPoint = Vector3.new(0,50,0) -- replace numbers with desired position
wait(2)
debounce = true
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
