Skip to content

Instantly share code, notes, and snippets.

View KevinNovak's full-sized avatar

Kevin Novak KevinNovak

View GitHub Profile
@KevinNovak
KevinNovak / bot.js
Last active October 15, 2020 00:49
Smallest functional discord.js bot
new(require('discord.js').Client)().on('message',m=>m.content=='🏓'&&m.reply('🏓')).login('TOKEN');
@KevinNovak
KevinNovak / HytaleTrailerScript.js
Last active January 20, 2019 01:29
The script found in the Hytale trailer: https://youtu.be/o77MzDQT1cg?t=112
var GameMode = com.hypixel.hytale.protocol.Gamemode;
var Player = com.hypixel.hytale.server.core.entity.entities.Player;
exports = {
onCollide : function(entity)
{
if (entity instanceof Player)
{
entity.setGameMode(GameMode.Adventure); // Sets the mode to adventure
}
@KevinNovak
KevinNovak / sv_rounds.lua
Created January 4, 2019 20:37
Modification of sv_rounds.lua for the Garry's Mod murder gamemode.
util.AddNetworkString("SetRound")
util.AddNetworkString("DeclareWinner")
GM.RoundStage = 0
GM.RoundCount = 0
if GAMEMODE then
GM.RoundStage = GAMEMODE.RoundStage
GM.RoundCount = GAMEMODE.RoundCount
end
@KevinNovak
KevinNovak / SkyboxRotator.cs
Last active February 13, 2022 12:46
Unity script to rotate a skybox without affecting the original skybox material.
using UnityEngine;
public class SkyboxRotator : MonoBehaviour
{
[SerializeField] private float _rotationSpeed = 2f;
private Material _skybox;
void Start()
{
_skybox = Instantiate(RenderSettings.skybox);