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)
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