I cant move a model to the right place

hello, so basically its 3rd post because I cant move the petability and the other part in the model to the position, this script makes it so that you spin because pet is not massless but you cant see them

here’s the script

local rs = game:GetService("ReplicatedStorage")

rs.specialrocks["pet-e"].OnServerEvent:Connect(function(plr, tool)
	local pet = game.ServerStorage.abilities.petability
	local char = plr.Character
	local humrootpart = char:FindFirstChild("HumanoidRootPart")
	local clonedpet = pet:Clone()
	clonedpet.petability.BrickColor = BrickColor.new("Bright blue")
	clonedpet.petability.CanCollide = false
	clonedpet.petability.Parent = char
	clonedpet:PivotTo(humrootpart.CFrame * CFrame.new(-2, -2, 3))

	local weld = Instance.new("WeldConstraint")
	weld.Parent = clonedpet.petability
	weld.Part0 = humrootpart
	weld.Part1 = clonedpet.petability
	
	tool:SetAttribute("damage", (tool:GetAttribute("damage") + 20))
	tool:SetAttribute("power", (tool:GetAttribute("power") + 50))
	
	task.wait(3)
	
	clonedpet:Destroy()
	tool:SetAttribute("damage",(tool:GetAttribute("damage") - 20))
	tool:SetAttribute("power", (tool:GetAttribute("damage") - 50))
end)

no errors
thanks

nevermind i fixed it, quite stupid problem tbh

1 Like

Could you perhaps share the Solution of the post, so other Developers facing the same issue can get an answer faster?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.