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

Can someone fix this tool?

Asked by 9 years ago

I need help making this tool, the script was made by a person in another of my questions! Thanks in advance, jakei181

01repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild('Head') and game.Players.LocalPlayer:GetMouse()
02local plr = game.Players.LocalPlayer
03local char = plr.Character
04local head = char.Head
05local mouse = plr:GetMouse()
06local tool = script.Parent
07local player = game:GetService("Players").LocalPlayer
08 
09tool.Equipped:connect(function(mouse)
10    print("Tool equipped!")
11 
12    mouse.Button1Down:connect(function()
13        print("Mouse pressed!")
14            local s,f = tool.Handle.CFrame,mouse.Hit.p
15            local hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(s,(f-s).unit*999),char:children())
View all 36 lines...

The tool layout is here

0
What are your expectations for the code and how is it not meeting them? Goulstem 8144 — 9y
0
The lightning code isn't working jakei181 60 — 9y
0
Also, there are no errors jakei181 60 — 9y

Answer this question