|
| 18 Jul 2011 06:26 PM |
Everyt thing works until you get to the /Problem below here!!!\
local tool = script.Parent local mainGui = tool.CraftGui local player = tool.Parent.Parent tool.Selected:connect(function(mouse) mainGui.Parent = player.PlayerGui end) tool.Deselected:connect(function(mouse) mainGui.Parent = tool end)
/Problem below here!!!\
function onButton1Down(mouse) local targ = mouse.Target if targ.Locked ~= nil then mainGui.Frame.Contents.Text = ( ..(targ.Name)) mouse.Button1Down:connect(function() onButton1Down(mouse) end)
|
|
|
| Report Abuse |
|
|
| |
|
PsychoBob
|
  |
| Joined: 08 Jul 2009 |
| Total Posts: 11047 |
|
| |
|
|
| 18 Jul 2011 07:38 PM |
| WTF IF YOU DONT KNOW DONT POST! IDK why you ask for output. IT SAYS NOTHING. |
|
|
| Report Abuse |
|
|
Zkiller11
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 2914 |
|
|
| 18 Jul 2011 07:43 PM |
Because, Output can help fix the script.
(By the way, screaming at people will get you no where.) |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2011 07:45 PM |
function onButton1Down(mouse) local targ = mouse.Target if targ.Locked == false then mainGui.Frame.Contents.Text = ( ..(targ.Name)) mouse.Button1Down:connect(function() onButton1Down(mouse) end) |
|
|
| Report Abuse |
|
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 18 Jul 2011 08:12 PM |
"( ..(targ.Name))"
.. is used when you need to merge 2 strings, there is no second string here so it breaks the script.
targ.Name
Will do fine.
That may not be the only error, but it's one.
|
|
|
| Report Abuse |
|
|
|
| 18 Jul 2011 08:45 PM |
| I need it to be .. because I want the text to be whatever it was before plus what is selected |
|
|
| Report Abuse |
|
|
| |
|