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

Can Some One Help?

Im trying to make a gui on a brick than when the brick is inserted it the brick follows the player

p = Instance.new("Part", game.Workspace)
hum = script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Humanoid")
p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector

1 answer

If this is the only thing in the script then change

 p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector

to

while wait() do
 	p.Position = CFrame.new(10, 15, 10) * hum.Parent.Torso.CFrame.lookVector
end

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