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: Where is the function?

Previous Thread :: Next Thread 
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:33 AM
time = 20

while true do
wait(1)
time = time - 1
if (time == 0) then
local Door1 = MossyDoor1
if (workspace.Door1.Debounce.Value == false) then
workspace.Door1.Debounce.Value = true
if (workspace.Door1.Open.Value == false) then
workspace.Door1.Open.Value = true
for i=1, 14 do
workspace.Door1.Door11.CFrame = workspace.Door1.Door11.CFrame * CFrame.new(0,0,-0.425)
workspace.Door1.Door22.CFrame = workspace.Door1.Door22.CFrame * CFrame.new(0,0,0.425)
wait(60)
end
time = 20
workspace.Door1.Debounce.Value = false
return
else
workspace.Door1.Open.Value = false
for i=1, 14 do
workspace.Door1.Door11.CFrame = workspace.Door1.Door11.CFrame * CFrame.new(0,0,0.425)
workspace.Door1.Door22.CFrame = workspace.Door1.Door12.CFrame * CFrame.new(0,0,-0.425)
wait()
end
workspace.Door1.Debounce.Value = false
return
end
end
end
end --look here
end
end
end
playersa = game.Players:GetChildren()
for i=1, #playersa do
playersa[i].PlayerGui.Timer.Time.Seconds.Text = "" .. tostring(time)
wait()
end

___________________________________________________________

output: eof expected near "end", line 37

Is there a function here?

If so, please show me where it is so I may insert a end of function line, because I've scanned it multiple times and havent seen a function.
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:43 AM
Anyone?
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:51 AM
:/
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
09 Mar 2013 08:57 AM
Remove the end at line 37
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 08:59 AM
Tried that, doesnt seem to fix it.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
09 Mar 2013 09:09 AM
Add an end to your original code.
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 09:11 AM
I also tried that, but nothing seems to work... :/
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
09 Mar 2013 09:27 AM

while true do
-----if (time == 0) then
----------if (workspace.Door1.Debounce.Value == false) then
---------------if (workspace.Door1.Open.Value == false) then
--------------------for i=1, 14 do
--------------------end
---------------else
--------------------for i=1, 14 do
--------------------end
---------------end
----------end
-----end
end --look here
end
end
end

for i=1, #playersa do

end

You have three extra end's. This is why tabbing code is useful.
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
09 Mar 2013 09:27 AM
You ended something too fast probably
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 09:32 AM
I removed the extra ends, but it is broken now.
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 09:58 AM
Does the return variable need to be sighted?
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 10:13 AM
Qq
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Mar 2013 10:14 AM
You can't just say 'it's broken now' and expect us to know how to fix it ....
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
09 Mar 2013 10:15 AM
Does the output say anything different now?
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 11:15 AM
It doesnt say anything.
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
09 Mar 2013 03:30 PM
anyone?
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