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

How to teleport something around a player?

How can i teleport a bunch of items randomly around a player?

example;

for _, parts in pairs(game.Workspace.Model:GetChildren()) do

parts.CFrame = CFrame.new(Player.HumanoidRootPart.Position + Vector3.new(random(10 to 20 studs))

end

or something

1 comment

0

math.random(10,20)

1 answer

Do what the comment said

for _, parts in pairs(game.Workspace.Model:GetChildren()) do

parts.CFrame = CFrame.new(Player.HumanoidRootPart.Position + Vector3.new(math.random(10,20)) --all credit goes to Feahren

end

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