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

Character stuck on the ground when spawning?

Asked by 2 years ago
Edited 2 years ago

So i made this script that gives you a 3D shirt but for some reason the character spawns on the ground Meaning that its stuck inside the baseplate I Dont wanna make the spawn higher doe

EDIT: THE SHIRT IS A MESH NOT AN ACTUAL 2D SHIRT

Here is the script:

--Locals
local Char = script.Parent
local Torso = script.Parent.Torso
local mesh = Instance.new("SpecialMesh")
local weld = Instance.new("Weld")
local shirt = script.Shirt

--Head
Char.Head.Reflectance = 0.15

--Shirt
shirt.CanCollide = false
shirt.Position = Vector3.new(script.Parent.Torso)
weld.Parent = Char.Torso
weld.Part0 = shirt
weld.Part1 = Char.Torso
0
I find another way to make an amor i just made the mesh a hat and putted it on a dummy ImNotAN00b_0kay 31 — 2y

2 answers

Log in to vote
0
Answered by 2 years ago

Btw the shirt is a mesh I Dont want anybody to get confused

0
I Noticed that no matter how high the character is it keeps getting stuck on the ground ImNotAN00b_0kay 31 — 2y
0
Spawn* ImNotAN00b_0kay 31 — 2y
Ad
Log in to vote
0
Answered by 2 years ago

Try changing line 13 to

shirt.Position = script.Parent.Torso.Position

and add a wait() after line 13

0
Dosent work just makes me float in the air when i dont use vector3 and im pretty sure wait() is just gonna make it fall then get welded since its not anchored ImNotAN00b_0kay 31 — 2y
0
does the shirt go inside of the player at all? There shouldn't be a reason why the player is immobilized mid-air brandons2005 87 — 2y
0
Yeah the shirt goes inside the torso of the player ImNotAN00b_0kay 31 — 2y

Answer this question