Im making a tool that spawns some sorttt of landmine I think and the landmine notee wokring

local Debouce = script.DeBounce
Debouce.Value = false

script.Parent.Touched:Connect(function(e)
	local hum = e.Parent:FindFirstChildOfClass("Humanoid")
	print("sup")
	if hum and hum.Health > 0 and not Debouce and hum.Parent.Name ~= script.Parent.Name then
		print("owwwwwwwwwww")
		Debouce.Value = true
		script.Parent.Decal.Transparency = 1
		script.Parent.Decal2.Transparency = 0
		hum:TakeDamage(math.random(75,200))
		local sound = script.CreepyNoise
		sound.PlaybackSpeed = math.random(90,105)/100
		sound.Parent = e
		sound:Play()
		game:GetService("Debris"):AddItem(sound,sound.TimeLength)
		sound.Stopped:Wait()
		script.Parent.Decal.Transparency = 0
		script.Parent.Decal2.Transparency = 1
		Debouce.Value = false
	end
end)

(((i made tool make clone of thing in serverstorage and name script.Parent afterrr the person who spawned it)))) im dont know why this not working it prints sup but now owwwwwww

you must check for the value not the value instance

and not Debounce.Value
1 Like

;-;

Blockquote

Blockquote

;-,

type or paste code here
1 Like