Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a part teleport to you after a certain amount of time?

I tried to make a script of it but it didnt work. Here is the script I used: local award = game.Workspace.BadgeAwarder2 local player = game.Players.LocalPlayer local character = game.Players.LocalPlayer.Character local humanoid = character:WaitForChild("Humanoid") local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

wait(10) award.Part.Position=Vector3.new(humanoidRootPart.Position)

1 answer

You put "Vector3.new(humanoidRootPart.Position)" instead of just "humanoidRootPart.Position"

The position propertie is already an vector3, so, you're trying to put an vector3 inside a vector3.new, ti causes an error because of that, heres a fixed script

local award = game.Workspace.BadgeAwarder2 
local player = game.Players.LocalPlayer 
local character = game.Players.LocalPlayer.Character 
local humanoid = character:WaitForChild("Humanoid") 
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

wait(10) 
award.Position = humanoidRootPart.Position

This discussion is preserved as it was. New answers, comments, and votes are closed.