local summonevent = game:GetService("ReplicatedStorage").Stand.StandSummon local TweenService = game:GetService("TweenService") local Debris = game:GetService("Debris")
summonevent.OnServerEvent:Connect(function(Player) local Charecter = Player.Character if not Charecter:FindFirstChild("Stand") then local Standclone = game:GetService("ServerStorage"):WaitForChild("StandModel").TestingStand:Clone() Standclone.Name = "Stand" Standclone.Parent = Charecter Standclone.HumanoidRootPart.CFrame = Charecter.HumanoidRootPart.CFrame local standpos = Instance.new("Attachment") standpos.Parent = Charecter.HumanoidRootPart standpos.Name = "StandPosition" local alignp = Instance.new("AlignPosition") alignp.Parent = Standclone alignp.Attachment0 = Standclone.HumanoidRootPart.RootRigAttachment alignp.Attachment1 = standpos alignp.MaxForce = 6000 alignp.Responsiveness = 50 local aligno = Instance.new("AlignOrientation") aligno.Parent = Standclone aligno.Attachment0 = Standclone.HumanoidRootPart.RootRigAttachment aligno.Attachment1 = standpos aligno.MaxTorque = 6000 aligno.Responsiveness = 50 Standclone.AnimationController:LoadAnimation(Standclone.Idle):Play() standpos.Position = Vector3.new(-2,5,1,1)
for i , partsinstand in pairs(Standclone:GetDescendants())do
if partsinstand:IsA("BasePart") then
TweenService:Create(partsinstand,TweenInfo.New{.25},{Transparency = originaltranparency}):Play()
end
end
end
elseif Charecter:FindFirstChild("Stand") then
local stand = Charecter:FindFirstChild("Stand")
Charecter.HumanoidRootPart.StandPosition.Position = Vector3.new(0,0,0)
for i , partsinstand in pairs(stand:GetDescendants())do
if partsinstand:IsA("BasePart") then
if partsinstand.Transparency < 1 then
local originaltranparency = partsinstand.Transparency
partsinstand.Transparency = 1
TweenService:Create(partsinstand,TweenInfo.New{.25},{Transparency = 1}):Play()
end
end
Debris:AddItem(stand,.25)
end
end
end)

1 comment
add me to studio so I could help you, also please fix your post