#how to delete that i created clone

1 messages · Page 1 of 1 (latest)

sage night
#

local clone = urpart:Clone()
clone:Destroy()

clever sand
#

ty

timid agate
sage night
timid agate
#

😔😔

sage night
clever sand
#

i have new question

timid agate
#

What do you think debris does?

clever sand
sage night
river jacinth
sage night
clever sand
sage night
#

Oops

#

if not cd then

#

forgot

#

almost the same thing tho

river jacinth
river jacinth
#

Anyways @clever sand, make sure to handle debounces (cooldowns) on the server. Just adds a good layer of anticheat

timid agate
#

Script.parent

clever sand
#

local WaitTime = 0.5
local damage = 10
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local debounce = false

script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")

if humanoid and not debounce then
    debounce = true
    humanoid:TakeDamage(damage)
    wait(WaitTime)
    debounce = false
end

end) what i did wrong in that code? that code for htibox that spawning and deleting

lilac gladeBOT
#

studio** You are now Level 1! **studio

clever sand
placid wyvern
#

uh

#

is humanoid a boolean ?

#

like in your code

#

idk

#

try to do local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")

placid wyvern
#

btw is this a local script?

#

cuz there is a player variable

clever sand
placid wyvern
#

make sure its a script and delete the player things

placid wyvern
# clever sand yes

if you plan to deal damage to player you need to do it on server side not on client side