I got this error while writing a script that deactivates Roblox studio videos when you touch a certain part and activates another video. (for a 2d game, couple of my stages are set in a city and I wanna make ads for billboards in the background.)
script.Parent.Touched:Connect(function()
if workspace.Advertisement2.SurfaceGui.BloxyCola.Playing = false then
workspace.Advertisement1.SurfaceGui.Eat.Playing = true
elseif
workspace.Advertisement2.SurfaceGui.BloxyCola.Playing = true then
workspace.Advertisement1.SurfaceGui.Eat.Playing = false
end
end)
I tried putting == instead of just 1 '=' but that just made it not work. I put prints in between each line and the script goes through, Just the video doesn't play. so I'm pretty sure its because of those double equals.

1 comment
If statments require two =='s.