UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 29 Mar 2013 05:53 PM |
function OnClicked() --Checks for clicks
print("Yo")
end --Ends checking or clicks
script.Parent.MouseButton1Down:connect(OnClicked) --Sets button
17:50:53.189 - Players.Player1.Backpack.PlayGui.PlayButton.PlayScript:7: ')' expected near '' |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
| |
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 29 Mar 2013 06:32 PM |
What is this in? (starterGUI, and any frames?) And, is it a GUI? |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2013 06:36 PM |
There is a hidden character between the "O" and the "n" of "On" inside of your connection at line seven. If you retyped it, it would work just fine. Here is my version, just copy and past it. If you made your script in word then know that Microsoft word and other editors may insert hidden characters into the code. Instead, use a editor like Notepad++, LuaEdit, Note Pad, Word Pad, or the IDE inside of ROBLOX.
local function OnClicked() print "Yo" end script.Parent.MouseButton1Down:connect(OnClicked) |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 29 Mar 2013 06:54 PM |
| @Arbirator, I just put it into notepad and i saw it xD |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 29 Mar 2013 10:36 PM |
| Thanks guys, I feel so stupid xD what is IDE though? |
|
|
| Report Abuse |
|
|