Hello everyone!
I need some help to fix This Model, and my knowledges of scripting are very small, and i know super basic things
- What do you want to achieve? Keep it simple and clear!
I want to make a dog leash model work
- Basically i want to make the leash create a rope that goes from the Handle to the HumanoidRootPart of a Humanoid that were clicked (or directly make it work)
- What is the issue? Include screenshots / videos if possible!
Perhaps the leash doesn’t work as excepted
Here is how the leash looks in the explorer:
Script inside the Tool:
local w1 = Instance.new("Hinge")
w1.Parent = script.Parent.Handle -- This is the original Handle.
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle2 -- Change PARTNAME to your second part's name.
w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
local w2 = Instance.new("Hinge")
w2.Parent = script.Parent.Handle
w2.Part0 = w1.Parent
w2.Part1 = script.Parent.Handle3 -- Change to the third part's name.
w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
local w3 = Instance.new("Hinge")
w2.Parent = script.Parent.Handle
w2.Part0 = w1.Parent
w2.Part1 = script.Parent.Handle4 -- Change to the third part's name.
local w3 = Instance.new("Hinge")
w2.Parent = script.Parent.Handle
w2.Part0 = w1.Parent
w2.Part1 = script.Parent.Handle5 -- Change to the third part's name.
w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
Script inside Handle5:
debounce = false
script.Parent.Touched:connect(function (hit)
if debounce == true then return end
if hit.Name == "Head" and script.Parent:findFirstChild("Weld")==nil then
debounce = true
g=Instance.new("Weld")
g.Name = "Weld"
g.Parent = hit
g.Part1= hit
g.Part0 = script.Parent
hit.Parent.Parent = script.Parent.Parent.Parent.People
end
wait(5)
debounce = false
end)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried changing part’s names (in the first code showed)
Im waiting for your answer…
Thank you!