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

Why isn't this LocalScript (in StarterPlayerScripts) working or at least erroring?

Asked by 2 years ago

This script isn't even erroring, just nothing

local Player = game:WaitForChild("Players").LocalPlayer
game.Workspace:WaitForChild("InsideContent")
game.Workspace:WaitForChild("Transportation")
game.Workspace.Transportation:WaitForChild("LeftSet")
game.Workspace.Transportation.LeftSet:WaitForChild("VanLeft")
game.Workspace.Transportation.LeftSet.VanLeft:WaitForChild("Seating")
local TP = game.Workspace.InsideContent.TPWallLeft
local Character = Player.CharacterAdded:Connect(function(char)
    local HRP = Player.Character:WaitForChild("HumanoidRootPart")
    TP.Touched:Connect(function(tpactive)
        local TP1 = HRP.Position
        HRP.Position = TP1 + Vector3.new(game.Workspace.Transportation.LeftSet.VanLeft.Seating.LeftChair1.LeftSeat1)

    end)
end)
0
Try adding print statements in your code. They are very good at narrowing down where the problem is at JustinWe12 723 — 2y

1 answer

Log in to vote
0
Answered by
Ascarson4 138
2 years ago

Remove the local Character variable declaration, just leave it as Player.CharacterAdd:Connect(function(char)) --plus the rest of your code

0
still nothing SuperSM1 67 — 2y
0
nvm think i found a way around it SuperSM1 67 — 2y
Ad

Answer this question