Teleport Part is not a valid member of workspace ?
I have a Part named "Teleport Part" in my workspace. The reason for that part is to teleport to it when i press a button. But when i press the button it says Teleport Part is not a valid member of workspace. My part is in a model.
Just ignore the comments since i took this script from somewhere else but put my info in it. It used to work before but suddenly stopped.
01 | Player = game.Players.LocalPlayer |
04 | script.Parent.MouseButton 1 Up:connect( function () |
06 | for index, Time in pairs (Player.leaderstats:GetChildren()) do |
09 | local player = game.Players.LocalPlayer |
10 | local target = game.Workspace.TeleportPart |
12 | script.Parent.MouseButton 1 Click:connect( function () |
15 | player.Character.HumanoidRootPart.CFrame = target.CFrame * CFrame.new( 0 , 3 , 0 ) |
16 | for i = delay, 1 , - 1 do |
17 | script.Parent.Text = i |
20 | script.Parent.Text = "Reset" |
Any sort of help will be appricieated