This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class HasSameLetters { | |
public static boolean madeOutOfSameLetters(String a, String b) { | |
if (a == null) { | |
return b == null; | |
} else if (b == null) { | |
return false; | |
} | |
char[] left = a.toCharArray(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Chat = game:GetService('Chat') | |
local Players = game:GetService('Players') | |
local Player = Players.LocalPlayer | |
script.Parent.FocusLost:Connect(function(enter) -- when the enter key is pressed | |
if enter then -- if the enter key is pressed | |
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(Chat:FilterStringAsync(script.Parent.Text, game:GetService('Players').LocalPlayer, game:GetService('Players').LocalPlayer), "All") -- Filters the string, sends it to chat. | |
end | |
end) |