I’m working on an anime game and I’m having some problems with my code on the line 40 (I put quote marks on this thread for the line 40) And keeps giving me this error :
TweenService:Create no property named ‘Trasparency’ for object ‘LeftHand’
local rp = game:GetService(“ReplicatedStorage”)
local summon = rp:WaitForChild(“Summon”)
local TweenService = game:GetService(“TweenService”)
summon.OnServerEvent:Connect(function(Player, isActive)
local Character = Player.Character
local Humanoid = Character.Humanoid
local Humrp = Character.HumanoidRootPart
if isActive then
local Stand = script:WaitForChild("Stand"):Clone()
for _, part in pairs (Stand:GetChildren()) do
if part:IsA("BasePart") then
part.Transparency = 1
end
end
Stand.Parent = Character
Stand.PrimaryPart.CFrame = Humrp.CFrame
local weld = Instance.new("ManualWeld")
weld.Part0 = Stand.PrimaryPart
weld.Part1 = Humrp
weld.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
weld.Parent = weld.Part0
local AnimControl = Stand:FindFirstChild("AnimControl")
local standHumrp = Stand:FindFirstChild("HumanoidRootPart")
local Idle = AnimControl:LoadAnimation(script.Idle)
Idle:Play()
for _, part in pairs (Stand:GetChildren()) do
if part:IsA("BasePart") and part ~= standHumrp then
local goal = {}
goal.Trasparency = 0
local info = TweenInfo.new(.5)
local tween = TweenService:Create(part,info,goal)
tween:Play()
end
end
local goal = {}
goal.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
goal.C1 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame * CFrame.new(-3,1,2))
local info = TweenInfo.new(.5)
**"local tween = TweenService:Create(weld,info,goal)"**
tween:Play()
else
end
end)