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: Whats Wrong with this ;-;

Previous Thread :: Next Thread 
romanaisawesome is online. romanaisawesome
Joined: 25 May 2013
Total Posts: 996
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
romanaisawesome is online. romanaisawesome
Joined: 25 May 2013
Total Posts: 996
06 Feb 2017 09:03 PM
Omg No hashtags :D


R$1,175
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
06 Feb 2017 11:11 PM
"game.StarterGui"

Use playergui


Report Abuse
Wrathsong is online. 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
romanaisawesome is online. romanaisawesome
Joined: 25 May 2013
Total Posts: 996
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
romanaisawesome is online. romanaisawesome
Joined: 25 May 2013
Total Posts: 996
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 is not online. 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
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
07 Feb 2017 03:58 AM
"ColorSequence.new()(255,0,0)"

is that correct?


Report Abuse
Decorpsesonator is not online. Decorpsesonator
Joined: 24 May 2013
Total Posts: 130
07 Feb 2017 04:17 AM
Color3?


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