Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 08:43 PM |
I'm new to this kind of stuff and I failed horribly at this attempt.
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() game.ReplicatedStorage.Coin:clone().Parent=player.Torso.Position end) end) end)
All I know is that it's broken :/ |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
| |
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
| |
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
| |
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 26 Sep 2015 08:57 PM |
character.Torso.Position
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 08:58 PM |
Is that all? I just replace player with character?
"Can't help but feel sorry for ya." |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 08:58 PM |
I can't get it to work.
"Can't help but feel sorry for ya." |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 26 Sep 2015 09:01 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() local clone = game.ReplicatedStorage.Coin:Clone() clone.Position = char.Torso.Position clone.Parent = game.Workspace end) end) end)
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 09:02 PM |
@lit It's in a localscript :P It can't access added players sorry I messed up on that one.
"Can't help but feel sorry for ya." |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 26 Sep 2015 09:05 PM |
why in a localscript
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 09:07 PM |
Nevermind I changed it but anyways thanks But one problem When the player dies he collects the coin qq
"Can't help but feel sorry for ya." |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 09:09 PM |
Is there a way to make it spawn just a bit away from the player who died so somebody can collect it?
If not I think I might just have to make a script that when the player kills the other player they get coins Which would be even harder for me
I'm such a newbie noob
"Can't help but feel sorry for ya." |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
| |
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
|
| 26 Sep 2015 09:44 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() local clone = game.ReplicatedStorage.Coin:Clone() clone.Position = char.Torso.Position + Vector3.new(0,8,0) clone.Parent = game.Workspace end) end) end)
➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ |
|
|
| Report Abuse |
|
|
Zanebus
|
  |
| Joined: 09 Jul 2014 |
| Total Posts: 4667 |
|
|
| 26 Sep 2015 09:53 PM |
Thanks!
You don't deserve this ramen. |
|
|
| Report Abuse |
|
|