SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 04:40 PM |
script.Parent.MouseButton1Down:connect(function() player = script.Parent.Parent.Parent.Parent.Parent if player then if player.Character:findFirstChild("Torso") then if player.Character.Torso:findFirstChild("Sparkles") then player.Character.Torso.Sparkles:Remove() script.Parent.Text = "OFF" else f = Instance.new("Sparkles") f.Parent = player.Character.Torso script.Parent.Text = "ON" end end end end)
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 04:44 PM |
use :Destroy() instead of :Remove(), only problem i see
i'd do this tho (LocalScript)
local Plr = game.Players.LocalPlayer local Char = Plr.Character or Plr.CharacterAdded:wait()
local function Clicked() local Sparkles = Char['Torso']:findFirstChild('Sparkles') if Sparkles then Sparkles:Destroy() script.Parent.Text = 'OFF' else Instance.new('Sparkles',Char['Torso']) script.Parent.Text = 'ON' end end
script.Parent.MouseButton1Click:connect(Clicked) |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 04:48 PM |
o ty verbal
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
Ioudpack
|
  |
| Joined: 27 Oct 2014 |
| Total Posts: 6200 |
|
|
| 22 Jul 2015 04:49 PM |
hi squid
+12,122 posts -9Millionaire, Terintino, 9MiIIi, mxgos, ColourfulMula |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 04:50 PM |
hi
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
Sasayaki
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 33868 |
|
|
| 22 Jul 2015 04:50 PM |
| To make verbal's more efficient turn all script.Parent into a new variable |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 04:51 PM |
@Sas I'm good
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 04:52 PM |
meh why the hell not
local Plr = game.Players.LocalPlayer local Char = Plr.Character or Plr.CharacterAdded:wait() local Parent = script.parent
local function Clicked() local Sparkles = Char['Torso']:findFirstChild('Sparkles') if Sparkles then Sparkles:Destroy() Parent.Text = 'OFF' else Instance.new('Sparkles',Char['Torso']) Parent.Text = 'ON' end end
Parent.MouseButton1Click:connect(Clicked)
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 22 Jul 2015 05:18 PM |
wait() local button = script.Parent local sparkles = Instance.new("Sparkles",(game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait())['Torso'])
button.MouseButton1Click:connect(function() sparkles.Enabled = not sparkles.Enabled button.Text = sparkles.Enabled and "ON" or "OFF" end)
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D ~ Purple Squid > |
|
|
| Report Abuse |
|
|
| |
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 05:21 PM |
@Web I'm amazed
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 22 Jul 2015 05:23 PM |
I recommend waiting at the start of a LocalScript, rarely but sometimes if you don't wait the script won't load at all. I forget what causes it though, crazyman32 made a post about it at one point. :P
~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D ~ Purple Squid > |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
|
| 22 Jul 2015 05:25 PM |
add
repeat wait() until Player.Character
and make sure to make the torso a variable
local Torso = Player.Character:FindFirstChild("Sparkles")
it's not too bad tho |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
| |
|
SquidIy
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 27509 |
|
|
| 22 Jul 2015 05:26 PM |
@Web mk
( ͡° ͜ʖ ͡°) Siggys are too much work, like your mom | 171,063: RAP | ~SquidIy | |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 05:34 PM |
lol'd
Socom+Rex+WCS+TGC>All | Add 6k posts to my count |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 05:36 PM |
i was about 2 post something similar 2 web's but i checked if some1 posted it already. );
Goal for the month: idk |
|
|
| Report Abuse |
|
|