generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Gun not shooting?

Previous Thread :: Next Thread 
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:22 PM
Trying to make a gun. I have this script:
--//Local Script Inside folder
--//Variables
l########## game.Players.LocalPlayer
local tool = script.Parent.Parent
l######o#### #o####################### tool.Handle
l############### true
local config = tool.Config
l######ange = config.Range
l######mg = config.Damage
l############### config.CoolDown
local clips = config.Clips
loc######o = config.Ammo
loc######Ammo = co############################################################################################################# tool.Activated:connect(function()
if debounce then
--########################## debounce = false
--//Ray Get, Set
local ra### #a######################mouse.Hit.p - hole.CFrame.p) * range.Value)
local hit, position = wo##################################################rue)

--//Bullet Tr####### if al##################= true then
--//Make part
local trace = Instance.new("Part", workspace)
trace.Material = En################## trace.BrickColor = BrickColor.new("Black")
trace.CanCollide = false
trace.Anchored = true
trace.Transparency = 0.#######
--//Show Direction
local distance = (hole.CFrame.p - position).magnitude
trace.Size = Ve################.####i######### # tr############ CFrame.new(hole.CFrame.p, position) * CF#############,##d############
--//Remove debris
ga########################################.#### end

--//Hit Detection
if hit then
local humanoid = hi##################################### if humanoid then
if hit.Name == "Head" then
--//Double damage on headshots
hu#################################### else
--//Normal Damage on body shots
##############################
end
end
end

wait(coolDown.Value)
debounce = true
end
end)
end)
##### it is not working. Anyone know why?
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:24 PM
lmao


"We'll become who were meant to be" - Madeon
Report Abuse
cfiredog is not online. cfiredog
Joined: 30 May 2008
Total Posts: 228
18 Jul 2017 07:26 PM
I'd post a link to the script so we can actually read it in its entirety.
Report Abuse
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:27 PM
Acronyms don't help.
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:27 PM
well we cant help you if you arent helping us help you bud :)

paste your script, any output errors etc


"We'll become who were meant to be" - Madeon
Report Abuse
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:27 PM
here's a link: ############################# hopefully that worked
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:28 PM
paste a non hastagged version of your script***


"We'll become who were meant to be" - Madeon
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:28 PM
if that link was ######### just put the numbers at the end of the link "We'll become who were meant to be" - Madeon
Report Abuse
Bit_blox is not online. Bit_blox
Joined: 28 Aug 2016
Total Posts: 974
18 Jul 2017 07:28 PM
paiystebine


"We'll become who were meant to be" - Madeon
Report Abuse
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:29 PM
I'm getting these output errors: ############ - ######################### ###### error near 'end' ############ - ######################################### attempt to index ####### 'plr' (a nil value)
Report Abuse
cfiredog is not online. cfiredog
Joined: 30 May 2008
Total Posts: 228
18 Jul 2017 07:32 PM
For Christ's sake, Roblox stop censoring everything...
Report Abuse
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:39 PM
The output errors are Work space.Part.Script: ### tax error near 'end' Work space.Tool.Script.script for ################# to index ####### 'plr' (a nil value)
Report Abuse
sesamert16 is not online. sesamert16
Joined: 08 Sep 2016
Total Posts: 174
18 Jul 2017 07:48 PM
bump
Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
18 Jul 2017 07:50 PM
Make a goo.gl link Remove the h 2*t p s ://
Report Abuse
sanjay2003 is not online. sanjay2003
Joined: 03 Nov 2012
Total Posts: 740
18 Jul 2017 08:10 PM
I'm going to go on a hunch here and guess that you messed up your velocity.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image