ex_f
|
  |
| Joined: 11 Jul 2011 |
| Total Posts: 8397 |
|
|
| 14 Oct 2016 10:21 PM |
(I'm new at th########### #s####OBLOX's floating ball script
local LocalPlayer = ga######################################local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() local Orb = Instance.new("Part", Character) 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 = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end
I wanted to know how to insert a clickdetector in there properly.
I'VE ALREADY TRIED CREATING A NEW INSTANCE AND SETTING THE PARENT TO THE ORB BUT THE POINTER DOESN'T APPEAR WHEN I HOVER MY MOUSE OVER THE ORB.
And when I check the explorer, it says there's a clickdetector in it but the pointer never comes up.
Help? :> |
|
|
| Report Abuse |
|
|
Devnxius
|
  |
| Joined: 24 May 2016 |
| Total Posts: 254 |
|
|
| 14 Oct 2016 10:40 PM |
local Orb = Instance.new("Part", Character) 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 CD = Instance.new("ClickDetctor", Orb) // THIS, YOU CAN CHANGE ORB TO ANY PART OF THE GAME
local BodyPosition = Instance.new("BodyPosition", Orb)
while wait(0) do BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2016 10:48 PM |
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
i am the best melon ever |
|
|
| Report Abuse |
|
|