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

How do you insert a model at the player's character torso position?

Asked by 5 years ago

How do you insert a model at the player's character torso position from lighting via a screenGUI? I am sure this is a very easy script and I'm just stupid, but I need help.

dtaxi=game.Lighting.DefaultTaxi
function Gui(taxi)
wait(3)
local s=script.Parent.Sound:Clone()
s.Parent=script.Parent.Parent.Parent.Parent.Character.Humanoid
s:Play()
script.Parent.Text="Loading Taxi..."
wait(3)
local object = game.Lighting.DefaultTaxi
local clonedObject = object:Clone()
clonedObject.Parent = game.Workspace
player = script.Parent.Parent.Parent.Parent.Character.Torso.Position
clonedObject.Position = Vector3.new(player)?
script.Parent.Text="Taxi Loaded."
wait(2)
script.Parent.Text="Create Taxi"
end
script.Parent.MouseButton1Down:connect(Gui)
0
I'm sure this script has many flaws in it and I'm blind Dan83335 0 — 5y
0
could you use clonedObject:MoveTo(script.Parent.Parent.Parent.Parent.Character.Torso.Position)? the8bitdude11 358 — 5y
0
u should format your code so that people can read it INOOBE_YT 387 — 5y
0
Excuse me, did you just say you are storing a model in lighting? SteamG00B 1633 — 5y

Answer this question