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 » Scripters
Home Search
 

Re: Scripts Will Not Execute!!

Previous Thread :: Next Thread 
AlphaOverflow is not online. AlphaOverflow
Joined: 09 Nov 2016
Total Posts: 592
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 is not online. 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
AlphaOverflow is not online. AlphaOverflow
Joined: 09 Nov 2016
Total Posts: 592
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 is not online. 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
AlphaOverflow is not online. AlphaOverflow
Joined: 09 Nov 2016
Total Posts: 592
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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