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
01 | workspace:WaitForChild( "Player_Name" ) |
03 | local Orb = Instance.new( "Part" ,workspace) |
05 | Orb.Shape = Enum.PartType.Ball |
07 | Orb.BrickColor = BrickColor.new( "Bright green" ) |
08 | Orb.Transparency = 0.25 |
09 | Orb.Size = Vector 3. new( 2 , 2 , 2 ) |
10 | Orb.TopSurface = Enum.SurfaceType.Smooth |
11 | Orb.BottomSurface = Enum.SurfaceType.Smooth |
13 | local BodyPosition = Instance.new( "BodyPosition" , Orb) |
15 | BodyPosition.Position = workspace [ "Player_Name" ] .Head.CFrame:pointToWorldSpace(Vector 3. new( 2 , 1 , 0 )) |