I've been trying to script a murder game, and im learning how to do so from a youtube series called ROBLOX U: Mad Bloxxer Lessons. I'm testing the game rn and there is this one mistake that says this:
10:51:55.289 - Players.BARBARIAN59.PlayerGui.ScreenGui.LocalScript:78: '=' expected near '=='
then i thought, well, on the tutorial, stickmasterluke placed in 2 "=" to make it is equal to. But when I take out one of the equal signs, it leads to another mistake that says something about a identifier. Here is what I have around that line:
event.OnClientEvent:connect{funtion(...)}
local tuple = {...}
if tuple[1] == "Result" then
if tuple[2] == "KnifemanWin" then
resultname.Text = "KNIFEMAN WINS!"
resultname.TextColor3 = Color3.new(255, 0, 0)
resultdesc.Text = "The Knifeman killed everyone before the officer stopped him."
else
resultname.Text = "INNOCENT WINS!"
resultname.TextColor3 = Color3.new(0, 255, 0)
resultdesc.Text = "The Innocent helped the Officer to kill the Knifeman!"
end
resultprompt.Visible = true
resultprompt.Position = UDim2.new(0, -400, .5, -92)
resultprompt:TweenPosition(UDim2.new(.5, -170, .5, -192), "Out", "Quad", 1)
wait(5)
resultprompt:TweenPosition(UDim2.new(1, 60, .5, -92), "Out", "Quad", 1)
else
tuple[1] == "Class" then
if tuple[2] == "Knifeman" then
classname.Text = "KNIFEMAN"
classname.TextColor3 = Color3.new(255, 0, 0)
classdesc.Text = "Kill everyone you see! Watch out for the Officer as the Officer can kill you!"
elseif tuple[2] == "Officer" then
classname.Text = "OFFICER"
classname.TextColor3 = Color3.new(0, 0, 255)
classdesc.Text = "Try to track down the Knifeman and kill him for good!"
else
classname.Text = "INNOCENT"
classname.TextColor3 = Color3.new(0, 255, 0)
classdesc.Text = "Try to help the Officer find the Knifeman!"
end
classprompt.Visible = true
classprompt.Position = UDim2.new(0, -400, .5, -92)
classprompt:TweenPosition(UDim2.new(.5, -170, .5, -192), "Out", "Quad", 1)
wait(5)
classprompt:TweenPosition(UDim2.new(1, 60, .5, -92), "Out", "Quad", 1)
end)
Can anyone find out if this works so there would not be any errors.

1 comment
Wow, wonder why someone downvote when i'm trying to get help. Unless this is demanding. smh.