Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My game doesn't work when it's published? [closed]

Asked by 7 years ago

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.

0
This can be because you have LocalScripts in Workspace or Scripts in StarterGui Hybric 271 — 7y
0
when do I use a script vs. local script Pidude_314 -5 — 7y

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

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

0
use code block of all BlackOrange3343 2676 — 7y
Ad