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 » Club Houses » Let's Make a Deal
Home Search
 

Re: @LMAD SCRIPTARS

Previous Thread :: Next Thread 
ReaIz is not online. 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 is not online. 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 is not online. 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
Audiocidity is not online. Audiocidity
Joined: 11 Dec 2009
Total Posts: 8536
17 May 2015 06:53 PM
go to scripting forum
Report Abuse
ReaIz is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Audiocidity is not online. Audiocidity
Joined: 11 Dec 2009
Total Posts: 8536
17 May 2015 07:00 PM
enlighten me on what a real lmader is please
Report Abuse
uglypoe is not online. 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 is not online. 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
Audiocidity is not online. Audiocidity
Joined: 11 Dec 2009
Total Posts: 8536
17 May 2015 07:03 PM
lol you say something dumb and cant provide a proper explanation
gg
Report Abuse
Irradiant is not online. 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 is not online. 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
Audiocidity is not online. Audiocidity
Joined: 11 Dec 2009
Total Posts: 8536
17 May 2015 07:08 PM
"Roblox Total Drama Island"
hahahahaha
Report Abuse
ReaIz is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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