|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jul 2016 08:24 AM |
| Change the part's transparency and make can collide false. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Jul 2016 08:31 AM |
| Hmm, then try moving it to lighting or teleporting it away. That could work. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2016 08:31 AM |
@Mada ? It is.
OT's Spongebob Squarepants - Gimme your krabby patties |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jul 2016 10:41 AM |
@Titanic Omg thank you so much man.
OT's Spongebob Squarepants - Gimme your krabby patties |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|