Hey!
So, I'm making a chip eating action that's toggled by the e key, simple stuff. The only problem is, the chip model will not rotate with CFrame.Angles with the weld. Any advice on how to fix this is very much appreciated.
local p = game.Players.LocalPlayer
local chr = p.Character
local h = chr:WaitForChild("Humanoid")
local uis = game:GetService("UserInputService")
local c = game.ReplicatedStorage.CHIPLAYS
uis.InputBegan:Connect(function(i, t)
if t then return end
if i.KeyCode == Enum.KeyCode.E then
if p.Name == "Hindile" then
local c2 = c:Clone()
local an = game.ReplicatedStorage.PotaraChips
local a = h:LoadAnimation(an)
c2.Parent = game.Workspace
c2.CFrame = chr.RightHand.CFrame * CFrame.Angles(0,0,math.rad(90))
a:Play()
local weld = Instance.new("Weld")
weld.Part0 = chr.RightHand
weld.Part1 = c2
weld.Parent = script
wait(4)
c2:Destroy()
end
end
end)
