
10.1k Views
Help me to make an Walk into item
Universal Script ๐Uploaded by 2 years ago
Please login to perform these actions:
Description
i want to make an script in rng game that walking into item i can only do tp can someone give me an example so i can figure it
Comments
3

Offline
Kona 2 years ago - Edited
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local collectibles = game.Workspace.Collectibles:GetChildren()
for _, collectible in ipairs(collectibles) do
local targetPosition = collectible.Position
humanoid:MoveTo(targetPosition)
humanoid.MoveToFinished:Wait() --wait until the character reaches the position
end
-- i hope this helps
Offline
Dexemox 2 years ago - Edited
learn how to use pathfinding service
Offline
Shenanigga 2 years ago - Edited
@Scripter @Breadido thank you so much guys now i know how to do it thanks <33
![[๐ RELEASE] Anime Astral Simulator](/images/script/113236157544232-1780333729144.png)
Voxle Hub
