Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This one is more clear, Expected end (to close function at line 75) got eof?

Asked by 3 years ago
Edited 3 years ago

On this one I added numbers on the lines, but the same thing.

Script:

line 1:local module = {} 2: 3: local status = game.ReplicatedStorage:WaitForChild("Status") 4: 5: function module.Intermission(length) 6: for i = length,0,-1 do 7: status.Value = "Next round starts in "..i.." seconds" 8: wait(1) 9: end 10: end 11: 12: function module.SelectChapter() 13: local rand = Random.new() 14: local chapters = game.ReplicatedStorage.Chapters:GetChildren() --- Table of all map models 15: local chosenChapter = chapters[rand:NextInteger(1,#chapters)] 16: 17: return chosenChapter 18: end 19: 20: function module.ChooseCookie(players) 21: 22: local RandomObj = Random.new() 23: 24: local chosenCookie = players[RandomObj:NextInteger(1,#players)] 25: 26: return chosenCookie 27: 28: end 29: 30: function module.TeleportCookie(player) 31: if player.Character then 32: 33: player.Character.Humanoid.WalkSpeed = 14 34: 35: local bat = game.ServerStorage.Tools.Sword:Clone() 36: bat.Parent = player.Character
37: 38: if player.Character:FindFirstChild("HumanoidRootPart") then 39: player.Character.HumanoidRootPart.CFrame = 40: game.Workspace.WaitingRoom.CookieWaitingSpawn.CFrame + Vector3.new(0,5,0) 41: end 42: end 43: end 44: 45: function module.TeleportPlayers(players, mapSpawns) 46: for i, player in pairs(players) do 47: if player.Character then 48: local character = player.Character 49:
50: if character:FindFirstChild("HumanoidRootPart") then 51:
52: player.Character.Humanoid.WalkSpeed = 16 53:
54: local rand = Random.new() 55: player.Character.HumanoidRootPart.CFrame = 56: mapSpawns[rand:NextInteger(1,#mapSpawns)].CFrame + Vector3.new(0,10,0) 57:
58: end 59: end 60: end 61: end 62: 63: function module.Insertag(contestants,tagName) 64: for i, v in pairs(contestants) do 65: local Tag = Instance.new("StringValue") 66: Tag.Name = tagName 67: Tag.Parent = v
68: end 69: end 70: 71: local function toMS(s) 72: return ("i:i"):format(s/60%60, s%60) 73: end
74: 75: function module.StartRound(length,cookie,chapterMap)
76: for i = length,0,-1 do
77: if i == (length - 20) then 78: module.TeleportPlayers({cookie},chapterMap.PlayerSpawns:GetChildren()) 79: status.Value = "Cookie is coming, dont get caught" 80: wait(5) 81: 82: end 83:
84:
85: status.Value = i 86: wait(1) 87: end 88: 89: end 90:
91: return module

0
its all cramped Megasalamencexfly 0 — 3y
0
Use a code block. JesseSong 3916 — 3y
0
wdym Megasalamencexfly 0 — 3y

Answer this question