Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:10 PM |
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) script.Parent.OpenGui.Visible = true key = key:lower() if key == "e" then --key if active == true then function GetGui() for i, v in pairs(script:GetChildren()) do if v:IsA("ScreenGui") then return v end return nil end Gui = GetGui() Gui.Name = script.Parent.Parent.Name .. "GUI" script.Parent.Parent.Changed:connect(function() GetGui().Name = script.Parent.Parent.Name .. "TalkGui" end) while true do wait(.1) for i, v in pairs(game.Players:GetChildren()) do if v.Character ~= nil then if v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude <= 5 and v.PlayerGui:FindFirstChild(Gui.Name) == nil then end Gui:Clone().Parent = v.PlayerGui if OpenGui == Visible then script.Parent.textlabel.text = ("Press [E] to close the information screen") key = key:lower() if key == "e" then script.Parent.Name:Remove()
elseif v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude > 5 and (script.Parent.Position - v.Character.Torso.Position).magnitude < 7 then if v.PlayerGui:FindFirstChild(Gui.Name) then v.PlayerGui[Gui.Name]:Remove() end
end end end end
end end)
Output: "unexpected symbol near ')'" |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:16 PM |
| You guys just view and ignore my threads.. |
|
|
| Report Abuse |
|
|
Perci1
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 1027 |
|
| |
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:21 PM |
...
So is this what Scripting Helpers is? Just people to lazy to actually read my script? |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 May 2014 05:24 PM |
| Give us the line number, not that we are lazy, it's that you don't know how to ask for help properly. |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:25 PM |
..Fine then. 18:25:17.071 - Workspace.(TESTING) Info.Step.Script:37: unexpected symbol near ')'
|
|
|
| Report Abuse |
|
|
|
| 18 May 2014 05:27 PM |
Come on you could have at least put an arrow by it.
|
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 18 May 2014 05:31 PM |
| Why dont you want to help us help you? |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:34 PM |
| Okay, does anyone know how to fix thee problem? |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
| |
|
|
| 18 May 2014 05:39 PM |
| put a ')' on the second last end? |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
| |
|
| |
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:41 PM |
@sensei
doing that made the second to last end error |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:42 PM |
| the final end (the one with the ")") is apparently the one with the error. |
|
|
| Report Abuse |
|
|
| |
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:45 PM |
| I got rid of them, but the script is still errored with the end at the bottom |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 05:49 PM |
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) script.Parent.OpenGui.Visible = true key = key:lower() if key == "e" then --key if active == true then function GetGui() for i, v in pairs(script:GetChildren()) do if v:IsA("ScreenGui") then return v end return nil end Gui = GetGui() Gui.Name = script.Parent.Parent.Name .. "GUI" script.Parent.Parent.Changed:connect(function() GetGui().Name = script.Parent.Parent.Name .. "TalkGui" end) while true do wait(.1) for i, v in pairs(game.Players:GetChildren()) do if v.Character ~= nil then if v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude <= 5 and v.PlayerGui:FindFirstChild(Gui.Name) == nil then end Gui:Clone().Parent = v.PlayerGui if OpenGui == Visible then script.Parent.textlabel.text = ("Press [E] to close the information screen") key = key:lower() if key == "e" then script.Parent.Name:Remove()
elseif v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude > 5 and (script.Parent.Position - v.Character.Torso.Position).magnitude < 7 then if v.PlayerGui:FindFirstChild(Gui.Name) then v.PlayerGui[Gui.Name]:Remove() end
end end end end
end) |
|
|
| Report Abuse |
|
|
Gybro
|
  |
| Joined: 23 Apr 2014 |
| Total Posts: 808 |
|
|
| 18 May 2014 05:51 PM |
| I don't know why, but something is STILL wrong with that "end)" at the bottom. The output is still spamming me the same thing. |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 05:52 PM |
I am pretty sure he needed 3 MORE ends.
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) script.Parent.OpenGui.Visible = true key = key:lower() if key == "e" then --key if active == true then function GetGui() for i, v in pairs(script:GetChildren()) do if v:IsA("ScreenGui") then return v end return nil end Gui = GetGui() Gui.Name = script.Parent.Parent.Name .. "GUI" script.Parent.Parent.Changed:connect(function() GetGui().Name = script.Parent.Parent.Name .. "TalkGui" end) while true do wait(.1) for i, v in pairs(game.Players:GetChildren()) do if v.Character ~= nil then if v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude <= 5 and v.PlayerGui:FindFirstChild(Gui.Name) == nil then end Gui:Clone().Parent = v.PlayerGui if OpenGui == Visible then script.Parent.textlabel.text = ("Press [E] to close the information screen") key = key:lower() if key == "e" then script.Parent.Name:Remove()
elseif v.Character:FindFirstChild("Torso") ~= nil and (script.Parent.Position - v.Character.Torso.Position).magnitude > 5 and (script.Parent.Position - v.Character.Torso.Position).magnitude < 7 then if v.PlayerGui:FindFirstChild(Gui.Name) then v.PlayerGui[Gui.Name]:Remove() end
end end end end end end end
end end) |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 18 May 2014 05:52 PM |
Then give us the line.
Dont expect us to read a lot of code for nothing. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 May 2014 05:54 PM |
| Try mine, it showed no red lines in studio. |
|
|
| Report Abuse |
|
|