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

I am having problems with FilteringEnabled?

Asked by 6 years ago

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

0
Little error at line 5. Change it to if plr.Coins.Value >= 1500 then User#19524 175 — 6y
0
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? chomboghai 2044 — 6y
0
Yeah. cherrythetree 130 — 6y
0
Do you use free model scripts? If so, this could be a virus. User#19524 175 — 6y
View all comments (3 more)
0
I don't use free model scripts, I make my own scripts so.. cherrythetree 130 — 6y
0
reinstall The_Pr0fessor 595 — 6y
0
Try changing the script source to [Embedded] 4D_X 118 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Error at line 5 ex of what it should be:

    if plr.Coins.Value > 1500 then
        --Code
    end
Ad

Answer this question