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

So I was trying to make a murderer game but I need help... Do you think you can help?

Asked by 5 years ago
Edited 5 years ago

So i was using a code made by HowToRoblox and tried to modified it here's the code that I modified

I have added a BoolValue named it Ingame

This script is in the ServerScriptService

There's no errors in this script but I don't understand what I did wrong sorry --edited

01local killerWeapon = game.ServerStorage.ClassicSword
02 
03local plrs = game.Players
04 
05local survivors = {}
06 
07local Ingame = game.ReplicatedStorage.InGame
08 
09while wait(Ingame.value == true) do
10 
11    local chosen = plrs:GetChildren()[math.random(1, #plrs:GetChildren())] 
12 
13    chosen.PlayerGui.Picker.Background.RoleGiven.Text = "Murder"
14    chosen.PlayerGui.Picker.Background.RoleGiven.TextColor3 = Color3.fromRGB(0, 0, 0)
15 
View all 35 lines...

Do you guys think you can fix what I have done wrong?

0
ever heard of an output? greatneil80 2647 — 5y
0
Yes. Eric_pokemon 133 — 5y
0
What greatneil80 is saying is that what was the error. It is impossible to fix unless we know the error code applebugr21 30 — 5y
0
oh sorry Eric_pokemon 133 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

the error might be that you put while wait(Ingame.value == true) do instead of while Ingame.Value == true because wait needs a number not a bool like true or false, do

1while Ingame.value == true do

also, you put plr == chosen instead of plr.Name == chosen.Name, change that

0
thank you Eric_pokemon 133 — 5y
Ad

Answer this question