mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 17:53:01 +02:00
29 lines
981 B
Plaintext
29 lines
981 B
Plaintext
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
|
|
<External>null</External>
|
|
<External>nil</External>
|
|
<Item class="Script" referent="RBX0">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">ResetCommand</string>
|
|
<ProtectedString name="Source">function onChatted(msg, speaker)
|
|
|
|
source = string.lower(speaker.Name)
|
|
msg = string.lower(msg)
|
|
-- Note: This one is NOT caps sensitive
|
|
|
|
if msg == "!!!reset" then
|
|
speaker.Character.Humanoid.Health = 0
|
|
end
|
|
end
|
|
|
|
function onPlayerEntered(newPlayer)
|
|
newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end)
|
|
end
|
|
|
|
game.Players.ChildAdded:connect(onPlayerEntered)</ProtectedString>
|
|
<bool name="archivable">true</bool>
|
|
</Properties>
|
|
</Item>
|
|
</roblox>
|