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
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
| |
|
|
| 16 Aug 2013 05:51 PM |
I made a spellbook on my alt: Epikpwnr188, I know the basic script. ~RobloxWarrior89~ |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 16 Aug 2013 06:29 PM |
| I forgot an end, that was the problem. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
|
| 16 Aug 2013 06:41 PM |
| Ok thank you!!! No more questions I promise. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 1157 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
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
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
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 |
|
|