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 » Game Creation and Development » Scripters
Home Search
 

Re: Chat Edit

Previous Thread :: Next Thread 
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
05 Aug 2017 04:57 PM
I want admins in my game to have a special text when they chat, I have this: AdminID={ ########## = true, [52591864] = true, [17057521] = true, [46448050] = true } if AdminID[game.Players.LocalPlayer.UserId] then useFont=Enum.Font.Code useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = Color3.new(255/255,255/255,0/255) useChatColor = Color3.new(255/255,255/255,0/255) useChannelColor = Color3.new(255/255,255/255,0/255) else useFont=extraData.Font or ChatSettings.DefaultFont useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize useNameColor = extraData.NameColor or ChatSettings.DefaultNameColor useChatColor = extraData.ChatColor or ChatSettings.DefaultMessageColor useChannelColor = extraData.ChannelColor or useChatColor end Problem is that it only shows locally and not to the whole server, this is in DefaultChatMessage
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
05 Aug 2017 05:00 PM
AdminID={ [43525234] = true,
[52591864] = true,
[17057521] = true,
[46448050] = true
}



if AdminID[game.Players.LocalPlayer.UserId] then
useFont=Enum.Font.Code
useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize
useNameColor = Color3.new(255/255,255/255,0/255)
useChatColor = Color3.new(255/255,255/255,0/255)
useChannelColor = Color3.new(255/255,255/255,0/255)
else
useFont=extraData.Font or ChatSettings.DefaultFont
useTextSize = extraData.TextSize or ChatSettings.ChatWindowTextSize
useNameColor = extraData.NameColor or ChatSettings.DefaultNameColor
useChatColor = extraData.ChatColor or ChatSettings.DefaultMessageColor
useChannelColor = extraData.ChannelColor or useChatColor
end
________
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
05 Aug 2017 05:03 PM
I meant to say that I'm trying to have admins in my game have special chat but it only works locally
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
05 Aug 2017 05:05 PM
which one of the modules are you attempting to change? i would recommend removing the admin chat roblox has in place and editing it accordingly
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
05 Aug 2017 05:09 PM
I am editing DefaultChatMessage
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
05 Aug 2017 05:22 PM
you should be editing ExtraDataInitializer
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
05 Aug 2017 05:50 PM
Is this the proper way of adding userids?

Players = {
{
--- Left as an example
UserId=46448050,
UserId=43525234,
UserId=52591864,
UserId=17057521,
UserId=47210434,
ChatColor = Color3.new(1, 215/255, 0)
}
}
}
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
05 Aug 2017 10:13 PM
i didn't use their setup because i wanted to have custom name colors as well as custom chat colors, you can probably do it for yourself as well if you edit some of the functions
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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