I test my game out on roblox studio and it works, but when I publish it and play through the roblox launcher, several things don't work any more.
COMMUNITY QUESTION
My game doesn't work when it's published?
1 answer
local function lol()
local player = game.Players.LocalPlayer
if player.TeamColor == BrickColor.new("White") and script.Parent.BrickColor ==
BrickColor.new("Medium stone grey") then
player.TeamColor = BrickColor.new("Bright blue")
script.Parent.BrickColor = BrickColor.new("Bright blue")
end
end
script.Parent.Touched:connect(lol)
this is one of the scripts
1 comment
0
use code block of all
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This can be because you have LocalScripts in Workspace or Scripts in StarterGui
when do I use a script vs. local script