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
 

GUI setting

Previous Thread :: Next Thread 
Gorgon13673 is not online. Gorgon13673
Joined: 13 Oct 2010
Total Posts: 71
16 Aug 2012 02:52 PM
print("Testing "script:GetFullName())

local Tool = script.Parent

function onButton1Down(mouse)
print("Target: "..mouse.Target.Parent.Name.."."..mouse.Target.Name)
if mouse.Target.Parent.GUI ~= nil then
local g = mouse.Target.Parent.GUI:clone()
...
...
...
g.Parent =
end
end

function onEquippedLocal(mouse)
mouse.Icon ="rbxasset://textures\\DragCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

function onUnequippedLocal(mouse)
mouse.Icon ="rbxasset://textures\\DragCursor.png"
end

Tool.Equipped:connect(onEquippedLocal)
Tool.Unequipped:connect(onUnequippedLocal)



--This script should on part clicked -> clone GUI from part to Player holding the tool
--I am not sure how to find what player is holding tool and put it in the correct place
Report Abuse
Gorgon13673 is not online. Gorgon13673
Joined: 13 Oct 2010
Total Posts: 71
16 Aug 2012 03:37 PM
Any ideas?
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
16 Aug 2012 03:50 PM
Problem with line one. it should be print("Testing "..script:getFullName())
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