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 » Scripting Helpers
Home Search
 

Re: (BASIC) Tool help?

Previous Thread :: Next Thread 
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
30 Dec 2011 11:06 AM
I've been experimenting with tools lately, and not having much luck....

Here's one of my first trys, yet it doesn't work.... Please help!

Ben = script.Parent

function Down(mouse)
h = mouse.Target
if (h ~= nil) then
if h.ClassName == "Part" then
h.BrickColor = BrickColor.new("Really black")
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"

elseif

print("Y U NO NO PARTYS???")

end
end
end

function Equip(mouse)
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
end

mouse.Button1Down:connect(Down)
Ben.Selected:connect(Equip)


And thanks. :)

Christmas? BAH HUMBUG!
Report Abuse
metaplates is not online. metaplates
Joined: 20 Dec 2011
Total Posts: 423
30 Dec 2011 11:08 AM
    Ben = script.Parent
    function Down(mouse)
    h = mouse.Target
    if (h) then
    if h:IsA('Part') then
    h.BrickColor = BrickColor.new("Really black")
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    else
    print("Y U NO NO PARTYS???")
    end
    end
    end
    function Equip(mouse)
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    end
    mouse.Button1Down:connect(Down)
    Ben.Selected:connect(Equip)

-metaplates, Master of JavaScript.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
30 Dec 2011 11:12 AM
Doesn't work. :L

Christmas? BAH HUMBUG!
Report Abuse
metaplates is not online. metaplates
Joined: 20 Dec 2011
Total Posts: 423
30 Dec 2011 11:14 AM
    Ben = script.Parent
    function Down(mouse)
    h = mouse.Target
    if (h) then
    if h:IsA('Part') then
    h.BrickColor = BrickColor.new("Really black")
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    else
    print("Y U NO NO PARTYS???")
    end
    end
    end
    function Equip(mouse)
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    end
    Ben.Selected:connect(function(m) Equip(m) m.Button1Down(function() Down(m) end) end)

-metaplates, Master of JavaScript.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
30 Dec 2011 11:24 AM
Doesn't work, thanks for trying so hard though. ;)

Christmas? BAH HUMBUG!
Report Abuse
metaplates is not online. metaplates
Joined: 20 Dec 2011
Total Posts: 423
30 Dec 2011 11:27 AM
    Ben = script.Parent
    function Down(mouse)
    h = mouse.Target
    if (h and h:IsA('Part')) then
    h.BrickColor = BrickColor.new("Really black")
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    else
    print("Y U NO NO PARTYS???")
    end
    end
    function Equip(mouse)
    mouse.Icon = "rbxasset://textures\ArrowCursor.png"
    end
    Ben.Equipped:connect(function(m) Equip(m) m.Button1Down(function() Down(m) end) end)
Are you using a tool or Hopperbin? If you're using a tool, that should work.

-metaplates, Master of JavaScript.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
30 Dec 2011 11:35 AM
I changed it to a tool, and it still didn't work. :/

Christmas? BAH HUMBUG!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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