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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Charging code issue

Previous Thread :: Next Thread 
schmidty1998 is not online. schmidty1998
Joined: 19 May 2010
Total Posts: 322
08 Jul 2017 01:40 AM
Was working on a fireball script, and am having a problem with the charge functionality. while ButtonDown == true do local Pos = Mouse.Hit.p Charge = Charge+1 DVal.Value = DVal.Value + # ######### = CFrame.new(Player.Character.Torso.Position, Pos) Fireball.Size = Fireball.Size+Vector3.new(0.1,0.1,0.1) Fireball.CFrame = Fireball.CFrame*CFrame.new(0,0.05,0) wait() if Charge == 40 then break end end This is the code that handles the charging mechanism. The issue is, if the charge reaches 40 and fires, it cannot be charged again at all. There is no error outputting either. BG, DVal, and Fireball are all defined earlier in the script.
Report Abuse
schmidty1998 is not online. schmidty1998
Joined: 19 May 2010
Total Posts: 322
08 Jul 2017 01:42 AM
... Ok let me try this again becaure roblox screwed up my formatting. Was working on a fireball script, and am having a problem with the charge functionality. while ButtonDown == true do local Pos = Mouse.Hit.p Charge = Charge+1 DVal.Value = DVal.Value + # ######### = CFrame.new(Player.Character.Torso.Position, Pos) Fireball.Size = Fireball.Size+Vector3.new(0.1,0.1,0.1) Fireball.CFrame = Fireball.CFrame*CFrame.new(0,0.05,0) wait() if Charge == 40 then break end end This is the code that handles the charging mechanism. The issue is, if the charge reaches 40 and fires, it cannot be charged again at all. There is no error outputting either. BG, DVal, and Fireball are all defined earlier in the script.
Report Abuse
schmidty1998 is not online. schmidty1998
Joined: 19 May 2010
Total Posts: 322
08 Jul 2017 01:42 AM
Nope. Still screwed it up. Thanks roblox. Also thanks for censoring vector3.
Report Abuse
leafstorm678920 is online. leafstorm678920
Joined: 12 May 2012
Total Posts: 79
08 Jul 2017 01:55 AM
Use pastebin.


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