Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 02:51 PM |
How can I find a LocalPlayer who clicked a button, and add sparkles to there toroso?
I made this but it didn't work :
(This is only part of the script)
local player = game.Workspace.LocalPlayer.Torso
local sparkle = Instance.new("Sparkles",player) sparkle.Name = 'twittercode' |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 02:52 PM |
| Well, I spelled "torso" wrong.. |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 02:56 PM |
script.Parent.ClickDetector.MouseClick:connect(function(player) local s = Instance.new("Sparkles",player) s.Name = "twittercode" end) |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 02:57 PM |
woops messed up
script.Parent.ClickDetector.MouseClick:connect(function(player) local s = Instance.new("Sparkles",player.Character.Torso) s.Name = "twittercode" end) |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 03:05 PM |
| It keep saying in output " LocalPlayer is not a part of Workspace" |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 03:09 PM |
use my code dur
local gcad = ROBLOXForum:FindFirstChild("Game Creation and Development") local f = Instance.new("Code Reply") f.Parent = gcad.Scripters.Thread |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
| |
|
|
| 18 Apr 2015 03:15 PM |
use the code that i showed you its that obvious
local f = Instance.new("Code Reply",ROBLOXForum.GameCreationAndDevelopment.Scripters) |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 03:20 PM |
| I did, and it's not working... |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 03:20 PM |
script.Parent.ClickDetector.MouseClick:connect(function(player) local s = Instance.new("Sparkles",player.Character.Torso) s.Name = "twittercode" end)
this one... |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 03:20 PM |
| Just to let you know, they need to enter a certain code for them to get sparkles. So how can we fix the paramater? |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 03:22 PM |
| I want them to enter the certain text, then get the sparkles.. if you know what I mean |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
| |
|
| |
|
|
| 18 Apr 2015 08:08 PM |
| Do you want the code to be redeemable or do you want each code to be redeemed only once? |
|
|
| Report Abuse |
|
|
Vritix
|
  |
| Joined: 01 Jan 2011 |
| Total Posts: 2790 |
|
|
| 18 Apr 2015 08:15 PM |
| I only want them to redeem it once. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 18 Apr 2015 08:21 PM |
| Here, just use this: http://www.roblox.com/Click-to-have-sparkles-item?id=239601112 |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 08:30 PM |
Sorry it took so long but here it is
http://www.roblox.com/Twitter-Code-Button-item?id=239605407 |
|
|
| Report Abuse |
|
|