local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Handle") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i]CFrame:Inverse() W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end script.Parent.Trggered:Connect(onPromptTriggered)
-- You had a couple typos -- Actual Script below local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
Yo Tacdev I'm working on a game and Im new yo devving I wanna make a click to equip uniforms could you make a video about that? Cause all the videos i watched on how to make click to equip clothes dont work
Hey! I am making a Los Angeles Based game and I was wondering if you wanted to be the head dev? I have been the only dev and it has been really stressful.
Hello, I sent you a Discord friend request but I’m wondering how do I even make a vest because I’m trying to make it for my friends game and I don’t even know how to get a vest make a vest and I wouldn’t know how to send it to him to import it to his game
Please can you help me, i got all of the middle part, i done the script, i done everything u said to do. But, it dosent work when i press and hold interact. And, im in R6 and everything. Please help me.
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
Can we really have the script? I don't know how to script, not do I understand the entirity of it. I hope you would, the build is amazing so I hope you would. Thanks, man!
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
@@qihh1023 local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player) if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then local g = script.Parent.Parent.Parent.Vest:Clone() g.Parent = player.Character local C = g:GetChildren() for i=1, #C do if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then local W = Instance.new("Weld") W.Part0 = g.Middle W.Part1 = C[i] local CJ = CFrame.new(g.Middle.Position) local C0 = g.Middle.CFrame:Inverse()*CJ local C1 = C[i].CFrame:Inverse()*CJ W.C0 = C0 W.C1 = C1 W.Parent = g.Middle end local Y = Instance.new("Weld") Y.Part0 = player.Character.UpperTorso Y.Part1 = g.Middle Y.C0 = CFrame.new(0, 0, 0) Y.Parent = Y.Part0 end local h = g:GetChildren() for i = 1, # h do h[i].Anchored = false h[i].CanCollide = false end end end -- Connect prompt events to handling functions script.Parent.Triggered:Connect(onPromptTrigger)
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Handle") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i]CFrame:Inverse()
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
script.Parent.Trggered:Connect(onPromptTriggered)
a
-- You had a couple typos
-- Actual Script below
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
@@IRUnofficialMedia thanks
@@cartersgaming3662 np
awesome, every other tutorial for this is just about how to make MONEY, thank you so much
If I place my vest on a table and try to equip it, I’m stuck inside of it. Im sure its a common question/isse but how do you fix that?
don’t anchor it, weld it
@@luckysam48 I got it fixed, thanks.
tutorial on how to make these awsome vests
Yo Tacdev I'm working on a game and Im new yo devving I wanna make a click to equip uniforms could you make a video about that?
Cause all the videos i watched on how to make click to equip clothes dont work
Will do, video should be released within the next 2-3 hours! Stay safe!
Hey! I am making a Los Angeles Based game and I was wondering if you wanted to be the head dev? I have been the only dev and it has been really stressful.
This is an interesting opportunity. I have a few questions. Please add my Discord @kilethro
@@TacDeveloper Thank you! I will add you soon!
@@TacDeveloper I sent you one.
Hello, I sent you a Discord friend request but I’m wondering how do I even make a vest because I’m trying to make it for my friends game and I don’t even know how to get a vest make a vest and I wouldn’t know how to send it to him to import it to his game
Hey TacDev I was wondering do you know how to make click to equip vests,helmets,belts etc etc instead of the proximity?
Yes!
when you bought the locker did it come with stuff in it or did you have to put stuff in it?
I created it.
How do you get the () just the other one the strait one?
Question. What gear(Like multicam or JPC etc from your store) would an average u.s army Milsim
the average american infantry soldiers uses IOTV carriers.
@@TacDeveloper I hope I'm not bothering you but what Carrier should I buy if my faction is based on the afghanistan war?
@@Nex12343 Im releasing some gear packs based around that era on my payhip soon
@@TacDeveloper Great. Tysm!
Nice
Hello, I sent you a Discord for request, but I’m wondering how to I make a vest and then send it to my friend for his game
Hiya, was just wondering if you would be able to help me with a vest? i've done everything in the video but nothing seems to be working!
I'm having the same problem
@@Cadet-CobraKSP I have replied to several comments with the same issue. Try the code from there
Hey, I recognize that gear locker from SIMSTORE. How did you set it up?
Hey! I actually made the gear locker, however I used SimStores locker as a reference!
TacDev is Underrated
Middle Part Link: create.roblox.com/marketplace/asset/13611263299/Middle-Part
Milsim Asset Website: payhip.com/TacReal
Can you help me geta a black vest into my game ?
Yes, feel free to reach out to me on Discord. @TacDev
Please can you help me, i got all of the middle part, i done the script, i done everything u said to do. But, it dosent work when i press and hold interact. And, im in R6 and everything. Please help me.
Please contact my discord if you’re experiencing problems. Thanks!
Hi tacdev, for some reason, when i try to put it on it puts me in the ground how can i fix this?
Try Unanchoring it
This is really good but can you post the scripting here in the comments to make it easier?
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
Can we really have the script? I don't know how to script, not do I understand the entirity of it. I hope you would, the build is amazing so I hope you would. Thanks, man!
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
I want the assets where is the discord link?
payhip.com/tacreal
it doesn't work for me
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
why i cant wear it???
Rewatch the video, you most likely made a grammatical error.
ok thanks@@TacDeveloper
@@qihh1023 local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
doesnt work i did all right
then you didn’t do it right. check the output. It has and still does work for multiple other viewers.
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
doesnt work :(
Check the output tab! you most likely made a grammatical error.
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
Didnt work
Contact me on Discord and I will help you find the issue!
never mind, I figured out what was the problem.@@TacDeveloper
@@sky_1468 yo what was the problem? im having the same thing i think, i have the code and everything right it just wont let me
@@pumpkinwarrior5713 Same bro, have you figured it out yet?
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
Suck,Dont work
local function onPromptTrigger(player)
if player.Character:findFirstChild("Humanoid") ~= nil and player.Character:findFirstChild("Vest") == nil then
local g = script.Parent.Parent.Parent.Vest:Clone()
g.Parent = player.Character
local C = g:GetChildren()
for i=1, #C do
if C[i].ClassName == "Part" or C[i].ClassName == "UnionOperation" or C[i].ClassName == "MeshPart" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:Inverse()*CJ
local C1 = C[i].CFrame:Inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = player.Character.UpperTorso
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
h[i].Anchored = false
h[i].CanCollide = false
end
end
end
-- Connect prompt events to handling functions
script.Parent.Triggered:Connect(onPromptTrigger)
Yo do you have discord I can pay u to help me with some stuff.
Sure, however I wont be available for the month of july due to personal issues.
does it have to be r6?
Nope. It should work with R15.