ScriptBlox is undergoing maintenance, so downtime is possible. Sorry for the inconvenience!
Universal Script ๐Ÿ“Œ
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

View Raw
Edited By: Shenanigga Download


Comments
3
User profile picture
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
User profile picture
Dexemox 2 years ago - Edited
learn how to use pathfinding service
User profile picture
Shenanigga 2 years ago - Edited
@Scripter @Breadido thank you so much guys now i know how to do it thanks <33
Please Login to add a comment.