So i created a script but when i lauch it its doesnt work the error is : Pad is not a valid member of model ..
My Script is a localscript inside athe PayerGui and the objetive is too be tp when i click on a button of a surfacegui
Click on View Source to see all the script !
local player = game.Players.LocalPlayer
workspace:WaitForChild("Elevator"):WaitForChild("Elevator2"):WaitForChild("Box1").Pad.SurfaceGui.Main.Labo.MouseButton1Click:Connect(function()
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = CFrame.new(-255.568, 7112.789, -4616.95)
end
end)
So if you know to fix that this will e great!
PS:I already tested with only waitforchild is doesn't work

2 comments
Try using :FindFirstChild("Pad"), as the game thinks you are looking for a property of Model called "pad" (you might need to capitalize it, as you seem to have some shift-hitting issues...)
try making seperate variables, that line is really long