#I don´t know what is wrong.

1 messages · Page 1 of 1 (latest)

kindred ice
#

The script breaks every time I add the "local char = hit.Parent".

#

local killPart = script.Parent

killPart.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
local moduleScript = require(game:GetService("ServerScriptService"):WaitForChild("ModuleScript"))
local safePlrs = moduleScript.safePlrs
local char = hit.Character
hum.Health = 0
end
end)

gritty isle
#

any errors?

wary mantle
timid ospreyBOT
#

studio** You are now Level 2! **studio

kindred ice
kindred ice
wary mantle
gritty isle
#

what you need is hit.AssemblyRootPart.Parent.

kindred ice