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

How can I make orbs from the Torso?

Asked by 2 years ago

Well once the knife has touched the humanoid, little particle of orbs will come across the torso spilling out orbs, how can I do that?

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Use Instance.new()

Example:

local debounce = false
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        if not debounce then
            debounce = true
            local newPart = Instance.new("Part")
            newPart.Parent = game.Workspace
            newPart.Position = script.Parent.Position
        end
    end
end)

Edit: I saw your comment, If the part Is In ReplicatedStorage use :Clone() Information: https://developer.roblox.com/en-us/api-reference/function/Instance/Clone

0
so is the part the orb? cause i have it already in replicatedstorage Experol 5 — 2y
0
Touched is not a valid member of Tool "Players.Experol.Backpack.Knife" Experol 5 — 2y
Ad

Answer this question