I made it into an Local Script and tested it out and still wont work Error Output says"15:47:16.232 - ReplicatedStorage.RemoteEvent: OnClientEvent can only be used on the client"
event.OnClientEvent:connect(function(...)
local tuple = {...}
if tuple[1] == "Result" then
if tuple[2] == "BloxxerWin" then
resultname.Text = "Mad Bloxxer wins!"
resultname.TextColor3 = Color3.new(1, 74/255, 77/255)
resultdesc.Text = "All players were bloxxed."
else
resultname.Text = "Players win!"
resultname.TextColor3 = Color3.new(111/255, 149/255, 1)
resultdesc.Text = "All players were bloxxed."
end
resultprompt.Visible = true
resultprompt.Position = UDim2.new(0, -400, .5, -92)
resultprompt:TweenPosition(UDim2.new(.5, -170, .5, -92), "Out", "Quad", 1)
wait(7)
resultprompt:TweenPosition(UDim2.new(1, 60, .5, -92), "Out", "Quad", 1)
elseif tuple[1] == "Class" then
if tuple[2] == "Bloxxer" then
classname.Text = "You are the Mad Bloxxer"
classname.TextColor3 = Color3.new(1, 74/255, 77/255)
classdesc.Text = "Your goal is to blox everyone!"
end
elseif tuple[2] == "Sheriff" then
classname.Text = "You are the Sheriff"
classname.TextColor3 = Color3.new(111/255, 149/255, 1)
classdesc.Text = "Your goal is to find the Mad Bloxxer and put them away for good!"
else
classname.Text = "You are a Bystander"
classname.TextColor3 = Color3.new(117/255, 1, 156/255)
classdesc.Text = "Your goal is to help the Sheriff find the Mad Bloxxer."
end
classprompt.Visible = true
classprompt.Position = UDim2.new(0, -400, .5, -92)
classprompt:TweenPosition(UDim2.new(.5, -170, .5, -192), "Out", "Quad", 1)
wait(7)
classprompt:TweenPosition(UDim2.new(1, 60, .5, -92), "Out", "Quad", 1)
end)

1 comment
Someone has the same error here: https://scriptinghelpers.org/questions/11025/my-gui-isnt-working-the-mad-bloxxer Read my answer.