rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
|
| 04 Apr 2016 04:17 AM |
| ;-; This might be complicating for some people to make, I've been struggling with it for too long now. How do I make characters in my game, shoot like 3 fire balls out of their hand? Like it's in the character's Starter Pack and you have to click in order to shoot the fire out. I know it involves scripting which is something I'm terrible at, anybody know how to do this? ;-; |
|
|
| Report Abuse |
|
|
mikeyw8
|
  |
| Joined: 18 Jul 2010 |
| Total Posts: 1244 |
|
|
| 04 Apr 2016 04:36 AM |
you create a new part (variable = Instance.new("Part"))
you change size of part and the mesh etc
variable.Position = player's Left Arm/Right Arm
you add a bodythrust or something along those lines
and that's probably how to basically do it -Mikeyw8 |
|
|
| Report Abuse |
|
|
rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
| |
|
Kryddan
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 310 |
|
|
| 04 Apr 2016 06:51 AM |
look at this, https://www.youtube.com/watch?v=8qG857NvWKs&list=PLA4609EA2E5307C94&index=8
It is not exactly the same but the concept is. |
|
|
| Report Abuse |
|
|
rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
|
| 04 Apr 2016 06:36 PM |
| ^ Thanks, but that video is outdated. The script no longer works with that because Debris was removed. |
|
|
| Report Abuse |
|
|
Kryddan
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 310 |
|
|
| 04 Apr 2016 06:44 PM |
| Debris is not removed aat all.... |
|
|
| Report Abuse |
|
|
rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
|
| 04 Apr 2016 06:52 PM |
| Uh then idk, I copied the scripts and everything he did and it didn't work |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 04 Apr 2016 06:53 PM |
| http://wiki.roblox.com/index.php?title=Intro_to_Scripting |
|
|
| Report Abuse |
|
|
rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
| |
|
|
| 07 Apr 2016 10:16 PM |
| this is similar to what you're aiming for https://www.youtube.com/watch?v=vevf6q8fRSI&nohtml5=False |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2016 10:19 PM |
I kind of messed around making a fireball kind of thing once. You can take a look at this, it was a while ago before I started getting more familiar with weapon coding, so you can look at it and maybe it'll help you out.
https://www.roblox.com/Fire-item?id=206312120 |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2016 10:19 PM |
Once again, no guarantees, it was a long time ago.
Hope it helps, C0mmando323 |
|
|
| Report Abuse |
|
|
Casualism
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1851 |
|
|
| 07 Apr 2016 10:26 PM |
Make a fireball and put it in Rep. Storage
LOCALSCRIPT
local ContextActionService = game:GetService("ContextActionService") local player = game.Players.LocalPlayer ContextActionService:BindAction("Throw", function(actionname, state, object) if state == Enum.UserInputState.Begin then -- Get the direction the player is facing local direction = player.Character.Torso.CFrame.lookVector * 5 -- Create the projectile and give it velocity in the direction the player is facing local projectile = game.ReplicatedStorage.Projectile:Clone() projectile.Parent = game.Workspace.Folder projectile:MakeJoints() projectile.PrimaryPart.CFrame = CFrame.new(player.Character.Torso.Position + direction + Vector3.new(0,2,0)) projectile.PrimaryPart.Velocity = direction * 40 + Vector3.new(0,40,0) end end, false, "h")
|
|
|
| Report Abuse |
|
|
Qraotic
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 63 |
|
|
| 07 Apr 2016 10:45 PM |
I don't know how to do animations but, put this in a LOCAL SCRIPT in a TOOL, not handle:
local tool = script.Parent local Player = game.Players.LocalPlayer local RELOAD = false -- Reload Function (Edit time at the end) tool.Equipped:connect(function(mouse) mouse.Button1Down:connect(function(key) if not RELOAD then -- Reload Function RELOAD = true -- Reload Function for i = 1,3 do -- 1,3 means it will repeat this 3 times local fireball = Instance.new("Part",game.Workspace) fireball.Size = Vector3.new(5,5,5) -- Change Size Here fireball.Name = "Fireball" fireball.BrickColor = BrickColor.new("Bright red") -- Change colour here fireball.TopSurface = "Smooth" fireball.BottomSurface = "Smooth" fireball.CanCollide = false fireball.Shape = "Ball" fireball.Transparency = 0.7 -- Change Transparency here local fire = Instance.new ("Fire",fireball) -- Change fire here fire.Size = 15 -- Fire Size fire.Heat=0 -- Fire Heat local bv = Instance.new("BodyVelocity",fireball) bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) bv.Velocity = Player.Character.Torso.CFrame.lookVector*80 -- '80' is how fast it moves (the higher the number the faster it goes) fireball.CFrame=Player.Character.Torso.CFrame*CFrame.new(0,0,-12) game.Debris:AddItem(fireball,6) -- the 6 means how long till the fireball gets deleted (in seconds) wait(.5) -- The interval between each fireball (In seconds) end wait(3) -- RELOAD TIME (In seconds) RELOAD = false end end) end)
--<3 |
|
|
| Report Abuse |
|
|
rjordan14
|
  |
| Joined: 22 Nov 2014 |
| Total Posts: 217 |
|
|
| 07 Apr 2016 10:50 PM |
| Thank you guys so much!!! Got it to work! (: |
|
|
| Report Abuse |
|
|