local ElevatorPlade = script.Parent
local function VirkendeElevator()
if ElevatorPlade.Parent:FindFirstChild("DarkBrotherhood4") then
wait(2)
ElevatorPlade.BrickColor = BrickColor.new("Really red")
for Y = 1, 20, 1 do
ElevatorPlade.Position = Vector3.new(-41.25, Y, -82.875)
end
end
end
ElevatorPlade.Touched:Connect(VirkendeElevator())
I wanted the Elevator part to move up 20 times like if it was an elevator but when I step on the part it just says "attempt to call a nil value"

9 comments
Uhm, what are you trying to do at Line 03? Why would you search for your name?
Did you wanted the part to move 20 times slowly or instantly?
i was experimenting with the FindFirstChild function usually i would put Humanoid instead of my own name
Dark, does it work now?
Line 03 is fine but it's not really specific but it's fine, it would still work, Line 14 is your mistake, You should remove Open and Close Parentheses
Yeah..
to make your Elevator only goes up, you'd only need to update its Position Y, unless you kind of flipped the brick or something
its something to do with the for loop and position part cause the part does turn red but it doesnt move at all
I'll post it in a sec