|
| 27 Dec 2016 08:12 AM |
| I have 3 scripts on my server. Yesterday, they were fine, but today, they do not execute in the game at all, in both studio and the regular scripts. I can comment out the "problem script" but it then tells me another script is the problem. Please help me with this. IDK what is wrong? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 27 Dec 2016 08:14 AM |
Open your output and see what it's telling you. If the scripts aren't massive free model word-walls, then post them, and make note of the problem-bits.
|
|
|
| Report Abuse |
|
|
|
| 27 Dec 2016 08:21 AM |
My output is open, and it is saying that a certain line is breaking. But here's the thing. If I have only one script running, it has no problems. It can be any of the three scripts.
SCRIPT 1:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local hum = character:WaitForChild("Humanoid") hum.WalkSpeed = 0 end) end)
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local hum = character:WaitForChild("Humanoid") hum.JumpPower = 0 end) end)
SCRIPT 2:
local clock = 0 while true do game.Lighting:SetMinutesAfterMidnight(clock) clock = clock + 1 wait(1) end
SCRIPT 3
-- Variables --
local RoundLegnth = 300 local IntermisionLegnth = 60 local RoundStartTime
-- End Of Variables --
-- Functions --
local function StartGame() RoundStartTime = tick() end local function Intermission() wait(IntermisionLegnth) end
-- End Of Functions --
-- Main Code -- while true do StartGame() repeat local CurrentTime = tick() local RoundCurrentTime = CurrentTime - RoundStartTime until RoundCurrentTime > RoundStartTime Intermission() end
-- End of Main Code--
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 27 Dec 2016 08:25 AM |
Length is misspelled several times, and there are a few very ugly pieces here, however, the error is in the end of the third script I believe
It should say
repeat local RoundCurrentTime = tick()-RoundStartTime until RoundCurrenttime>= 180 -- replace 180 with your round length in seconds
|
|
|
| Report Abuse |
|
|
|
| 27 Dec 2016 08:31 AM |
| Ok, thanks. It worked when I replaced it. If you don't mind me asking, why did it work? And what were the ugly parts of the code. The scripts are modeled after the ROBLOX tutorials. Oh yeah, and spelling was never one of my strengths, Lol. |
|
|
| Report Abuse |
|
|