Basicly this error: bad argument #1 (Vector3 expected, got number) Im kind of in a rush rn, And can you please explain it and not just post the answer?
script.Parent.Touched:Connect(function(P) -- On part touched connect function with the argument P
-- local PL = game.Players:GetPlayerFromCharacter(P.Parent) -- Gets player
-- local PT = PL.Character:FindFirstChild("HumanoidRootPart") -- Gets the torso
--
-- if PL then -- If the player has been found then
-- if PT then -- If the player's torso has been found then
-- PT.CFrame = PT.CFrame + Vector3.new(0,N,0) -- Teleports the player 10 studs up
-- else -- If there isn't a torso then
-- warn("Torso was not found") -- Warn that torso wasn't found in the console
-- end
-- else -- If the player wasn't found then
-- warn("Player was not found") -- Warn that the player wasn't found in the console
-- end
local H = P.Parent:FindFirstChild("Humanoid")
if H then
print("Found")
P.Parent.HumanoidRootPart.Position = script.Parent.Parent.Parent.Elevator2.Walls.Floor.Position.Y + Vector3.new(0,6,0)
wait()
end
end)
-- Ignore the green parts :|

1 comment
Oh ok. Very weird, But ok.