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
5 years ago
Edited 5 years ago

Script:

01local player = game.Players.LocalPlayer
02local mouse = player:GetMouse()
03local rasengan = game.Lighting.Rasengan
04local copy = rasengan:Clone()
05local toggle = false
06 
07mouse.KeyDown:connect(function(key)
08    if not toggle and key == "r" then
09        copy.Parent = game.Players.LocalPlayer.Character
10        toggle = true
11    end
12end)

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 — 5y

4 answers

Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
5 years ago
01local player = game.Players.LocalPlayer
02local mouse = player:GetMouse()
03local rasengan = game.Lighting.Rasengan
04local copy = rasengan:Clone()
05local toggle = false
06 
07mouse.KeyDown:connect(function(key)
08    if not toggle and key == "r" then
09        copy.Parent = player.Backpack
10        toggle = true
11    end
12end)
Ad
Log in to vote
0
Answered by
Infocus 144
5 years ago
Edited 5 years ago
01--Im assuming your rasengan is a singular ball, in which case you'll need to weld it to your character
02 
03local player = game.Players.LocalPlayer
04local mouse = player:GetMouse()
05local rasengan = game.Lighting.Rasengan
06local copy = rasengan:Clone()
07local toggle = false
08 
09mouse.KeyDown:connect(function(key)
10    if not toggle and key == "r" then
11    rasengan.Parent = player.Character
12        local weld = Instance.new("Weld",player.Character["Right Arm"])
13        weld.Part0 = rasengan
14        weld.Part1 = player.Character["Right Arm"]
15        weld.C0 = weld.C0 * CFrame.new(0, 0, 0) -- Adjust the placement here
16        toggle = true
17    end
18end)
Log in to vote
0
Answered by 5 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 — 5y
Log in to vote
0
Answered by
Nckripted 580 Moderation Voter
5 years ago

Make sure a part of your tool is called Handle.

Answer this question