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

script works in studio but not in actual game?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

please help, this works in studio but not in the actual game


player = workspace.Goals.Ball.LastKick transfer = workspace.Transfer camera = script.Parent.Camera camcam = script.Parent.camcam main = script.Parent function OnGoalChanged() workspace.Transfer.Value = math.ceil(((game.Players:FindFirstChild(player.Value).leaderstats.Overall.Value + game.Players:FindFirstChild(player.Value).leaderstats.Goals.Value + game.Players:FindFirstChild(player.Value).leaderstats.Assists.Value) /16)+10) script.Parent.Goal.Scorer.Text = player.Value:upper() script.Parent.Goal.Time.Text = workspace.minutes.Value .. "'" script.Parent.Goal.Frame.TextLabel.Text = "GOALS: " .. game.Players:FindFirstChild(player.Value).leaderstats.Goals.Value .. " ASSISTS: " .. game.Players:FindFirstChild(player.Value).leaderstats.Assists.Value .. " VALUE $" .. transfer.Value .. "M (NOV. 2015)" script.Parent.Flag.Image = "rbxassetid://" .. game.Players:FindFirstChild(workspace.Goals.Ball.LastKick.Value).hiddenstats.flagy.Value main.Visible = true camera.Disabled = false wait(25) camcam.Disabled = true main.Visible = false end workspace.RedScore.Changed:connect(OnGoalChanged) workspace.BlueScore.Changed:connect(OnGoalChanged)

1 answer

Log in to vote
0
Answered by
neff111 20
9 years ago

If you have this set in FilteringEnabled, this wont work in a server. If this script in in a SeverScript, chances are, it would only work in studio.

I suggest putting this in a LocalScript, and disabling FilteringEnabled if you ever set it on. I am sorry if this doesn't help in any way. q-q

Ad

Answer this question