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: What is wrong? DONT POST IF YOU DON'T KNOW.

Previous Thread :: Next Thread 
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
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
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
18 Jul 2011 06:42 PM
bump
Report Abuse
PsychoBob is not online. PsychoBob
Joined: 08 Jul 2009
Total Posts: 11047
18 Jul 2011 07:13 PM
Post the output?
Report Abuse
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
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 is not online. 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
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
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
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
18 Jul 2011 08:03 PM
still not working
Report Abuse
swmaniac is not online. 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
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
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
TundraFlames is not online. TundraFlames
Joined: 04 Jul 2011
Total Posts: 357
18 Jul 2011 08:51 PM
nvm. fixed it.
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