Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I am having problems with FilteringEnabled?

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

0

Little error at line 5. Change it to if plr.Coins.Value >= 1500 then

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?

0

Yeah.

0

Do you use free model scripts? If so, this could be a virus.

0

I don't use free model scripts, I make my own scripts so..

0

reinstall

0

Try changing the script source to [Embedded]

1 answer

Error at line 5 ex of what it should be:

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

This discussion is preserved as it was. New answers, comments, and votes are closed.