I got this script which is inside the LeftHand of my character, and it’s supposed to clone a model from ReplicatedStorage and then make it look at another part, but it isn’t working. Any help?
local cooldown = false
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not cooldown then
cooldown = true
local Shock = game:GetService("ReplicatedStorage"):WaitForChild("Models"):FindFirstChild("PunchShockwave"):Clone()
Shock.Parent = game.Workspace
Shock:SetPrimaryPartCFrame(CFrame.new(script.Parent.Parent.HumanoidRootPart.Position))
wait(.1)
Shock:SetPrimaryPartCFrame(CFrame.new(script.Parent.Parent.HumanoidRootPart.Position,hit.Parent.HumanoidRootPart.Position))
end
end)
Thanks!

1 comment
Please do not repost your questions. Be patient.