Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why wont this check the name of the driver?

server script no output

while true do
	wait(1)
if script.Parent:FindFirstChild("SeatWeld") then
	if not script.Parent.SeatWeld.Part1.Parent.Name == "Femme_Devil" then
		print(script.Parent.SeatWeld.Part1.Parent.Name)
		script.Parent.SeatWeld.Part1.Parent.Humanoid:TakeDamage(90)
end
end
end

worked when i didnt check the name

6 comments

0

is Part1's Parent the player?

0

If it worked when you didn't do something, don't do it.

0

i want to check for the name, thats the point of it

0

and yes dial the part1's parent is the character

0

because part1 is the humanoidrootpart

0

Syntax error.

1 answer

✓ Accepted answer

Remove the not and replace the == with ~=

This discussion is preserved as it was. New answers, comments, and votes are closed.