Hi, when I turn on FilteringEnabled, all my scripts' (Both Scripts and LocalScripts) written code turned to
4
before all written code turned to 4. this is what my script is.
local plr = game.Players.LocalPlayer.leaderstats local name = game.Players.LocalPlayer.Character local backpack = game.Players.LocalPlayer.Backpack script.Parent.MouseButton1Click:Connect(function() if plr.Coins.Value +1500 then plr.Coins.Value = plr.Coins.Value -1500 local clone = game.Lighting.Magics.BubbleMagic:Clone() clone.Parent = backpack clone.Disabled = false script.Parent.Visible = false end if plr.Coins.Value <1500 then script.Parent.Text = "No Coins to buy this magic, "..name.Name.."." wait(2) script.Parent.Text = "Bubble Magic - 1500 Coins" end end)
When I turned off FilteringEnabled, this always happen. Is FilteringEnabled or an error doing this??
Error at line 5 ex of what it should be:
if plr.Coins.Value > 1500 then --Code end