Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this check the name of the driver?

Asked by 5 years ago

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

0
is Part1's Parent the player? dialtcp 2 — 5y
0
If it worked when you didn't do something, don't do it. hiimgoodpack 2009 — 5y
0
i want to check for the name, thats the point of it Gameplayer365247v2 1055 — 5y
0
and yes dial the part1's parent is the character Gameplayer365247v2 1055 — 5y
View all comments (2 more)
0
because part1 is the humanoidrootpart Gameplayer365247v2 1055 — 5y
0
Syntax error. coolboy6786543 113 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

Remove the not and replace the == with ~=

Ad

Answer this question