|
| 27 Apr 2013 07:39 AM |
BadgeID = 113875179
function onClicked() for p = 1,10 do wait(0.5) script.Parent.Parent.Credits.BackgroundTransparency = script.Parent.Parent.Credits.BackgroundTransparency + 0.1 script.Parent.Parent.Eggs.BackgroundTransparency = script.Parent.Parent.Eggs.BackgroundTransparency + 0.1 script.Parent.Parent.Lobby.BackgroundTransparency = script.Parent.Parent.Lobby.BackgroundTransparency + 0.1 script.Parent.Parent.Store.BackgroundTransparency = script.Parent.Parent.Store.BackgroundTransparency + 0.1 script.Parent.Parent.Play.BackgroundTransparency = script.Parent.Parent.Play.BackgroundTransparency + 0.1 end
heh = game.Lighting.EggViewer:clone() heh.Parent = script.Parent.Parent.Parent --------------------------------------------- if script.Parent.Parent.Parent.Parent:IsA("Player") then if game:GetService("BadgeService"):UserHasBadge(script.Parent.Parent.Parent.Parent.userId, BadgeId) then game.Workspace.pieinyofaceha:remove() end end --------------------------------------------- game.Debris:AddItem(script.Parent.Parent,0)
end script.Parent.MouseButton1Click:connect(onClicked)
--[[ What I want this to do, is if a user has a badge, it'll remove me.
Removing me is not the output I will keep, I just wanted to test it in online mode with something that would really stand out.
Anyway, there's no output, I'm not getting removed, and neither is the thing that I'm adding to debris.
Any ideas?
]] |
|
|
| Report Abuse |
|
|
A8P
|
  |
| Joined: 17 Apr 2013 |
| Total Posts: 230 |
|
| |
|
|
| 27 Apr 2013 07:56 AM |
Look on the wiki, that's not it. At least I don't think so.
Bump |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 27 Apr 2013 11:50 AM |
| C'mon, I really need some help here. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2013 12:35 PM |
if game:GetService("BadgeService"):UserHasBadge(script.Parent.Parent.Parent.Parent.userId, BadgeId) then
Should be :
if game:GetService("BadgeService"):UserHasBadge(script.Parent.Parent.Parent.Parent.userId, BadgeID) then
Variables are case sensitive. |
|
|
| Report Abuse |
|
|