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 » Game Design
Home Search
 

Can somebody help me fix this script?

Previous Thread :: Next Thread 
Zanebus is not online. 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 is not online. Zanebus
Joined: 09 Jul 2014
Total Posts: 4667
26 Sep 2015 08:46 PM
b
Report Abuse
Zanebus is not online. Zanebus
Joined: 09 Jul 2014
Total Posts: 4667
26 Sep 2015 08:51 PM
BUMP
Report Abuse
Zanebus is not online. Zanebus
Joined: 09 Jul 2014
Total Posts: 4667
26 Sep 2015 08:55 PM
bumpp
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
26 Sep 2015 08:57 PM
character.Torso.Position

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
Zanebus is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Zanebus
Joined: 09 Jul 2014
Total Posts: 4667
26 Sep 2015 09:40 PM
y
Report Abuse
litalela is not online. 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 is not online. Zanebus
Joined: 09 Jul 2014
Total Posts: 4667
26 Sep 2015 09:53 PM
Thanks!



You don't deserve this ramen.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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