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

7 comments
Little error at line 5. Change it to if plr.Coins.Value >= 1500 then
I'm not sure I understand... you mean when you turn on FilteringEnabled, all of your code erases and you're left with just a "4" inside every script?
Yeah.
Do you use free model scripts? If so, this could be a virus.
I don't use free model scripts, I make my own scripts so..
reinstall
Try changing the script source to [Embedded]