#script giving error

38 messages · Page 1 of 1 (latest)

uncut kraken
#

do if statement

#

if clone then

#

maybe the script think that the clone dosent exist yet

lost dirge
#

so

#

you are trying to make a part that kills on touch?

#

???

#

what do you mean

#

by that

#

so does the killing part work>

#

???

#

oh

#

local Part = script.Parent

Part.Touched:Connect(function(touchPart)

local humanoid = touchPart.Parent:FindFirstChild("Humanoid")

if humanoid then
    humanoid.Health = 0
end

end)

#

use this instead btw for killing

quiet fjord
#

youre also talking to a scripter I

#

so

#

theres a loadappearance thing

#

or you could just run through every single item in the character (shirts, pants, hats, etc)

#

and clone it to the npc

#

it has something to do w player ids

#

lemme find it

#

thats the thing

#

mb

#

you would just have to access the player from the character via

#

Players:GetPlayerFromCharacter(KilledChar)

#

and check if its not nil

#

then load appearance

#

your monster doesnt have a primarypart probably

#

OH

#

you have to rename the clone

#

too dots

#

you put too much dots

#

oh

#

did you define clone

quiet fjord
#

balls

uncut kraken