Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hello im having troubles of making a clicking morph. someone know how make this?

Asked by 3 years ago

How transform this morph script in a clicking morph script?

function onTouched(hit)
    local humanoid = hit.Parent:findFirstChild("Humanoid")
    if humanoid and debounce==nil then
        if humanoid.Parent:findFirstChild("Leap") then humanoid.Parent.Leap:remove() end
        debounce = true
        --script.Parent.Parent = nil
        script.Parent.Leap:clone().Parent=humanoid.Parent
        wait(1)
        debounce = nil
    end
end
script.Parent.Touched:connect(onTouched)

1 answer

Log in to vote
0
Answered by
Xyternal 247 Moderation Voter
3 years ago

Why don't you use a click detector, and then do script.Parent.ClickDetector.Mouseclick instead?

Ad

Answer this question