|
| 12 Jun 2014 09:55 PM |
In solo mode, this script clones one brick w/ a grenade mesh, and creates a brick that expands. In online mode, it creates 3 grenades at once and 3 bricks expand, causing them to all rapidly go up at once due to increasing in size on top of each other. Help? I spaced it out to make it easier to read
local Plr = script.Parent.Parent local Mouse = Plr:GetMouse() local Right = Plr.Character.Torso["Right Shoulder"] local debounce = false Mouse.KeyDown:connect(function(key) if key:lower() == "g" and debounce == false then debounce = true local Run = Game:GetService("RunService") local p1,explofect = Instance.new("Part", Game.Workspace),Instance.new("Part", Game.Workspace)
explofect.Anchored = true explofect.Name = "Explofect" explofect.CanCollide = false p1.Name = "NOTICE" p1.BrickColor = BrickColor.new("Really black") p1.Anchored = true
local sm = Instance.new("SpecialMesh", p1) sm.Scale = Vector3.new(0.15,0.15,0.15) sm.MeshType = "FileMesh" sm.MeshId = "http://www.roblox.com/Asset/?id=10207236"
for i = 1, 10 do Right.C0 = Right.C0 * CFrame.Angles(0,0,0.4) Run.Stepped:wait(0.025) end
p1.Position = Vector3.new(Plr.Character["Right Arm"].Position.x - 0.8,Plr.Character["Right Arm"].Position.y + 3,Plr.Character["Right Arm"].Position.z + 1) for i = 1, 10 do Right.C0 = Right.C0 * CFrame.Angles(0,0,-0.4) Run.Stepped:wait(0.025) end
p1.Anchored = false local tempbv = Instance.new("BodyVelocity", p1) tempbv.velocity = Plr.Character.Torso.CFrame.lookVector*90 wait(0.4) tempbv:Destroy() wait(0.5)
explofect.Position = p1.Position explofect.Transparency = 1 explofect.BrickColor = BrickColor.new("Really black") local num,num2,num3 = 0,0,0 for i = 1, 10 do num = num + 0.1 Wait() p1.Transparency = num end
local sb = Instance.new("SelectionBox", explofect) sb.Name = "SecBox" sb.Adornee = sb.Parent script.SizeInc:Clone().Parent = explofect
wait(0.1) explofect.SizeInc.Disabled = false script.Damage:Clone().Parent = explofect wait(0.1) explofect.Damage.Disabled = false repeat sb.Color = BrickColor.Random()
num2 = num2 + 1 wait() num3 = num3 + 0.1 explofect.Transparency = num3 wait() until num2 == 20
for g, w in pairs(Game.Workspace:GetChildren()) do if w.Name == "Explofect" or w.Name == "NOTICE" then w:Destroy() end end
wait(5) debounce = false end end) |
|
|
| Report Abuse |
|
|
| |
|
KillbotXx
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 4763 |
|
| |
|
KillbotXx
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 4763 |
|
| |
|
KillbotXx
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 4763 |
|
| |
|
KillbotXx
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 4763 |
|
| |
|
| |
|
KillbotXx
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 4763 |
|
| |
|
| |
|
| |
|