hello, basically I have no idea on how to fix in place 2 parts fully and bring them to person, Union makes it look weird and idk how to do it with model
here is 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.petability.CFrame = 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, basically i want the model (that is made out of 2 blocks) work in this script, union not works because it breaks it and with model i dont know how to make