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
 

Online mode?

Previous Thread :: Next Thread 
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 10:03 PM
Bump
Report Abuse
KillbotXx is not online. KillbotXx
Joined: 27 Oct 2013
Total Posts: 4763
12 Jun 2014 10:04 PM
bump
Report Abuse
KillbotXx is not online. KillbotXx
Joined: 27 Oct 2013
Total Posts: 4763
12 Jun 2014 10:06 PM
b1
Report Abuse
KillbotXx is not online. KillbotXx
Joined: 27 Oct 2013
Total Posts: 4763
12 Jun 2014 10:10 PM
b2
Report Abuse
KillbotXx is not online. KillbotXx
Joined: 27 Oct 2013
Total Posts: 4763
12 Jun 2014 10:13 PM
b3
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 10:15 PM
bump
Report Abuse
KillbotXx is not online. KillbotXx
Joined: 27 Oct 2013
Total Posts: 4763
12 Jun 2014 10:17 PM
b4
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 10:18 PM
b5
Report Abuse
CoolioTree is not online. CoolioTree
Joined: 26 Dec 2012
Total Posts: 2509
12 Jun 2014 10:20 PM
Stop bumping so much.
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