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: Why won't this work?

Previous Thread :: Next Thread 
Gybro is not online. 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 is not online. 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 is not online. Perci1
Joined: 24 Jan 2011
Total Posts: 1027
18 May 2014 05:20 PM
Too much reading .-.
Report Abuse
Gybro is not online. 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
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
18 May 2014 05:24 PM
Yus
Report Abuse
cntkillme is not online. 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 is not online. 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
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
18 May 2014 05:27 PM
Come on you could have at least put an arrow by it.

Report Abuse
vlekje513 is not online. 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 is not online. 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 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
18 May 2014 05:34 PM
The line?
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
18 May 2014 05:36 PM
^

And not the line number.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 May 2014 05:39 PM
put a ')' on the second last end?
Report Abuse
Gybro is not online. Gybro
Joined: 23 Apr 2014
Total Posts: 808
18 May 2014 05:40 PM
end)
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 May 2014 05:41 PM
Which line has the error
Report Abuse
Gybro is not online. 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 is not online. 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
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 May 2014 05:44 PM
You have 3 extra ends
Report Abuse
Gybro is not online. 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
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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 is not online. 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
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
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 is not online. 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
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 May 2014 05:53 PM
Vlek, he did.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
18 May 2014 05:54 PM
Try mine, it showed no red lines in studio.
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