✓ 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
1 comment
I updated the script so it should work if you enter the players name in "Player Name"