ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 06:51 PM |
hi ok
quick help me
i have a script fuction thing that makes an object (in this case an egg) spawn randomly every something seconds
it works, but i need the egg to reward a badge, and no matter what i try, it breaks the egg, and just rolls.
the badge script also had a destroy on touch, and didn't award badge, or disapear
wat do
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,146] |
|
|
| Report Abuse |
|
|
xman262
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 19094 |
|
|
| 17 May 2015 06:51 PM |
you go to scripting forum
Tx21/Tix 100,000 R$1,128/R$10,000 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 06:52 PM |
those people are dweebs
i know lmadrs
and i know some can script
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,151] |
|
|
| Report Abuse |
|
|
| |
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 06:55 PM |
neither of you are real lmaders lol
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,151] |
|
|
| Report Abuse |
|
|
xman262
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 19094 |
|
|
| 17 May 2015 06:55 PM |
yes I am noob
Tx21/Tix 100,000 R$1,128/R$10,000 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 06:56 PM |
lolk
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,155] |
|
|
| Report Abuse |
|
|
Irradiant
|
  |
| Joined: 31 May 2012 |
| Total Posts: 56114 |
|
|
| 17 May 2015 06:56 PM |
copy and paste script here i think i know the problem already
RAP: R$678,797 ▌ROBUX: R$110,756 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 06:59 PM |
ok
lemme giv u it all
EGG SPAWNER:
_G.spawnEgg = function(egg) if game.Lighting:FindFirstChild(egg) then local copy = game.Lighting:FindFirstChild(egg):Clone() copy.Parent = workspace copy.CFrame = CFrame.new(math.random(-552,552), 15 , math.random(-460, 647)) end end
EXAMPLE OF ONE EGG IN FUCTION:
while wait(1 * 60) do _G.spawnEgg("Egg1") end
EGG BADGE GIVER:
local badgeid = 234591274 local badgeservice = game:GetService("BadgeService");
script.Parent.Touched:connect(function(p) if p:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(p) badgeservice:AwardBadge(player.userId, badgeid) script.Parent.Parent:Destroy() end end)
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,155] |
|
|
| Report Abuse |
|
|
|
| 17 May 2015 07:00 PM |
| enlighten me on what a real lmader is please |
|
|
| Report Abuse |
|
|
uglypoe
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 4382 |
|
|
| 17 May 2015 07:02 PM |
script.Parent.Touched:connect(function(p) if p:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(p) badgeservice:AwardBadge(player.userId, badgeid) script.Parent.Parent:Destroy() end end)
it should be p.Parent:FindFirstChild("Humanoid")
The Ugliest Poe on LMaD ( ͡° ͜ʖ ͡°) // RAP: 16,877 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:02 PM |
@audio
scram
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,155] |
|
|
| Report Abuse |
|
|
|
| 17 May 2015 07:03 PM |
lol you say something dumb and cant provide a proper explanation gg |
|
|
| Report Abuse |
|
|
Irradiant
|
  |
| Joined: 31 May 2012 |
| Total Posts: 56114 |
|
|
| 17 May 2015 07:03 PM |
what @ugly said
as it is, it's checking your leg for the Humanoid But the Humanoid is located in ur character's model
RAP: R$678,797 ▌ROBUX: R$110,756 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:04 PM |
@ugly,irr
ok trying it out
~ReaIz~ [ROBUX: R$55] [TIX: Tx225] [RAP: 190,157] |
|
|
| Report Abuse |
|
|
|
| 17 May 2015 07:08 PM |
"Roblox Total Drama Island" hahahahaha |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:10 PM |
@ugly,irr
nope, still ain't working
~ReaIz~ [ROBUX: R$55] [TIX: Tx235] [RAP: 190,157] |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:12 PM |
WAIT WAIT, I MISSED THE "PARENT"
HOLD UP
~ReaIz~ [ROBUX: R$55] [TIX: Tx235] [RAP: 190,150] |
|
|
| Report Abuse |
|
|
uglypoe
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 4382 |
|
|
| 17 May 2015 07:13 PM |
FIXED VERSION:
EGG BADGE GIVER:
local badgeid = 234591274 local badgeservice = game:GetService("BadgeService")
script.Parent.Touched:connect(function(p) if p.Parent:FindFirstChild("Humanoid") then local player = game.Players:FindFirstChild(p.Parent.Name) badgeservice:AwardBadge(player.userId,badgeid) script.Parent.Parent:Destroy() end end)
The Ugliest Poe on LMaD ( ͡° ͜ʖ ͡°) // RAP: 16,880 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:30 PM |
didn't work
~ReaIz~ [ROBUX: R$55] [TIX: Tx235] [RAP: 190,150] |
|
|
| Report Abuse |
|
|
uglypoe
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 4382 |
|
|
| 17 May 2015 07:30 PM |
Then check the Developer's Console
The Ugliest Poe on LMaD ( ͡° ͜ʖ ͡°) // RAP: 16,880 |
|
|
| Report Abuse |
|
|
ReaIz
|
  |
| Joined: 06 May 2012 |
| Total Posts: 45800 |
|
|
| 17 May 2015 07:31 PM |
wat?
~ReaIz~ [ROBUX: R$55] [TIX: Tx235] [RAP: 190,148] |
|
|
| Report Abuse |
|
|
uglypoe
|
  |
| Joined: 26 Mar 2011 |
| Total Posts: 4382 |
|
|
| 17 May 2015 07:31 PM |
F9
The Ugliest Poe on LMaD ( ͡° ͜ʖ ͡°) // RAP: 16,874 |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 17 May 2015 07:33 PM |
omg @ugly, irr
the parameter is obj in the workspace that touches it
workspace.Player touches it
if workspace.Player:FindFirstChild("Humanoid") then --works |
|
|
| Report Abuse |
|
|
Cmaj7
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 36653 |
|
|
| 17 May 2015 07:33 PM |
How about you make the egg award the badge, and once that works you make it spawn around the map?
I could fix this in 3 minutes but havent coded in months. |
|
|
| Report Abuse |
|
|