Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My game doesn't work when it's published?

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.

2 comments

0

This can be because you have LocalScripts in Workspace or Scripts in StarterGui

0

when do I use a script vs. local script

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.