[Solved] How exploiter can move the part?

The exploiter can move the parts
what can I do to keep parts from moving by exploiters?
video : https://i.gyazo.com/f30ab66bf67b9c6a022dc7e411a10ddc.mp4

here is the script i use

db = false

script.Parent.Touched:Connect(function(hit)
	if hit.Parent.Name == "Sickle" and db == false then
		local plr = game.Players:GetPlayerFromCharacter(hit.Parent.Parent)
		if plr then
			if not plr:FindFirstChild("StickleDelays") then
				db = true
				plr.Character.Humanoid:MoveTo(script.Parent.Position)
				script.Parent.Name = "_grassDelay"
				script.Parent.ParticleEmitter:Emit(20)
				script.Parent.BillboardGui.Enabled = false
				script.Parent.Sound:Play()
				script.Parent.Get.Enabled = true
				plr.leaderstats.Baht.Value += 3
				if hit.Parent then
					local delays = Instance.new("BoolValue",plr)
					delays.Name = "StickleDelays"
					game.Debris:AddItem(delays,0.6)
				end
				wait(1)
				script.Parent.Get.Enabled = false
				wait(10)
				script.Parent.Name = "_grass"
				db = false
				script.Parent.BillboardGui.Enabled = true
			end
		end
	end
end)

You can’t stop exploiters from editing things on their client. What you can do is detect if the player is near the part that is touched to stop them from triggering the touched event from a distance.

2 Likes

Thank you samtheblender!