|
| 26 Dec 2013 03:45 PM |
Where about in the script would I add an explosion? I can add the properties myself I just am not sure where to put it in the script.
bin = script.Parent me = script.Parent.Parent.Parent
enabled = true
function onButton1Down(mouse) if not enabled then return end
local player = game.Players.LocalPlayer if player == nil then return end
enabled = false LeftShoulder = me.Character.Torso["Left Shoulder"] RightShoulder = me.Character.Torso["Right Shoulder"] Neck = me.Character.Torso["Neck"] value1 = LeftShoulder.C0 value2 = RightShoulder.C0 value3 = Neck.C0 Run = game:GetService("RunService")
RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(-0.5, 0, 0) LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(-0.5, 0, 0)
wait(0.75) Neck.C0 = value3 RightShoulder.C0 = value2 LeftShoulder.C0 = value1 wait() RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 1.5) LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1.5)
game:GetService("Chat"):Chat(me.Character.Head, "Sand Rebellion!")
SavedTorsoCFrame = me.Character.Torso.CFrame
for i = 1, 1 do wait(0.01) ShockWave1 = Instance.new("Part") ShockWave1.Parent = Workspace ShockWave1.Size = Vector3.new(math.random(10, 10), math.random(10, 10), math.random(10, 10)) ShockWave1.formFactor = "Symmetric" ShockWave1.Anchored = true ShockWave1.Shape = "Ball" ShockWave1.CanCollide = false ShockWave1.Transparency = 0 ShockWave1.TopSurface = "Smooth" ShockWave1.BottomSurface = "Smooth" zomg = math.random(1, 2) if zomg == 1 then ShockWave1.BrickColor = BrickColor.new("Br. yellowish orange") end if zomg == 2 then ShockWave1.BrickColor = BrickColor.new("Br. yellowish orange") end ShockWave1.Name = "ShockWavePart" m = Instance.new("CylinderMesh") m.Parent = ShockWave1 m.Scale = Vector3.new(2.5, 2.5, 5.5) game.Debris:AddItem(ShockWave1, 2)
ShockWave1.CFrame = SavedTorsoCFrame * CFrame.new(0, 9.5, -(i*20)) * CFrame.Angles(25.15, 0, 0) for u, c in pairs(workspace:GetChildren()) do if c.Name ~= me.Character.Name then h = c:findFirstChild("Humanoid") t = c:findFirstChild("Torso") if h ~= nil and t ~= nil then if (ShockWave1.Position-t.Position).magnitude <= 10 then h:TakeDamage(10) h.Sit = true end end end end end
LeftShoulder.C0 = value1 RightShoulder.C0 = value2
wait(0.1)
wait(4) enabled = true end
enabled = true function onS(mouse) mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onS) |
|
|
| Report Abuse |
|
| |
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 26 Dec 2013 05:17 PM |
rule number one don't post long scripts, tell us where you think the problem is. |
|
|
| Report Abuse |
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 26 Dec 2013 05:37 PM |
| You put the explosion on every other line. This will make your script go super fast. |
|
|
| Report Abuse |
|
|
| 26 Dec 2013 05:40 PM |
| It isn't that long a script and I told you the problem, I don't know where to add and explosion in. |
|
|
| Report Abuse |
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 26 Dec 2013 05:49 PM |
| If this is truly your script, you would know where to put the explosion. |
|
|
| Report Abuse |
|