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: Wont work in play but will in play solo

Previous Thread :: Next Thread 
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jul 2012 12:04 AM
Is there a certain way to fix this. (My script is 230 lines, so im not going to just up and front post it)
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jul 2012 07:58 AM
Bump
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
25 Jul 2012 07:59 AM
No script, no help.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
25 Jul 2012 07:59 AM
Post the script.
How are we supost to fix it if we cant see it?
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jul 2012 08:05 AM
230 lines and no output isn't something most people care to do if that's what you first put up. I need to be sure that someone will help.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
25 Jul 2012 08:06 AM
Give it a try. Maybe someone helps. Else test with prints.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jul 2012 08:19 AM
Oh right! I forgot about the prints. Well, here's the script:
Sorry for the tabbing, im pressed for time so i couldn't remove it.

lol = game.Workspace
script.Parent.Equipped:connect(function(mouse)
canGo = false
mouse.KeyUp:connect(function(key)
canGo = false
end)
mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "r" then
canGo = true
while canGo == true do
local Wall = Instance.new("Part", Workspace)
Wall.Name = ("Wall")
Wall.BrickColor = BrickColor.new("Bright yellow")
Wall.Reflectance = 0.4
Wall.CFrame = CFrame.new(mouse.Hit.p.x, mouse.Hit.p.y + 4, mouse.Hit.p.z)
Wall.Anchored = true
Wall.Size = Vector3.new(1,1,1)
for g = 1, 8 do
Wall.Size = Vector3.new(g, g, 1)
wait()
end
local Walla = Instance.new("Part", Workspace)
Walla.Anchored = true
Walla.BrickColor = BrickColor.new("Bright yellow")
Walla.Reflectance = 0.4
Walla.CFrame = CFrame.new(lol.Wall.Position.x + 4, lol.Wall.Position.y, lol.Wall.Position.z + 4)
Walla.Size = Vector3.new(1,1,1)
for h = 1, 8 do
Walla.Size = Vector3.new(1, h, h)
wait()
end
Walla.CFrame = CFrame.new(lol.Wall.Position.x + 4, lol.Wall.Position.y, lol.Wall.Position.z + 4) --To make sure it stays there...
local Wallb = Instance.new("Part", Workspace)
Wallb.Anchored = true
Wallb.BrickColor = BrickColor.new("Bright yellow")
Wallb.Reflectance = 0.4
Wallb.CFrame = CFrame.new(lol.Wall.Position.x, lol.Wall.Position.y, lol.Wall.Position.z + 8)
Wallb.Size = Vector3.new(1,1,1)
for j = 1, 8 do
Wallb.Size = Vector3.new(j, j, 1)
wait()
end
Wallb.CFrame = CFrame.new(lol.Wall.Position.x, lol.Wall.Position.y, lol.Wall.Position.z + 8)--To make sure it stays there....
local Wallc = Instance.new("Part", Workspace)
Wallc.Anchored = true
Wallc.BrickColor = BrickColor.new("Bright yellow")
Wallc.Reflectance = 0.4
Wallc.CFrame = CFrame.new(lol.Wall.Position.x - 4, lol.Wall.Position.y, lol.Wall.Position.z + 4)
Wallc.Size = Vector3.new(1,1,1)
for k = 1, 8 do
Wallc.Size = Vector3.new(1, k, k)
wait()
end
Wallc.CFrame = CFrame.new(lol.Wall.Position.x - 4, lol.Wall.Position.y, lol.Wall.Position.z + 4)--To make sure it stays there....
local Walld = Instance.new("Part", Workspace)
Walld.Anchored = true
Walld.BrickColor = BrickColor.new("Bright yellow")
Walld.Reflectance = 0.4
Walld.CFrame = CFrame.new(lol.Wall.Position.x, lol.Wall.Position.y + 4, lol.Wall.Position.z + 4)
Walld.Size = Vector3.new(1,1,1)
for l = 1, 8 do
Walld.Size = Vector3.new(l, 1, l)
wait()
end
Walld.CFrame = CFrame.new(lol.Wall.Position.x, lol.Wall.Position.y + 4, lol.Wall.Position.z + 4)--To make sure it stays there....
wait(8)
Wall:Destroy()--notice the anti-spam bit
wait(1)
Walla:Destroy()
wait(1)
Wallb:Destroy()
wait(1)
Wallc:Destroy()
wait(1)
Walld:Destroy()
end
end
if key == "f" then
Light = Instance.new("Part", Workspace)
Cone = Instance.new("SpecialMesh", Workspace)
Cone.Parent = Light
Cone.MeshId = "http://www.roblox.com/asset/?id=1033714"
Light.Size = Vector3.new(1, 4, 2)
Light.Anchored = true
Light.CFrame = CFrame.new(script.Parent.Parent.Torso.Position.x, script.Parent.Parent.Torso.Position.y + 8.6, script.Parent.Parent.Torso.Position.z)
Light.BrickColor = BrickColor.new("New Yeller")
Light.Transparency = 0.4
Cone.Scale = Vector3.new(0.5, 30, 0.5)
for t = 0.5, 7, 0.5 do
Cone.Scale = Vector3.new(t, 30, t)
wait(0.1)
end
wait(0.75)
Lighta = Instance.new("Part", Workspace)
Lighta.Anchored = true
Lighta.BrickColor = BrickColor.new("New Yeller")
Lighta.Size = Vector3.new(9, 20, 9)
Lighta.CanCollide = false
Lighta.Transparency = 0.4
Lol = Instance.new("SpecialMesh", Workspace)
Lol.Parent = Lighta
Lol.MeshId = "http://www.roblox.com/asset/?id=1033714"
Lol.Scale = Vector3.new(0.5, 30, 0.5)
Lighta.CFrame = CFrame.new(mouse.hit.p.x, mouse.hit.p.y + 10, mouse.hit.p.z)
for y = 0.5, 7, 0.5 do
Lol.Scale = Vector3.new(y, 30, y)
wait(0.1)
end
ouch = script.Parent.HeavenlyLight:clone()
ouch.Disabled = false
ouch.Parent = Lighta
wait(4)
for z = 7, 0.5, -0.5 do
Cone.Scale = Vector3.new(z, 30, z)
wait(0.1)
end
Light:Destroy()
wait(1)
for u = 7, 0.5, -0.5 do
Lol.Scale = Vector3.new(u, 30, u)
wait(0.1)
end
Lighta:Destroy()
end
if key == "g" then
aa = Instance.new("Part", Workspace)
ab = Instance.new("Part", Workspace)
ac = Instance.new("Part", Workspace)
ad = Instance.new("Part", Workspace)
ae = Instance.new("Part", Workspace)
af = Instance.new("Part", Workspace)
ag = Instance.new("Part", Workspace)
ah = Instance.new("SpecialMesh", Workspace)
ai = Instance.new("SpecialMesh", Workspace)
aa.Size = Vector3.new(5, 10, 5)
ab.Size = Vector3.new(5, 10, 5)
ac.Size = Vector3.new(10, 10, 5)
ad.Size = Vector3.new(10, 5, 5)
ae.Size = Vector3.new(10, 5, 5)
af.Size = Vector3.new(10, 5, 5)
ag.Size = Vector3.new(2, 2, 2)
ah.MeshId = "http://www.roblox.com/asset/?id=18477732"
ai.MeshType = 0
aa.BrickColor = BrickColor.new("New Yeller")
ab.BrickColor = BrickColor.new("New Yeller")
ac.BrickColor = BrickColor.new("New Yeller")
ad.BrickColor = BrickColor.new("New Yeller")
ae.BrickColor = BrickColor.new("New Yeller")
af.BrickColor = BrickColor.new("New Yeller")
ag.BrickColor = BrickColor.new("New Yeller")
aa.Transparency = 1
ab.Transparency = 1
ac.Transparency = 1
ad.Transparency = 1
ae.Transparency = 1
af.Transparency = 1
ag.Transparency = 1
ah.Scale = Vector3.new(5, 5, 5)
ah.Parent = ag
ai.Parent = af
aa.Anchored = true
ab.Anchored = true
ac.Anchored = true
ad.Anchored = true
ae.Anchored = true
af.Anchored = true
ag.Anchored = true
fire = Instance.new("Fire")
fire.Color = Color3.new(255, 255, 0)
fire.SecondaryColor = Color3.new(255, 255, 0)
fire.Size = 30
fire.Parent = ac
ac.CFrame = CFrame.new(mouse.Hit.p.x, mouse.Hit.p.y + 27.8, mouse.Hit.p.z)
aa.CFrame = CFrame.new(ac.Position.x - 2.5, ac.Position.y - 9, ac.Position.z)
ab.CFrame = CFrame.new(ac.Position.x + 2.5, ac.Position.y - 9, ac.Position.z)
ad.CFrame = CFrame.new(ac.Position.x + 10, ac.Position.y + 2.5, ac.Position.z)
ae.CFrame = CFrame.new(ac.Position.x - 10, ac.Position.y + 2.5, ac.Position.z)
af.CFrame = CFrame.new(ac.Position.x, ac.Position.y + 7.5, ac.Position.z)
ag.CFrame = CFrame.new(af.Position)
for q = 1, 0.3, -0.05 do
aa.Transparency = q
ab.Transparency = q
ac.Transparency = q
ad.Transparency = q
ae.Transparency = q
af.Transparency = q
ag.Transparency = q
wait(0.15)
end
wait(3)
Boom = Instance.new("Part", Workspace)
Boom.Shape = 0
Boom.BrickColor = BrickColor.new("Toothpaste")
Boom.Transparency = 0.8
Boom.Anchored = true
Boom.CanCollide = false
Boom.CFrame = CFrame.new(ac.Position)
for m = 120, 2, -2 do
Boom.Size = Vector3.new(m, m, m)
Boom.CFrame = CFrame.new(ac.Position)
wait(0.1)
end
Boom.BrickColor = BrickColor.new("New Yeller")
az = script.Parent.HeavenlyLight:clone()
az.Disabled = false
az.Parent = Boom
for p = 2, 90 do
Boom.Size = Vector3.new(p, p, p)
Boom.CFrame = CFrame.new(ac.Position)
wait(0.1)
end
Boom:Destroy()
wait(2)
for w = 0.3, 1, 0.05 do
aa.Transparency = w
ab.Transparency = w
ac.Transparency = w
ad.Transparency = w
ae.Transparency = w
af.Transparency = w
ag.Transparency = w
wait(0.15)
end
aa:Destroy()
ab:Destroy()
ac:Destroy()
ad:Destroy()
ae:Destroy()
af:Destroy()
ag:Destroy()
end
end)
end)
Report Abuse
Windburnt is not online. Windburnt
Joined: 16 Jul 2012
Total Posts: 144
25 Jul 2012 08:41 AM
Is it a LocalScript? Remember to make all tool scripts a LocalScript, otherwise they won't work as expected in online mode.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
25 Jul 2012 08:49 AM
Really? Ill try that thanks.
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