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 » Scripters
Home Search
 

Re: Why dis no work

Previous Thread :: Next Thread 
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
13 Oct 2015 09:29 PM
local NukeE = game.Workspace.Part
function Click()
wait(13.3)
for i = 1,100 do
wait()
NukeE.Size = Vector3.new(NukeE.Size.X+1,NukeE.Size.Y+1,NukeE.Size.Z+1)
wait(.1)
end
end

script.Parent.MouseButton1Click:connect(Click)

pl0x
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 Oct 2015 09:31 PM
Did you know you can do NukeE.Size + Vector3.new(1,1,1)



Instance.new("BodyVelocity",SenseiWarrior).velocity = CFrame.new(SenseiWarrior.Torso.Position,YourGirlsDMs.Position).lookVector * 10
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
13 Oct 2015 09:37 PM
for i = 1,100 do
wait()
NukeE.Size = NukeE.Size + Vector3.new(1,1,1)
wait(.1)
end

Works fine normally, but when I add the function Click() it doesnt work?
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
13 Oct 2015 09:41 PM
How do I make it work?
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
13 Oct 2015 10:04 PM
waits can't do any values less than wait() or wait(0.333)
wait(0.333) is the fastest way for me.
i don't know if that helps any just a way to make it faster.
if it's anything less than 0.333 it defaults to wait(1)
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
13 Oct 2015 10:09 PM
Optimxl :'D

Thanks for the laugh :)
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
13 Oct 2015 10:12 PM
@Optimix the minimum wait is actually 1/30, which is .03 not .3

xD

-The [Guy]
Report Abuse
Optimxl is not online. Optimxl
Joined: 26 Feb 2011
Total Posts: 9430
13 Oct 2015 10:18 PM
Oh, my bad. I was told it was .333 not .03.

Whoops should've checked the wiki before I believed them lol.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
13 Oct 2015 10:25 PM
Um script.Parent is a TextButton right?

local inProgress = false
script.Parent.MouseButton1Click:connect(function()
if inProgress then return end
inProgress = true
for i = 1, 100 do
wait()
NukeE.Size = Vector3.new(i, i, i)
end
inProgress = false
end)

This doesn't work?

-The [Guy]
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 05:28 PM
Didnt work.
Also, the reason for the wait(13.3) is because Once they click the button, it waits 13 seconds and it creates a new part (Which is NukeE)
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 05:31 PM
Yeah, it doesnt work even with a wait(13.3) in it.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
14 Oct 2015 05:32 PM
local NukeE = workspace.Part
local inProgress = false

script.Parent.MouseButton1Click:connect(function()
if inProgress then return end
inProgress = true
wait(13.3)
for i = 1, 100 do
wait()
NukeE.Size = Vector3.new(i, i, i)
end
inProgress = false
end)

It makes a new part? or it adjusts the current one? The script you gave adjusted the current part. This one will do the same. If you want a new part, you have to clone it or use Instance.new()

-The [Guy]
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 05:35 PM
Its still the same size. And no, I already have a script that does Instance.new
Basically, in another script, once they click the button, it waits 13 seconds and creates the Instance.new Part. All I need now is for it to grow bigger.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
14 Oct 2015 05:37 PM
Can you post the other script?

-The [Guy]
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 05:38 PM
function Clicked()
script.Parent.LocalScript.NukeSound:Play()
game.Workspace.Nuke.Button.NukeTime.TextLabel.Visible = true
game.Workspace.Nuke.Button.NukeTime:Clone().Parent = game.Players.LocalPlayer.PlayerGui
wait(13)
Instance.new("Part",game.Workspace)
game.Workspace.Part.Shape = ("Ball")
local NukeE = game.Workspace.Part
NukeE.CanCollide = false
NukeE.Transparency = 0.5
NukeE.Material = ("Ice")
while wait(.2) do
local colors = {"Really red","Deep orange","New Yeller"}
NukeE = workspace:findFirstChild("Part")
NukeE.BrickColor = BrickColor.new(colors[math.random(1,3)])
end
end

script.Parent.MouseButton1Click:connect(Clicked)
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 05:56 PM
b
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
14 Oct 2015 05:57 PM
unction Clicked()
script.Parent.LocalScript.NukeSound:Play()
game.Workspace.Nuke.Button.NukeTime.TextLabel.Visible = true
game.Workspace.Nuke.Button.NukeTime:Clone().Parent = game.Players.LocalPlayer.PlayerGui
wait(13)
Instance.new("Part",game.Workspace)
game.Workspace.Part.Shape = ("Ball")
local NukeE = game.Workspace.Part
NukeE.CanCollide = false
NukeE.Transparency = 0.5
NukeE.Material = ("Ice")
while wait(.2) do
local colors = {"Really red","Deep orange","New Yeller"}
NukeE = workspace:findFirstChild("Part")
NukeE.BrickColor = BrickColor.new(colors[math.random(1,#Colors)])
spawn(function()
for I = 1,20 do
NukeE.Size = NukeE.Size + Vector3.new(.5,.5,.5)
wait()
end
end)
end
end

script.Parent.MouseButton1Click:connect(Clicked)
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 06:01 PM
Nope, still not working.
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
14 Oct 2015 06:02 PM
function Clicked()
script.Parent.LocalScript.NukeSound:Play()
game.Workspace.Nuke.Button.NukeTime.TextLabel.Visible = true
game.Workspace.Nuke.Button.NukeTime:Clone().Parent = game.Players.LocalPlayer.PlayerGui
wait(13)
Instance.new("Part",game.Workspace)
game.Workspace.Part.Shape = ("Ball")
local NukeE = game.Workspace.Part
NukeE.CanCollide = false
NukeE.Transparency = 0.5
NukeE.Material = ("Ice")
while wait(.2) do
local colors = {"Really red","Deep orange","New Yeller"}
NukeE = workspace:findFirstChild("Part")
NukeE.BrickColor = BrickColor.new(colors[math.random(1,#Colors)])
spawn(function()
for I = 1,20 do
NukeE.Size = NukeE.Size + Vector3.new(.5,.5,.5)
wait()
end
end)
end
end

script.Parent.MouseButton1Click:connect(Clicked)


I spelt function wrong.
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
14 Oct 2015 06:03 PM
I fixed that for you before, It still wont work.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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