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

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

Asked by
AM910sk 22
4 years ago
Edited 4 years ago

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.

0
Instead put the tool in ReplicatedStorage or ServerStorage DizzyGuy70 38 — 4y

4 answers

Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
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)
Ad
Log in to vote
0
Answered by
Infocus 144
4 years ago
Edited 4 years ago
--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)


Log in to vote
0
Answered by 4 years ago

It could be a welding issue. Are you using qPerfectionWeld? It's a script that you put inside your tool. If you aren't, then what you do is you put it inside the TOOL, not the handle/part. Anyway, here's the link: https://www.roblox.com/library/181259635/qPerfectionWeld-Perfect-welding-for-EVERY-situat

0
The script isn't inside my tool AM910sk 22 — 4y
Log in to vote
0
Answered by
Nckripted 580 Moderation Voter
4 years ago

Make sure a part of your tool is called Handle.

Answer this question