Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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)

0
I updated the script so it should work if you enter the players name in "Player Name" chaos2022 43 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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

0
Script doesn't work (both in sever and local scripts). LoganboyInCO 150 — 6y
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) chaos2022 43 — 6y
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. chaos2022 43 — 6y
0
My question isnt a request, you need to learn more on which question is a request and what is not. LoganboyInCO 150 — 6y
View all comments (2 more)
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. chaos2022 43 — 6y
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. LoganboyInCO 150 — 6y
Ad

Answer this question