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

I am trying to make a anti star glitcher script but it doesn't work, what am i doing wrong?

Hello , i am trying to make a anti star glitcher script for a script builder because they are so laggy, but it doesn't seem to work, in the script builder it works only for a player then it doesn't work and when i test it in studio it just doesn't work, it doesn't give errors, why?

function Anti(plr)
repeat wait(1) print("No character") until plr.Character
		
		local Chara = plr.Character
		local Total = 0
		for i,v in pairs(Chara:GetChildren()) do
			if not  v:IsA("Accessory") and not v:IsA("Pants") and not v:IsA("BodyColors") and not v:IsA("ForceField") and not v:IsA("Shirt") then
				print(v.ClassName)
				print("acceeded to")
			Total = Total+1
			end
		end
		local endd = false
		print(Total)
		if Total < 20 then
			wait(2)
			Chara.ChildAdded:Connect(function(c)
				if not endd then
					Total = Total+1
					print("Child added")
					print(Total)
					if Total >= 20 and endd == false then
						print("gru called.")
						endd = true
						Gru(plr)
						table.insert(GruDebounce, plr.Name)
						
					end
					end
				
			end)
		elseif not endd and Total >= 20 then
			print("Gru called")
			Gru(plr)
			endd = true
			table.insert(GruDebounce, plr.Name)
			
		end
end

3 comments

0

also, the Anti() is connected when a player joins the game and it also connects when the script gets all the players, the gru function is the function that gives a punishment to the player

0

and gru kills the player and then calls anti again

0

also the star glitcher is not a collectible coin, its a script

1 answer

I'm assuming this is a collectible star, if so you don't need all this complex code, i fixed it myself with this model:

https://www.roblox.com/library/3324823433/Gamings-Coin-2019

It's easier to put a model link than write a bunch of code and explorer edits. Please give credit i guess.

How to Set Up: Insert model into game: Change Mesh ID and read the 'read me' (since by default its a coin) Respawn code and stuff are already set up and i can't remember if u can edit easily or not. Enjoy!

3 comments

0

sorry, but with star glitcher i meant a script not a glitched star or coin, thanks anyways

0

No, star glitcher is a script, look it up its kinda cool

0

Oh i see, never mind then

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