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

My tool doesn't appear in my hand when I equip it. Any idea how to fix it?

Script:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local rasengan = game.Lighting.Rasengan
local copy = rasengan:Clone()
local toggle = false

mouse.KeyDown:connect(function(key)
	if not toggle and key == "r" then
		copy.Parent = game.Players.LocalPlayer.Character
		toggle = true
	end
end)

This is the script that I use when I press r it equips my Rasengan from lighting but doesn't appear in my hand but somewhere else in the baseplate.

1 comment

0

Instead put the tool in ReplicatedStorage or ServerStorage

4 answers

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local rasengan = game.Lighting.Rasengan
local copy = rasengan:Clone()
local toggle = false

mouse.KeyDown:connect(function(key)
    if not toggle and key == "r" then
        copy.Parent = player.Backpack
        toggle = true
    end
end)
--Im assuming your rasengan is a singular ball, in which case you'll need to weld it to your character

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local rasengan = game.Lighting.Rasengan
local copy = rasengan:Clone()
local toggle = false
 
mouse.KeyDown:connect(function(key)
    if not toggle and key == "r" then
	rasengan.Parent = player.Character
        local weld = Instance.new("Weld",player.Character["Right Arm"])
		weld.Part0 = rasengan
		weld.Part1 = player.Character["Right Arm"]
		weld.C0 = weld.C0 * CFrame.new(0, 0, 0) -- Adjust the placement here
        toggle = true
    end
end)


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