How to rotate this vest model? I’m using this old RRP1 or 2 vest system thing for my armor system. When I use it, the model turns upside down for some reason and I don’t know how to rotate it to where I want it to be. Help?
Code:
local tool=script.Parent
local handle=tool.Handle
local remotefunction=tool.RemoteFunction
local debris=game:GetService("Debris")
function remotefunction.OnServerInvoke(player,command,value)
if command=="protect" then
if value[2] then
local currentvest=value[1]:FindFirstChild("VestArmour")
if currentvest then
currentvest:Destroy()
end
local vest=Instance.new("Hat")
vest.Name="VestArmour"
handle:Clone().Parent=vest
vest.AttachmentPos=Vector3.new(0,2,0.05)
vest.Parent=value[1]
local ratio=value[2].Health/value[2].MaxHealth
value[2].MaxHealth=100+value[3]
value[2].Health=(100+value[3])*ratio
tool.Handle.Transparency=1
wait(2)
tool.Handle.Transparency=0
end
end