Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make orbs from the Torso?

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

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

2 comments

0

so is the part the orb? cause i have it already in replicatedstorage

0

Touched is not a valid member of Tool "Players.Experol.Backpack.Knife"

This discussion is preserved as it was. New answers, comments, and votes are closed.