|
| 06 Feb 2017 09:02 PM |
game StarterPlayer StarterPlayerScripts LocalScript LocalScript: --Variables local player = game.Players.Player1 local char = player.Character local SparkleStuff = Instance.new("Folder",char.Torso) SparkleStuff.Name = "SparkleStuff" local Sparkles = Instance.new("NumberValue",char.Torso.SparkleStuff) Sparkles.Name = "Sparkle_Amount" local Status = Instance.new("BoolValue",char.Torso.SparkleStuff) Status.Name = "Status" local a = Instance.new("ParticleEmitter",char.Torso) repeat wait() until player.Character
game.StarterGui.Sparkles.Frame.Visible = true a.Parent = char:FindFirstChild("Torso") a.Color = ColorSequence.new()(255,0,0) a.size = 1 a.LightEmission = 1 a.EmissionDirection = "Top" a.Lifetime = 1 a.Rate = (char.Torso.Sparkle_Amount.Value) a.Rotation = 10 a.Rotation = 10 a.RotSpeed = 10 a.Speed = 1 a.Texture = "rbxasset://textures/particles/sparkles_main.dds"
game StarterGui Sparkles Frame Sparkle_Amount Confirm1 LocalScript TextLabel SparkleAmountText LocalScript: local player = game.Players.Player1 repeat wait() until player.Character local char = player.Character local SAmount = game.StarterGui.Sparkles.Frame.Sparkle_Amount function onClicked() local amount = char.Torso.SparkleStuff.Sparkle_Amount == SAmount.Text
if amount.Value <= 1 then script.Parent.BackgroundColor = BrickColor.new("Lime green") elseif amount.Value >1 then script.Parent.BackgroundColor = BrickColor.new("Really red") end end script.Parent.MouseButton1Down:connect(onClicked)
If any hashtags message me for the script ;-; I need help plessss
R$1,175 |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 06 Feb 2017 11:11 PM |
"game.StarterGui"
Use playergui
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 06 Feb 2017 11:18 PM |
Use PlayerGui.
https://www.youtube.com/watch?v=txcHH11-3v8
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow me on twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2017 11:20 PM |
Now that someone helped me saying I need to use PlayerGui(not anyone that posted on the forum) everyone is saying use PlayerGui now that I'm using it XD
R$1,175 |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2017 11:28 PM |
I don't know why, but when I input the value and press the button the value in "SparkleStuff" name Sparkles or what ever doesn't change, any help?
R$0 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 06 Feb 2017 11:34 PM |
then it time to debug and put prints + look at output for any errors/warnings
|
|
|
| Report Abuse |
|
|
|
| 07 Feb 2017 03:58 AM |
"ColorSequence.new()(255,0,0)"
is that correct?
|
|
|
| Report Abuse |
|
|
| |
|