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

How would I make a brick that follows above the player?

I've tried lots of times to make something that follows above the players position (without changing the parts orientation when player rotates) and I kinda gave up at this point and came here to find out how.

(I can make a part follow a player easily but I don't know how to make it follow above the players position)

1 comment

0

I updated the script so it should work if you enter the players name in "Player Name"

1 answer

✓ Accepted answer

http://wiki.roblox.com/index.php?title=Making_a_Floating_sphere

Well since someone didn't want to read I'll just quote from the site the necessary code to do this.

Context Script in ServerScriptService

workspace:WaitForChild("Player_Name")

local Orb = Instance.new("Part",workspace)
Orb.Name = "Orb"
Orb.Shape = Enum.PartType.Ball
Orb.CanCollide = false
Orb.BrickColor = BrickColor.new("Bright green")
Orb.Transparency = 0.25
Orb.Size = Vector3.new(2, 2, 2)
Orb.TopSurface = Enum.SurfaceType.Smooth
Orb.BottomSurface = Enum.SurfaceType.Smooth

local BodyPosition = Instance.new("BodyPosition", Orb) 
while wait(0) do
    BodyPosition.Position = workspace["Player_Name"].Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0))
end

6 comments

0

Script doesn't work (both in sever and local scripts).

0

I'm just telling you how to make something float above head I updated it so if you enter your player name in the Player_Name areas it will go to that player use your own way of picking which player it follows(don't know if you're using filtering enabled or not)

0

Also this isn't a request site the script is fairly old and won't work on filtering enabled games but I didn't want write the entire thing since you would end up learning nothing.

0

My question isnt a request, you need to learn more on which question is a request and what is not.

0

Never said it was, your last comment was the request since you just tried to copy/paste the script, I'm giving you an example not a fully working script for your situation that you can just add , if you read the website or just added the last 4 lines of code to your block it would have worked which is why I suspected you just wanted a script sorry if I offended you.

0

My autistic brain just works differently from others, so the only reason I copied and pasted it is to see if it would work and it doesn't.

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