this script here
local Selected = false
local Shoot = true
function Click(Target)
if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then
Target.Target.Parent.Humanoid.Health = 0
end
local P = Instance.new("Part")
P.Name = "Laser"
local Place0 = script.Parent.Parent.Parent.Character["Left Arm"].CFrame
P.formFactor = 0
P.Size = Vector3.new(7,7,(Place0.p - Target.Hit.p).magnitude)
P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
P.Parent = game.Workspace
P.Material = "Neon"
P.Color = Color3.new(106)
P.Transparency = 0
P.Reflectance = 0.5
P.Anchored = true
P.CanCollide = false
local E = Instance.new("Explosion")
E.Position = Target.Hit.p
E.Parent = game.Workspace
for i = 1,10 do
P.Transparency = 0.5+(i*0.05)
P.Reflectance = i*0.05
wait(0.1)
end
P:Remove()
end
function Select(Mouse)
local Arm = script.Parent.Parent.Parent.Character:findFirstChild("Left Arm")
if(Arm==nil)then
script.Parent:Remove()
script:Remove()
end
Selected = true
local Torso = script.Parent.Parent.Parent.Character:findFirstChild("Torso")
if(Torso==nil)then
script.Parent:Remove()
script:Remove()
end
local ArmWeld = Torso:findFirstChild("Left Shoulder")
if(ArmWeld~=nil)then
ArmWeld.Parent = nil
end
--Mouse.Button1Down:connect(function()Click(Mouse)end)
function onKeyDown(key)
if key == "t" then
Arm.Anchored = true
while Selected do
local Place0 = script.Parent.Parent.Parent.Character.Torso.CFrame
Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector
local Place1 = Place0 + ((Place0.p-Mouse.Hit.p).unit * -2)
Arm.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) * CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
wait()
end
end
Arm.Anchored = false
if(ArmWeld~=nil)then
ArmWeld.Parent = Torso
end
end
function Deselect()
Selected = false
end
script.Parent.Selected:connect(Select)
I tried to were inset of a mouse click...you hit F and it would fire, I have no clue what to do.. help?

7 comments
Can you please use a code block? It would make your question so much easier to answer.
Also, there are many outdated events in this script, so I am assuming the code isn't yours. Use Connect instead of connect. Also, use :Destroy() instead of Remove(). However, if you wish to access the instance again later, just set its parent to nil rather than destroy it.
I agree with lunatic, your code is almost unreadable without codeblocks.
Please refrain from posting code that is not yours.
ok i found out how to add a code block.. so, how can i have it were i hit F and not mouse click?
and your right... this script isnt mine..i bought it form someone for robux a few months ago it was good but now..i need it to fire when i hit F, and it seems the one i bought it from has dissaperd off of the internet
Oh, sorry to here that they dissaperd.