of     2   
chevron_rightchevron_rightchevron_right

PCwiener
#30923Sunday, May 27, 2007 1:38 AM GMT

i need to have a brick so when another brick called "pin1" will touch it it will disapear and and a point to the leaderboard. i also need help making the leaderboard any help is appreciated. {PC}
WaffleBoy1
#30934Sunday, May 27, 2007 1:51 AM GMT

1. Your Pin Point, sah. function onTouched(part) local pin = part.Parent if pin.Name = pin1 then pin:remove() local h = game.Players:findFirstChild("Humanoid") if h~=nil then local thisplr = h.Parent:findFirstChild(h.Parent.Name) if thisplr~=nil then local stats = thisplr:findFirstChild("leaderstats") if stats~=nil then local score = stats:findFirstChild("InsertScoreNameHere") if score~=nil then score.Value = score.Value + 1 end end end end end end script.Parent.Touched:connect(onTouched)
WaffleBoy1
#30938Sunday, May 27, 2007 1:54 AM GMT

2. Your ScoreBoard, sah! function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local score = Instance.new("IntValue") score.Name = "Score Name Here" score.Value = 0 mins.Parent = stats stats.Parent = newPlayer end game.Players.ChildAdded:connect(onPlayerEntered)
PCwiener
#30944Sunday, May 27, 2007 1:58 AM GMT

thanks waffle
PCwiener
#30945Sunday, May 27, 2007 1:59 AM GMT

UNITE FOR THE FIGHT!!!
Okard
#30949Sunday, May 27, 2007 2:14 AM GMT

?
PCwiener
#31047Sunday, May 27, 2007 1:39 PM GMT

the pin one ddnt work, and i also need it to remove base1
WaffleBoy1
#31048Sunday, May 27, 2007 1:41 PM GMT

Send me the pin script the way you editted it.
PCwiener
#31051Sunday, May 27, 2007 1:46 PM GMT

i ddnt edit it, did i need to?
WaffleBoy1
#31053Sunday, May 27, 2007 1:57 PM GMT

...Yeah. Where it says ScoreNameHere.
PCwiener
#31061Sunday, May 27, 2007 2:38 PM GMT

i did that, Points
PCwiener
#31179Sunday, May 27, 2007 9:30 PM GMT

the leader doesnt either, can you give me the whole thing, anyone?
WaffleBoy1
#31181Sunday, May 27, 2007 9:32 PM GMT

Woops, sorry PC. I'm really bad at free-hand scripting. I'll fix up the first one, seeing you got the second one.
PCwiener
#31193Sunday, May 27, 2007 10:05 PM GMT

second one?
RobloxianBoy
#31303Monday, May 28, 2007 5:02 AM GMT

anyone?
RobloxianBoy
#31304Monday, May 28, 2007 5:03 AM GMT

hehe oops, wrong account!
miked
#31323Monday, May 28, 2007 12:07 PM GMT

^ hahahahahaha
totti
#31334Monday, May 28, 2007 1:00 PM GMT

Lol now we all know your "secret" account =) Totti
PCwiener
#31407Monday, May 28, 2007 6:15 PM GMT

miked, can you stop laughing and mabey help?
PCwiener
#31501Monday, May 28, 2007 10:48 PM GMT

hehe, please?
WaffleBoy1
#31512Monday, May 28, 2007 11:20 PM GMT

function onTouched(part) local pin = game.Workspace.MyPinHere if pin.Name = pin1 then local h = game.Players:findFirstChild("Humanoid") if h~=nil then local thisplr = h.Parent:findFirstChild(h.Parent.Name) if thisplr~=nil then local stats = thisplr:findFirstChild("leaderstats") if stats~=nil then local score = stats:findFirstChild("InsertScoreNameHere") if score~=nil then score.Value = score.Value + 1 pin:remove() end end end end end end script.Parent.Touched:connect(onTouched)
WaffleBoy1
#31513Monday, May 28, 2007 11:22 PM GMT

Ack. Mispelled the third line. function onTouched(part) local pin = game.Workspace.MyPinHere if pin.Name == pin1 then local h = game.Players:findFirstChild("Humanoid") if h~=nil then local thisplr = h.Parent:findFirstChild(h.Parent.Name) if thisplr~=nil then local stats = thisplr:findFirstChild("leaderstats") if stats~=nil then local score = stats:findFirstChild("InsertScoreNameHere") if score~=nil then score.Value = score.Value + 1 pin:remove() end end end end end end script.Parent.Touched:connect(onTouched)
WaffleBoy1
#31514Monday, May 28, 2007 11:25 PM GMT

print("Community Leaderboard script loaded") function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local score = Instance.new("IntValue") score.Name = "InsertScoreNamehere" score.Value = 0 score.Parent = stats stats.Parent = newPlayer end game.Players.ChildAdded:connect(onPlayerEntered)
PCwiener
#31567Tuesday, May 29, 2007 2:09 AM GMT

thanks waffle, big help. ill go test them now, cross your fingers!
PCwiener
#31570Tuesday, May 29, 2007 2:25 AM GMT

hmm, the LB works but, this is how i edited it, probly did sumtin wrong, and can you make it remove "base1" also? thx function onTouched(part) local pin = game.Workspace.removal if pin.Name == Pin1 then local h = game.Players:findFirstChild("Humanoid") if h~=nil then local thisplr = h.Parent:findFirstChild(h.Parent.Name) if thisplr~=nil then local stats = thisplr:findFirstChild("leaderstats") if stats~=nil then local score = stats:findFirstChild("Points") if score~=nil then score.Value = score.Value + 1 pin:remove() end end end end end end script.Parent.Touched:connect(onTouched)

    of     2   
chevron_rightchevron_rightchevron_right