#I don´t know what is wrong.
1 messages · Page 1 of 1 (latest)
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)
any errors?
why would you need these if they're not even used
btw output?
** You are now Level 2! **
im still not done with the script
because "Character" isn't in the part
what you need is hit.AssemblyRootPart.Parent.
thanks