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

How can I make the Player sit on the seat?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
local player = game.Players.LocalPlayer
function b ()
script.Parent.Parent.Sound:Play()
local storage = game:GetService("Lighting")
local part = storage["Seat"]:Clone() 
part.Parent = player.Character
wait(.1)
player.Character.Torso.CFrame = CFrame.new(part.Position) + Vector3.new(0,0,0)
script.Parent.Parent.Parent.Parent.Visible = false
wait(2)
script.Parent.Parent.Parent.Parent.Parent.Parent.Tutorial.Frame.Visible = true
end

script.Parent.MouseButton1Down:connect (b)

****when the player clicks the gui it is supposed to clone the seat from lighting and make the player sit on it that's the part that does not work, the player doesn't sit on the seat

how do I fix this? (line 9 is the one that makes player TP to the seat, but it won't work ):****

0
Remove the '+' sign and the Vector on line 8. rexbit 707 — 8y

Answer this question