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 » Scripting Helpers
Home Search
 

Re: Shooting fireballs?

Previous Thread :: Next Thread 
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 05:47 PM
How do you make a script so that when you press "E" you shoot out a fireball or water or something.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 05:50 PM
I need help please.
Report Abuse
RobloxWarrior89 is not online. RobloxWarrior89
Joined: 29 Mar 2012
Total Posts: 2388
16 Aug 2013 05:51 PM
I made a spellbook on my alt: Epikpwnr188, I know the basic script.
~RobloxWarrior89~
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 05:57 PM
It's really cool but how do you make it so you can shoot it at someone?
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:12 PM
Does anyone know how to?
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
16 Aug 2013 06:16 PM
http://wiki.roblox.com/index.php/Tool
[http://wiki.roblox.com/index.php/KeyDown_(Event)][1]
[http://wiki.roblox.com/index.php/Instance_(Table)][2]


[1]: http://wiki.roblox.com/index.php/KeyDown_%28Event%29
[2]: http://wiki.roblox.com/index.php/Instance_%28Table%29
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:23 PM
local me = game.Players.LocalPlayer
local tool = script.Parent

local ws = game:GetService("Workspace")

tool.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()

handle = me.Character.Torso

local p = Instance.new("Part")
p.CFrame = CFrame.new(handle.Position)
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(1, 1, 1)
p.CanCollide = false
p.BrickColor = BrickColor.new("Really red")
p.Parent = ws

local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (mouse.Hit.p - handle.Position).unit*10
game:GetService("Debris"):AddItem(p, 7)
end)
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:27 PM
@fedorakid There is a problem with the line "mouse.Button1Down:connect(function()"

Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:28 PM
local me = game.Players.LocalPlayer
local tool = script.Parent

local ws = game:GetService("Workspace")

tool.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()

handle = me.Character.Torso

local p = Instance.new("Part")
p.CFrame = CFrame.new(handle.Position)
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(1, 1, 1)
p.CanCollide = false
p.BrickColor = BrickColor.new("Really red")
p.Parent = ws

local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (mouse.Hit.p - handle.Position).unit*10
game:GetService("Debris"):AddItem(p, 7)
end)
end)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:29 PM
I forgot an end, that was the problem.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:35 PM
It didn't work I clicked the left mouse button and nothing happened :(
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:36 PM
It is supposed to be in a HopperBin and in a localscript.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:36 PM
Oh ok like explain it please srry for all the questions.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:38 PM
I just did, i can't explain it better.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:38 PM
So I paste it into a localscript then I put the localscript in a hopperbin then I put the hopperbin in workspace?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:40 PM
"So I paste it into a localscript then I put the localscript in a hopperbin then I put the hopperbin in workspace"

Correct, BUT you need to put the hopperbin into "Starterpack" not "Workspace".
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:41 PM
Ok thank you!!! No more questions I promise.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:46 PM
Last 2 questions I promise! 1>How do you make it kill people and 2.How do you make it go faster
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 06:50 PM
Do you know how?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:52 PM
local me = game.Players.LocalPlayer
local tool = script.Parent

local ws = game:GetService("Workspace")

tool.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()

handle = me.Character.Torso

local p = Instance.new("Part")
p.CFrame = CFrame.new(handle.Position)
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(1, 1, 1)
p.CanCollide = false
p.BrickColor = BrickColor.new("Really red")
p.Parent = ws

local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (mouse.Hit.p - handle.Position).unit*90

p.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent:BreakJoints()
end)
game:GetService("Debris"):AddItem(p, 7)
end)
end)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:53 PM
local me = game.Players.LocalPlayer
local tool = script.Parent

local ws = game:GetService("Workspace")

tool.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()

handle = me.Character.Torso

local p = Instance.new("Part")
p.CFrame = CFrame.new(handle.Position)
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(1, 1, 1)
p.CanCollide = false
p.BrickColor = BrickColor.new("Really red")
p.Parent = ws

local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (mouse.Hit.p - handle.Position).unit*90

p.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent:BreakJoints()
end
end)
game:GetService("Debris"):AddItem(p, 7)
end)
end)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 06:53 PM
I think it will work.
Report Abuse
Jupiturd is not online. Jupiturd
Joined: 16 Jul 2013
Total Posts: 1157
16 Aug 2013 07:01 PM
Does it take off damage and go faster?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 Aug 2013 07:02 PM
Yes if it works.
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
16 Aug 2013 07:02 PM
Re: Shooting fireballs? 21 minutes ago
Ok thank you!!! No more questions I promise.
+ Reply Report
Jupiturd


Re: Shooting fireballs? 16 minutes ago
Last 2 questions I promise! 1>How do you make it kill people and 2.How do you make it go faster

lol'd
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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