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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
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
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 13 Oct 2015 10:09 PM |
Optimxl :'D
Thanks for the laugh :) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Oct 2015 05:37 PM |
Can you post the other script?
-The [Guy] |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 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
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|