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

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

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)

1 comment

0

Try adding print statements in your code. They are very good at narrowing down where the problem is at

1 answer

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

2 comments

0

still nothing

0

nvm think i found a way around it

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