#why doesn't it print "Hit2"?

7 messages · Page 1 of 1 (latest)

tired linden
#

nt("Hit1")
local boom = part:FindFirstChild("Part")
if boom.Name == "apple" then
print("Hit2")
end
end

part.Touched:Connect(reacting)

#

mb imma update this l8r

hazy tulip
#

you seach for a part called "Part"
and then check if its name is "apple"

#

also it should give you an error, something like :
Name is not a valid member of nil

drifting bridge
#

also i dont know what the "part" variable is but if its just a part in workspace and you want to look for it try changing the variable to
local part = workspace:FindFirstChild("Part")

#

unless you have a part in a part