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
 

Re: I need major help.

Previous Thread :: Next Thread 
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:11 AM
Alright so if you wanna help me, your read very carefully. I made a point system. I added a leaderboard and when you walk onto Rubies you find around my game, it gives you 1 point onto the leaderboards. But heres the thing, I want the Ruby to disappear once you've walked onto it once. If you keep on walking onto the ruby as of now, it will keep on adding 1 point. Please help me. And by help I mean tell me how, not like getting into my game.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:16 AM
Heres the ruby script I made:

script.Parent.Touched:connect (function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
print(player)
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1

end)


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
SSSpencer413 is not online. SSSpencer413
Joined: 27 Jan 2016
Total Posts: 375
25 Jul 2016 08:24 AM
Change the part's transparency and make can collide false.
Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:27 AM
@Spencer That'sactually what it is right now. It's transparent with a ruby decal and you can walk through it. Idk how but I have to somehow get rid of the ruby off of the map once I've walked into it. It still has value if its transparent and non collided.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
Mada754 is not online. Mada754
Joined: 22 Jan 2013
Total Posts: 5285
25 Jul 2016 08:30 AM
Make it a block.


#code if aninja = true then print ('yay')
Report Abuse
SSSpencer413 is not online. SSSpencer413
Joined: 27 Jan 2016
Total Posts: 375
25 Jul 2016 08:31 AM
Hmm, then try moving it to lighting or teleporting it away. That could work.
Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:31 AM
@Mada ? It is.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
Mada754 is not online. Mada754
Joined: 22 Jan 2013
Total Posts: 5285
25 Jul 2016 08:32 AM
Well, not a decal, like a little block named ruby, and send it somewhere when touched.


#code if aninja = true then print ('yay')
Report Abuse
NoNeglect is not online. NoNeglect
Joined: 14 Apr 2012
Total Posts: 1001
25 Jul 2016 08:36 AM
another thing you could do would be to put a wait time and make it position to the same coordinates after that amount of time.


https://www.roblox.com/games/462545194/Building-Showcase#!/about | B.I.P = Builder In Progress


Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:55 AM
I understand what most of you guys are saying but I'm very new to scripting and Idk the specific line of code to write.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 08:56 AM
I know I'll need to add it to my Ruby script.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
Titanicman882ftlong is not online. Titanicman882ftlong
Joined: 14 Aug 2012
Total Posts: 430
25 Jul 2016 09:04 AM
local Count = 0

script.Parent.Touched:connect (function(hit)
if Count == 0 then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
print(player)
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1
Count = 1
end
end)


Expect nothing, to expect everything
Report Abuse
InfiniteCoinz is not online. InfiniteCoinz
Joined: 13 Feb 2012
Total Posts: 4616
25 Jul 2016 10:41 AM
@Titanic Omg thank you so much man.


OT's Spongebob Squarepants - Gimme your krabby patties
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
25 Jul 2016 10:48 AM
do ruby:destroy()
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