|
| 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 |
|
|
|
| 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 |
|
|
|
| 08 Jul 2017 01:42 AM |
| Nope. Still screwed it up. Thanks roblox. Also thanks for censoring vector3. |
|
|
| Report Abuse |
|
|
| |
|