FIRST BUILDISM BADGE!
#1
Video 
I has done it! I made the first buildism badge! Code:

enabled = true
function TestHit(part)
if not enabled then return end
enabled = false
print(part.Parent.Name .. " has hit " .. script.Parent.Name)
game:chat(Color(100,100,0), "System: " .. part.Parent.Name .. " has won!")
sleep(5)
enabled = true
end
link(script.Parent.Collided, TestHit)

Free to use. :p The first badge is in my Lava Obby!
Reply
#2
Yes, this is a great achievement. But the chat spams up the chat part.
[Image: 76561198037039305.png]
[Image: nmdd7o.gif]
Reply
#3
Yes, I'm working on that.
Reply
#4
Try this. It will prevent the message from being shown more than once every 5 seconds.

[lua]
enabled = true

function TestHit(part)
if not enabled then return end
enabled = false

print(part.Parent.Name .. " has hit " .. script.Parent.Name)
game:chat(Color(100,100,0), "System: " .. part.Parent.Name .. " has won!")

sleep(5)
enabled = true
end

link(script.Parent.Collided, TestHit)
[/lua]
Reply
#5
Thanks.
Reply
#6
Cool!
Reply
#7
Awesome. Now we just need some form of data persistance.
Reply
#8
lol, yes, we do

Get the current version!


Attached Files
.bsmodel   Badge.bsmodel (Size: 792 bytes / Downloads: 54)
Reply
#9
Epic.
I like birds, but I hate foxes. If they eat my guinea pigs, I swear i'm going to-------
Reply
#10
Awesome!
Yes, I am a furry. Judge me if you want.
Did you like my post? Give me internets!
[Image: 76561198037771700.png][Image: 7923.png]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)