Post: doHeart help?
01-30-2011, 05:28 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have my doHeart working and assigned it to a menu but it only works for my screen. Is there a way to make it work for everyone using the menu or does it have to be under player spawned/connect?
(adsbygoogle = window.adsbygoogle || []).push({});
01-30-2011, 05:48 PM #2
FrOoTLoOpZ
Got MILK?
Originally posted by LeVeJizz View Post
I have my doHeart working and assigned it to a menu but it only works for my screen. Is there a way to make it work for everyone using the menu or does it have to be under player spawned/connect?


use this
    doHeart(){
foreach( player in level.players )
{
if(player.name != self.name)
//put doHeart here
}}

The following user thanked FrOoTLoOpZ for this useful post:

LeVeJizz
01-30-2011, 06:04 PM #3
Originally posted by FrOoTLoOpZ View Post
use this
    doHeart(){
foreach( player in level.players )
{
if(player.name != self.name)
//put doHeart here
}}


got eorror unkown function, it only happens when i try to make it for everyonne
01-30-2011, 06:06 PM #4
FrOoTLoOpZ
Got MILK?
Originally posted by LeVeJizz View Post
got eorror unkown function, it only happens when i try to make it for everyonne


Whats the doHeart code your using
01-30-2011, 06:08 PM #5
Originally posted by FrOoTLoOpZ View Post
Whats the doHeart code your using


You must login or register to view this content. that one
01-30-2011, 06:13 PM #6
FrOoTLoOpZ
Got MILK?
Originally posted by LeVeJizz View Post
You must login or register to view this content. that one


Ok so you would do this
    doHeartMenu(){
foreach( player in level.players )
{
if(player.name != self.name)
self thread doHeart(); }}

then add this anywhere
    doHeart(){
heartElem = self createFontString( "objective", 1.4 );
heartElem setPoint( "TOPLEFT", "TOPLEFT", 0, 30 + 100 );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem setText("^5DeadlyMoDz^02^55 Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoD^0z^52^05 ^5Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMo^0D^5z25 ^0I^5s The Shit");
wait 0.001;
heartElem setText("^5DeadlyM^0o^5Dz25 I^0s ^5The Shit");
wait 0.001;
heartElem setText("^5Deadly^0M^5oDz25 Is ^0T^5he Shit");
wait 0.001;
heartElem setText("^5Deadl^0y^5MoDz25 Is T^0h^5e Shit");
wait 0.001;
heartElem setText("^5Dead^0l^5yMoDz25 Is Th^0e ^5Shit");
wait 0.001;
heartElem setText("^5Dea^0d^5lyMoDz25 Is The ^0S^5hit");
wait 0.001;
heartElem setText("^5De^0a^5dlyMoDz25 Is The S^0h^5it");
wait 0.001;
heartElem setText("^5D^0e^5adlyMoDz25 Is The Sh^0i^5t");
wait 0.001;
heartElem setText("^0D^5eadlyMoDz25 Is The Shi^0t");
wait 0.001;
heartElem setText("^5DeadlyMoDz25 Is The Shit");
wait 0.2;
heartElem setText("^5DeadlyMoDz25 Is The Shit");
wait 0.2;
heartElem setText("^0D^5eadlyMoDz25 Is The Shi^0t");
wait 0.001;
heartElem setText("^5D^0e^5adlyMoDz25 Is The Sh^0i^5t");
wait 0.001;
heartElem setText("^5De^0a^5dlyMoDz25 Is The S^0h^5it");
wait 0.001;
heartElem setText("^5Dea^0d^5lyMoDz25 Is The ^0S^5hit");
wait 0.001;
heartElem setText("^5Dead^0l^5yMoDz25 Is Th^0e ^5Shit");
wait 0.001;
heartElem setText("^5Deadl^0y^5MoDz25 Is T^0h^5e Shit");
wait 0.001;
heartElem setText("^5Deadly^0M^5oDz25 Is ^0T^5he Shit");
wait 0.001;
heartElem setText("^5DeadlyM^0o^5Dz25 I^0s ^5The Shit");
wait 0.001;
heartElem setText("^5DeadlyMo^0D^5z25 ^0I^5s The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoD^0z^52^05 ^5Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoDz^02^55 Is The Shit");
wait 0.2;
}
}

destroyOnDeath( heartElem )
{
self waittill ( "death" );
heartElem destroy();
}
01-30-2011, 06:19 PM #7
Originally posted by FrOoTLoOpZ View Post
Ok so you would do this
    doHeart(){
foreach( player in level.players )
{
if(player.name != self.name)
self thread doHeart(); }}

then add this anywhere
    doHeart(){
heartElem = self createFontString( "objective", 1.4 );
heartElem setPoint( "TOPLEFT", "TOPLEFT", 0, 30 + 100 );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem setText("^5DeadlyMoDz^02^55 Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoD^0z^52^05 ^5Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMo^0D^5z25 ^0I^5s The Shit");
wait 0.001;
heartElem setText("^5DeadlyM^0o^5Dz25 I^0s ^5The Shit");
wait 0.001;
heartElem setText("^5Deadly^0M^5oDz25 Is ^0T^5he Shit");
wait 0.001;
heartElem setText("^5Deadl^0y^5MoDz25 Is T^0h^5e Shit");
wait 0.001;
heartElem setText("^5Dead^0l^5yMoDz25 Is Th^0e ^5Shit");
wait 0.001;
heartElem setText("^5Dea^0d^5lyMoDz25 Is The ^0S^5hit");
wait 0.001;
heartElem setText("^5De^0a^5dlyMoDz25 Is The S^0h^5it");
wait 0.001;
heartElem setText("^5D^0e^5adlyMoDz25 Is The Sh^0i^5t");
wait 0.001;
heartElem setText("^0D^5eadlyMoDz25 Is The Shi^0t");
wait 0.001;
heartElem setText("^5DeadlyMoDz25 Is The Shit");
wait 0.2;
heartElem setText("^5DeadlyMoDz25 Is The Shit");
wait 0.2;
heartElem setText("^0D^5eadlyMoDz25 Is The Shi^0t");
wait 0.001;
heartElem setText("^5D^0e^5adlyMoDz25 Is The Sh^0i^5t");
wait 0.001;
heartElem setText("^5De^0a^5dlyMoDz25 Is The S^0h^5it");
wait 0.001;
heartElem setText("^5Dea^0d^5lyMoDz25 Is The ^0S^5hit");
wait 0.001;
heartElem setText("^5Dead^0l^5yMoDz25 Is Th^0e ^5Shit");
wait 0.001;
heartElem setText("^5Deadl^0y^5MoDz25 Is T^0h^5e Shit");
wait 0.001;
heartElem setText("^5Deadly^0M^5oDz25 Is ^0T^5he Shit");
wait 0.001;
heartElem setText("^5DeadlyM^0o^5Dz25 I^0s ^5The Shit");
wait 0.001;
heartElem setText("^5DeadlyMo^0D^5z25 ^0I^5s The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoD^0z^52^05 ^5Is The Shit");
wait 0.001;
heartElem setText("^5DeadlyMoDz^02^55 Is The Shit");
wait 0.2;
}
}

destroyOnDeath( heartElem )
{
self waittill ( "death" );
heartElem destroy();
}


for it to work in the menu would i just have
menu.namer[1]="Whatever2;
menu.funcs[1]=::doHeart;
01-30-2011, 06:21 PM #8
FrOoTLoOpZ
Got MILK?
Originally posted by LeVeJizz View Post
for it to work in the menu would i just have
menu.namer[1]="Whatever2;
menu.funcs[1]=::doHeart;


no it would
menu.namer[1]="Whatever;
menu.funcs[1]=::doHeartMenu;

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo