generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: help with clickdetector

Previous Thread :: Next Thread 
ex_f is online. 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 is not online. 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
iwastedallmyrobux is not online. iwastedallmyrobux
Joined: 20 Nov 2008
Total Posts: 172
14 Oct 2016 10:48 PM
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################


i am the best melon ever
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image