|
| 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 |
|
|
| |
|
|
| 16 Aug 2012 03:50 PM |
| Problem with line one. it should be print("Testing "..script:getFullName()) |
|
|
| Report Abuse |
|
|