LIKKKI
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1782 |
|
|
| 29 Apr 2012 08:12 AM |
How can i make a bonus plate? (So when you touch it, you earn 100 extra points then die)
Like in some games there are bonus obbys, when you complete it, you step on a plate, get the bonus points and re-spawn (Reset).
Whats the script? |
|
|
| Report Abuse |
|
|
windbag27
|
  |
| Joined: 25 Apr 2011 |
| Total Posts: 8625 |
|
| |
|
| |
|
LIKKKI
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1782 |
|
|
| 29 Apr 2012 08:13 AM |
| I cant. thats why i need help |
|
|
| Report Abuse |
|
|
Dulexio
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 1171 |
|
|
| 29 Apr 2012 08:13 AM |
| I suggest asking Trioxide, not RT. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 29 Apr 2012 08:13 AM |
| Why it should be asked from trioxide? |
|
|
| Report Abuse |
|
|
LIKKKI
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1782 |
|
| |
|
LIKKKI
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1782 |
|
| |
|
Playrobot
|
  |
| Joined: 22 Dec 2007 |
| Total Posts: 1626 |
|
|
| 29 Apr 2012 08:35 AM |
You really need to get scripting help over at the Scripting Helpers forum so people don't rage at you here... Not that they'll be that much nicer over there...but at least it's the right forum.
-- This script needs a leaderboard script with a value named "Money" in order to work.
local debounce = false local amount = 100 --change this number to how much you want it to give you
function onTouched(hit) if hit == nil then return end if hit.Parent == nil then return end if hit.Parent.className == "Tool" then return end if (hit.Parent:findFirstChild("Humanoid") == nil) then return end local human = hit.Parent:findFirstChild("Humanoid") local char = hit.Parent local player = game.Players:GetPlayerFromCharacter(char) local buttonstuff = button:GetChildren() if (human ~= nil) and (debounce == false) then debounce = true local gold = player.leaderstats.Money gold.Value = gold.Value + amount end human.Health = 0 end wait(3) debounce = false end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
LIKKKI
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1782 |
|
| |
|
Playrobot
|
  |
| Joined: 22 Dec 2007 |
| Total Posts: 1626 |
|
|
| 29 Apr 2012 09:57 PM |
| you need a leaderboard to make it work. |
|
|
| Report Abuse |
|
|