repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
Roblox/gear | Roblox-gear-28b88df/src/gear/119917556/src/Tweener.client.luau | luau | .luau | local Frame = script.Parent
game.Debris:AddItem(Frame.Parent, 2)
Frame:TweenPosition(UDim2.new(0.2, 0, 0.8, -128), 'Out', 'Quad', 0.5, true, function()
wait(1)
Frame:TweenPosition(UDim2.new(0, -150, 1, 20), 'Out', 'Quad', 0.5, true)
end)
| 98 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/Local Gui.client.luau | luau | .luau | local Tool = script.Parent
local sg = nil
local frame = nil
local stillEquipped = false
local function onEquippedLocal(mouse)
stillEquipped = true
local vPlayer = game.Players.LocalPlayer
local playerGui = vPlayer:FindFirstChild("PlayerGui")
if playerGui and playerGui:FindFirstChild("PetGui") == nil then
sg =... | 558 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetAnimation/ReplicateNpcAnimation/init.client.luau | luau | .luau | -- Waits for parent.child to exist, then returns it
local function WaitForChild(parent, childName)
assert(parent, "ERROR: WaitForChild: parent is nil")
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local DebrisService = Game:GetService('Debris')
local MyMod... | 175 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetAnimation/init.client.luau | luau | .luau | -- Waits for parent.child to exist, then returns it
local function WaitForChild(parent, childName)
assert(parent, "ERROR: WaitForChild: parent is nil")
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local PlayersService = Game:GetService('Players')
local Debr... | 576 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetToolScript/Animate.server.luau | luau | .luau | function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.Name==childName then return child end
end
end
-- ANIMATION
-- declarations
local Figure = script.Parent
local Torso = waitForChild(Fig... | 1,400 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetToolScript/CrashAi/init.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local RBX_GRAVITY = -9.81 * 20
local ONE_STEP = .5--1 / 30
local OFFSET = Vector3.new(5, 0, 5) -- Distance from player or target
local MAX_DISTANCE = 240 -- The pet will stay within this distance of player
local JARS_TO_THROW = 3 -- Number of jars to throw
local DY... | 2,062 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetToolScript/HealthRegenerationScript.server.luau | luau | .luau | function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.Name==childName then return child end
end
end
-- Renegeration Script for the bot
-- Renegerates about 1% of max hp per second until it ... | 326 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PetToolScript/Sound.server.luau | luau | .luau | -- util
function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.Name==childName then return child end
end
end
function newSound(id)
local sound = Instance.new("Sound")
sound.SoundId = id
s... | 423 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119934168/src/PopupGui/init.client.luau | luau | .luau | -- Waits for parent.child to exist, then returns it
local function WaitForChild(parent, childName)
assert(parent, "ERROR: WaitForChild: parent is nil")
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local PlayersService = Game:GetService('Players')
local MyPl... | 205 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11999235/src/ClientScript.client.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Animations = {}
ClientControl = Tool:WaitForChild("ClientControl")
ClientControl.OnClientInvoke = (function(Mode, Value)
if Mode == "PlayAnimation" then
for i, v in pairs(Animations) do
i... | 278 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11999235/src/SwordScript.server.luau | luau | .luau | --Fixed by Luckymaxer
-------- OMG HAX
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
DamageValues = {
BaseDamage = 10,
SlashDamage = 10,
LungeDamage = 20
}
Damage = DamageValues.BaseDam... | 959 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11999247/src/PlantBomb.server.luau | luau | .luau | bombScript = script.Parent.SubspaceMine
Tool = script.Parent
function plant(pos)
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local spawnPos = vCharacter.PrimaryPart.Position
local bomb = Tool.Handle:Clone()
bomb.CanCollide = true
bomb.Transpa... | 288 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11999247/src/SubspaceMine.server.luau | luau | .luau | Mine = script.Parent
DunDun = Instance.new("Sound")
DunDun.SoundId = "http://www.roblox.com/asset/?id=11984254"
DunDun.Parent = Mine
SubspaceExplosion = Instance.new("Sound")
SubspaceExplosion.SoundId = "http://www.roblox.com/asset/?id=11984351"
SubspaceExplosion.Parent = Mine
Calibrate = Instance.new("Sou... | 824 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11999279/src/RayGun/ProjectileScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Part = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Creator = Part:WaitForChild("Creator")
Sounds = {
Hit = Part:WaitForChild("Hit")
}
Damage = 10
function IsTeamMate(Player1, Player2)
return (Player1 and Player2 and not Player1.Neutral and not... | 458 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/Handle/LightingChange.server.luau | luau | .luau | local Handle = script.Parent
local Light = Handle:WaitForChild("PointLight",10)
local Sparkles = Handle:WaitForChild("Sparkles",10)
Sparkles.Changed:Connect(function(property)
Light.Enabled = Sparkles.Enabled
end) | 54 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/InputScript.client.luau | luau | .luau | local CAS, UIS = game:GetService'ContextActionService', game:GetService'UserInputService'
script.Parent.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function() script.Parent.Input:FireServer('Button1', true, mouse.Hit) end)
mouse.Button1Up:Connect(function() script.Parent.Input:FireServer('Button1', tr... | 516 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/LightsOutScript/init.server.luau | luau | .luau | local Lighting = game.Lighting
local Ambient = Lighting.Ambient
local OutdoorAmbient = Lighting.OutdoorAmbient
local TimeOfDay = Lighting.TimeOfDay
local LightHolder = script:WaitForChild('LightHolder').Value
local Handle = script:WaitForChild('Handle').Value
local BLACK = Color3.new(0,0,0)
local MIDNIGHT = "00:00:00"... | 290 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/Local Gui.client.luau | luau | .luau | Tool = script.Parent
local stillEquipped = false
function onEquippedLocal(mouse)
stillEquipped = true
if mouse == nil then
print("Mouse not found")
return
end
while stillEquipped do
--print("Setting Mouse to go")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
while Tool.Enabled and stillEquipped do... | 186 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/Ninjafy.server.luau | luau | .luau | local TIME_INVISIBLE = 15
local DEFAULT_WALK_SPEED = 16
local NEW_WALK_SPEED = 40
function SetTransparency(instance, transparency)
if (instance:IsA("BasePart") or instance:IsA("Decal")) and instance.Name~="HumanoidRootPart" then
instance.Transparency = transparency
end
for _, child in pairs(instance:GetChildren()... | 212 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/Script.server.luau | luau | .luau | --Fixed by TakeoHonorable
--Revamped Periastrons: The Periastron of Darkness
local Tool = script.Parent
Tool.Enabled = true
local Handle = Tool.Handle
local Player,vCharacter,myHumanoid,Root,myTorso
local Animations = Tool:WaitForChild("Animations",10)
local Sounds = {
LungeSound = Handle:WaitForChild("LungeS... | 1,572 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120307951/src/SwordScript.server.luau | luau | .luau | -- Copied from Grimgold Periastron Beta
local Tool = script.Parent
local Sword = Tool.Handle
local GLib = require(206209239)
local vCharacter
local myTorso
local myHumanoid
local equipped = false
local debris = game:GetService("Debris")
function tagHumanoid(humanoid, player)
if humanoid then
local creatorTag ... | 404 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749408/src/Script.server.luau | luau | .luau | local Tool = script.Parent;
Tool.Grip = CFrame.new(0,0,0,0,0,0,0,0,0,0,0,0)
enabled = true
local r = 1
local g = 0
local b = 0
local mode = 0
local light = script.Parent.Handle.PointLight
spark = true
function onActivated()
if not enabled then return end
enabled = false
spark = not spark
if spark then
light.En... | 582 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749452/src/PlantBomb.server.luau | luau | .luau | bombScript = script.Parent.Bomb
Tool = script.Parent
function plant(pos)
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local spawnPos = vCharacter.PrimaryPart.Position
local bomb = Tool.Handle:Clone()
bomb.CanCollide = true
bomb.Transparency = 0
bomb.Positi... | 318 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749494/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
Camera = game:GetService("Workspace").CurrentCamera
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Too... | 930 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749494/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
InsertService = game:GetService("InsertService")
BirdModel = InsertService:LoadAsset(120756595)
Bird = BirdModel:GetChildren()[1]:Clone()
if BirdModel and BirdM... | 992 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749528/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
Camera = game:GetService("Workspace").CurrentCamera
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Too... | 1,114 |
Roblox/gear | Roblox-gear-28b88df/src/gear/120749528/src/MotorizeRightGrip.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
ToolEquipped = false
function CheckIfAlive()
return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humano... | 374 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1208300505/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local CollectionService = game:GetService("CollectionService")
local Debris = game:GetService("Debris")
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local SideBlade1 = Tool.SideBlade1
local SideBlade2 = Tool.SideBlade2
local Blade = Tool.Blad... | 1,915 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1208300973/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local CollectionService = game:GetService("CollectionService")
local Debris = game:GetService("Debris")
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local Blade = Tool.Blade
local AnimationsFolder = Tool:WaitForChild("Animations")
local R6Fol... | 1,428 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121121915/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
Animations = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("ClientControl")
Rate = (1 / 60)
ToolEquipped = false
... | 713 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121121915/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy func... | 4,460 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1213388821/src/Script.server.luau | luau | .luau | local GearService = require(1075123174)
local Tool = script.Parent
local Gear = GearService:BindGear(Tool, "Sword")
Gear:SetupLocalScript("MouseIcon") | 41 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1213389922/src/BoomerangControl.server.luau | luau | .luau | local bodyp = script.Parent.BodyPosition
local arrow = script.Parent
local connection = nil
local damage = 65 --whoa
local sound = script.Parent.FlyingSound
sound.Looped = true
sound:Play()
function OnTouch(hit)
bodyp:Remove()
connection:disconnect()
sound:Stop()
humanoid = hit.Parent:findFirstChild("Humanoid")... | 413 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1213389922/src/BoomerangLauncher.server.luau | luau | .luau | local Tool = script.Parent;
enabled = true
function fire(v)
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local missile = Tool.Handle:Clone()
local spawnPos = vCharacter.PrimaryPart.Position
--local PewPew = Tool.Handle:FindFirstChild("Whoosh")
--if (Pew... | 813 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385193/src/Script.server.luau | luau | .luau |
script.Parent.Grip = CFrame.new(0, -0.800000012, 0.899999976, 0.965622962, -0.101491056, 0.239315659, -0.202840894, 0.281564146, 0.937857807, -0.1625669, -0.954159975, 0.251298279)
| 89 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385262/src/LocalZombieDogMain/init.client.luau | luau | .luau | local ZombieDog = script:WaitForChild('ZombieDog')
while not ZombieDog.Value do ZombieDog.Changed:wait() end
ZombieDog = ZombieDog.Value
local DogTorso = ZombieDog:WaitForChild('DogTorso')
local Character = script.Parent
local Torso = Character:WaitForChild('Torso')
local Humanoid = ZombieDog.Humanoid
local ANIM_Id... | 1,099 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385262/src/PoisonScript.server.luau | luau | .luau | local Character = script.Parent
local Torso = Character:WaitForChild('Torso')
local Humanoid = Character:WaitForChild('Humanoid')
local StartedAt = tick()
local LastDamage = 0
local EffectParts = {}
Spawn(function()
while true do
if (tick()-StartedAt) > 10 then
break
end
if (tick()-LastDamage) > 1 then
H... | 429 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385262/src/ServerZombieDogMain/init.server.luau | luau | .luau | local ZombieDog = script.Parent
--
local Player = script:WaitForChild('Creator')
while not Player.Value do Player.Changed:wait() end
Player = Player.Value
if not Player.Character or
not Player.Character:FindFirstChild('Humanoid')
or Player.Character.Humanoid.Health <= 0
or not ZombieDog:FindFirstChild('Humanoid'... | 307 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385262/src/ZombieDogMain.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local LocalZombieDogMain = Tool:WaitForChild('LocalZombieDogMain')
local ServerZombieDogMain = Tool:WaitForChild('ServerZombieDogMain')
local PoisonScript = Tool:WaitForChild('PoisonScript')
local Torso;
local Character;
Tool.Equipped:connect(functi... | 341 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385328/src/EventsAndAnims/EnableScript.server.luau | luau | .luau | local TIME_UNTIL_ENABLED = 32
wait(TIME_UNTIL_ENABLED)
if script.Parent then
script.Parent.Enabled = true
end
script:Remove()
| 35 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385328/src/EventsAndAnims/init.client.luau | luau | .luau | local Tool = script.Parent
local TIME_BETWEEN_USES = 32
local BEFORE_SOUND_TIME = 0.5
local AFTER_SOUND_TIME = 1.5
local LeftArmMesh = nil
local RightArmMesh = nil
local Anims = {}
local CLOSED_C1 = CFrame.new(-0.00384521484, -0.523071289, -0.435760498, 0.999947309, -0.00898111332, 0.00493008271, 0.010026129, 0.758... | 685 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385328/src/VeggieArmsCharacterMeshChanger/RepelScript/init.server.luau | luau | .luau | -- Adds a repulsive force to anything this object touches
local Part = script.Parent
local Debris = game:GetService('Debris')
local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
local MAGNITUDE = 3E4
local TIME_OF_FORCE = 0.2
Part.Touched:connect(function(other)
if other.Parent == CharacterToI... | 192 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121385328/src/VeggieArmsCharacterMeshChanger/init.client.luau | luau | .luau | -- Temporarily removes existing arm meshes, replacing
-- them with AWESOME VEGGIE ARMS
local OldCharacterMeshes = {}
local TIME_WITH_AWESOME_ARMS = 15
local NEW_WALK_SPEED = 20
local DEFAULT_WALK_SPEED = 16
local LeftArmMesh = script:WaitForChild('LeftArmMesh')
local RightArmMesh = script:WaitForChild('RightArmMes... | 615 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12145515/src/SwordScript.server.luau | luau | .luau | -------- OMG HAX
r = game:service("RunService")
local damage = 3
local slash_damage = 6
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "http://www.roblox.com/Asset/?ID=12135982"
SlashSound.Parent = sword
SlashSound.Volume = .7
... | 679 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1215506016/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local CollectionService = game:GetService("CollectionService")
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local Slash1 = Handle:WaitForChild("Slash1")
loca... | 987 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1215515248/src/Client.client.luau | luau | .luau | local Player = game:GetService("Players").LocalPlayer
local UIS = game:GetService("UserInputService")
local Mouse = Player:GetMouse()
local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote")
local Tracks = {}
local InputType = Enum.UserInputType
local BeganConnection, EndedConnection
function playAnimati... | 400 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1215515248/src/Projectile.server.luau | luau | .luau | local Projectile = script.Parent
local Heartbeat = game:GetService("RunService").Heartbeat
while Heartbeat:wait() do
Projectile.CFrame = CFrame.new(Projectile.Position, Projectile.Position + Projectile.Velocity)
end
| 49 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1215515248/src/Server.server.luau | luau | .luau | --Updated for R15 avatars by StarWars
local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote")
local Handle = Tool:WaitForChild("Handle")
local FriendlyFire = false
local AttackPower = 1
local AttackDamage = 22.5
local AtackRechargeTime = 1.5
local AttackRecharge = 1/AtackRechargeTime
local AttackSpeed =... | 1,091 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12187319/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
if not Handle then return end
local Sword = require(754568173)
local Player = nil
local Character = nil
local Humanoid = nil
local Torso = nil
local SwordData = Sword.SwordFunctions.GetData("Claymore")
local SwordModel = S... | 434 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12187431/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
if not Handle then return end
local Sword = require(754568173)
local Player = nil
local Character = nil
local Humanoid = nil
local Torso = nil
local SwordData = Sword.SwordFunctions.GetData("Scimitar")
local SwordModel = S... | 488 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121925044/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
ContentProvider = game:GetService("ContentProvider")
Animations = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("ClientControl")
ClientControl.OnClientInvoke... | 592 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121925044/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Made by Stickmasterluke
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Material = Enum.Material.Plastic
BasePart.TopSurface = E... | 2,307 |
Roblox/gear | Roblox-gear-28b88df/src/gear/121946387/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Made by Stickmasterluke
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Sparkles = Handle:WaitForChild("Sparkles")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
WeaponHud = Tool:WaitForChild("WeaponHud")
WeaponNameTag = WeaponHud:WaitForChild("WeaponNa... | 2,868 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278149/src/Assets.luau | luau | .luau | --Made by Luckymaxer
BaseUrl = "http://www.roblox.com/asset/?id="
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy function that gives us the nice Create'string'{data} syntax
--The first function call is a func... | 2,076 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278149/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Assets = require(Tool:WaitForChild("Assets"))
Data = Assets.Data
BaseUrl = Assets.BaseUrl
BasePart = Instance.new("Part")
BasePart.Material = Enum.Material.Pl... | 3,984 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278207/src/LocalScript.client.luau | luau | .luau | local Tool = script.Parent
local Character
local Anims = {}
local EQUIP_ANIM_LENGTH = 1
local OriginalOutfit = {}
local OriginalHeadMesh = nil
local OriginalDecalParents = {}
local NewAssets = {}
local Handle = Tool:WaitForChild('Handle')
local Sparkles = Handle:WaitForChild('Sparkles')
local Riff = nil
-- Morph co... | 1,175 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278276/src/WeightMain/MotorizeRightGrip.server.luau | luau | .luau | function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
local armChildRemovedConn = nil
local Motor6DGrip = nil
local EquippedNum... | 668 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278276/src/WeightMain/init.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local WeightScript = Tool:WaitForChild('WeightScript')
local Player;
local Character;
local Humanoid;
local Torso;
local RELOAD_TIME = 1.5
local Equipped = false
local LastUse = Tool:WaitForChild('LastUse')
local ANIM_Equip;
local ANIM_Swing;
loc... | 990 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278276/src/WeightScript.server.luau | luau | .luau | local Model = script.Parent
game.Debris:AddItem(Model, 3)
local CreatorTag = script:WaitForChild('creator')
while not CreatorTag.Value do CreatorTag.Changed:wait() end
local Creator = CreatorTag.Value
local Character = Creator.Character
local Handle = Model:WaitForChild('Handle')
local EndOne = Model:WaitForChild('... | 327 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278316/src/LocalScript/Script.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
damage=22
alive=true
check=true
nextjump=0
nextgrowl=0
lastmove=0
cycle=0
amplitude=.2
frequency=2
meshes={122293937}
standmesh=122293937
local link="http://www.roblox.com/asset/?id="
head=sp:WaitForChild("Head")
hum=sp:WaitForChild("Humanoid")
torso=sp:WaitForChild("To... | 1,069 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122278316/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
check=true
debris=game:GetService("Debris")
cooldown=.2
function findsquirrel()
for _,v in pairs(game.Workspace:GetChildren()) do
if v.Name=="Honey Badger" then
local creatortag=v:FindFirstChild("creator")
if creatortag and creatortag.Value==game.Players.LocalPla... | 1,864 |
Roblox/gear | Roblox-gear-28b88df/src/gear/122330194/src/SwordScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Damage = {
Touched = 3,
Slash = 6,
Current = 0
}
Sounds = {
Slash = Handle:WaitForChild("Slash"),
}
Grips = {
Up = CFrame.new(0.100000001, 1.4, -0.3, -4.... | 952 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1224414225/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local InsertService = game:GetService("InsertService")
local Tool = script.Parent
Tool.RequiresHandle = false
if Tool:FindFirstChild("Handle") then
Tool.Handle:Destroy()
end
if Tool:FindFirstChild("Display") then
Tool.Display:Destroy()
end
local Gingerbread = InsertService:LoadAsset(1224... | 288 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1230024287/src/Script.server.luau | luau | .luau | local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local BaseSnowman = Tool:WaitForChild("Snowman"):Clone()
BaseSnowman.Transparency = 0
if BaseSnowman:FindFirstChild("Motor6D") then
BaseSnowman.Motor6D:Destroy()
end
Tool.Snowman:Destroy()
local BaseHat = Handle:Clone()
if ... | 671 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1230027322/src/Assets/init.luau | luau | .luau | BaseUrl = "rbxassetid://"
BaseVehicle = script.Snowped:Clone()
if BaseVehicle:FindFirstChild("Motor6D") then
BaseVehicle.Motor6D:Destroy()
end
BaseVehicle.Transparency = 0
script.Snowped:Destroy()
function CreateVehicle()
local ExhaustSmoke = {}
local Lights = {}
local Sparkles = {}
local HoverParts = {}
loc... | 162 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1230027322/src/Script.server.luau | luau | .luau | local Display = script.Parent:FindFirstChild("Display")
if Display then
Display:Destroy()
end
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Assets = require(Tool:WaitForChild("Assets"))
Data = Assets.Data
BaseUrl = Assets.BaseUrl
... | 5,107 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123042140/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
plr=game.Players.LocalPlayer
local speed=2
local topspeed=50
local rate=1/30
local inertia=1-(speed/topspeed)
local debris=game:GetService("Debris")
local flying=false
local controls={forward=0,backward=0,left=0,right=0}
local momentum=Vector3.new(0,0,0)
local lastmoment... | 1,358 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1230839551/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local InsertService = game:GetService("InsertService")
local Tool = script.Parent
Tool.RequiresHandle = false
if Tool:FindFirstChild("Handle") then
Tool.Handle:Destroy()
end
if Tool:FindFirstChild("Display") then
Tool.Display:Destroy()
end
local Ferdinand = InsertService:LoadAsset(123080... | 285 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123134886/src/MinifigureScript.server.luau | luau | .luau | local Tool = script.Parent
local Figure = Tool.Handle
local vCharacter
local myTorso
local clapSound
local sparkles
Tool.Enabled = true
local connection
function glow(hit)
if hit and hit.Parent and hit.Parent ~= vCharacter then
if hit.Size.X <= 5 and hit.Size.Y <= 5 and hit.Size.Z <= 5 then
hit.Material = ... | 356 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234510/src/CampfireCreator.server.luau | luau | .luau |
local Tool = script.Parent
local event = Tool:WaitForChild('CampfireEvent')
local CurrentCampfire = Tool:WaitForChild('CurrentCampfire')
local InsertService = game:GetService('InsertService')
local CAMPFIRE_ASSET_ID = 123041248
local SMALL_OFFSET = Vector3.new(0, 5, 0)
local LARGE_OFFSET = Vector3.new(0, 1000, 0)
... | 299 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234510/src/CampfireCreatorLocal.client.luau | luau | .luau | local Tool = script.Parent
local Mouse = nil
local event = Tool:WaitForChild('CampfireEvent')
local function OnActivated()
if Mouse then
local character = Tool.Parent
if character then
local humanoid = character:FindFirstChild('Humanoid')
if humanoid and not humanoid.Sit then -- Don't let them create a ne... | 166 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234545/src/CampingLanternMain/MotorizeRightGrip.server.luau | luau | .luau | function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
local armChildRemovedConn = nil
local Motor6DGrip = nil
local EquippedNum... | 652 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234545/src/CampingLanternMain/init.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local SpotLightProxy = Tool:WaitForChild('SpotLightProxy')
local Light = SpotLightProxy:WaitForChild('SpotLight')
local Humanoid;
local Character;
local Equipped = false
local Running = false
local ANIM_Hold, ANIM_Equip, ANIM_Swish;
local Swarm = ... | 1,521 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234626/src/LocalScript/Script.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
damage=2
alive=true
check=true
nextjump=0
nextgrowl=0
lastmove=0
cycle=0
amplitude=.2
frequency=2
meshes={122293937}
standmesh=122293937
local link="http://www.roblox.com/asset/?id="
head=sp:WaitForChild("Head")
hum=sp:WaitForChild("Humanoid")
torso=sp:WaitForChild("Tor... | 1,158 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234626/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
check=true
debris=game:GetService("Debris")
cooldown=.2
function findsquirrel()
for _,v in pairs(game.Workspace:GetChildren()) do
if v.Name=="Honey Badger" then
local creatortag=v:FindFirstChild("creator")
if creatortag and creatortag.Value==game.Players.LocalPla... | 1,866 |
Roblox/gear | Roblox-gear-28b88df/src/gear/123234673/src/MacheteScript.server.luau | luau | .luau | --Rescripted by TakeoHonorable
local Tool = script.Parent
Tool.Enabled = true
local Handle = Tool:WaitForChild("Handle")
local Sounds = {
Hit = Handle:WaitForChild("Hit"),
Swing = Handle:WaitForChild("Swing")
}
local Animations = {}
local Services = {
Players = (game:FindService("Players") or game:GetService("P... | 838 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241156565/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
--Updated for R15 avatar by StarWars
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
InsertService = game:GetService("InsertService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then... | 2,684 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241156683/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local GearService = require(1075123174)
local Tool = script.Parent
local Gear = GearService:BindGear(Tool, "Sword")
Gear:SetupLocalScript("MouseIcon") | 48 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124126528/src/Local Gui.client.luau | luau | .luau | local Tool = script.Parent;
enabled = true
function onButton1Down(mouse)
if not enabled then
return
end
enabled = false
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(15)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
enabled = true
end
function onEquippedLocal(mouse)
if mouse == nil then... | 140 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124126528/src/ShieldScript.server.luau | luau | .luau | function getRandomValue(table)
return table[math.random(#table)]
end
HATS = {
48474294, -- Pinktastic Hair
51353039, -- Bloxxer Cap
18174901, -- Guardia in Exile
30200035,
48474313,
19027209,
16630147,
19398258,
16412796
}
HEADS = {
6340213,
6340101,
6340227,
}
FACES = {
"http://www.roblox.com/asset/?i... | 882 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124126871/src/EventsAndAnims/MotorizeRightGrip.server.luau | luau | .luau | -- stravant's AnimEdit helper, to make sure tools actually animate.
function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
loca... | 731 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124126871/src/EventsAndAnims/init.client.luau | luau | .luau | math.randomseed(tick())
local Tool = script.Parent
local Muzzle = Tool:WaitForChild('Muzzle')
local Fire = Muzzle:WaitForChild('Fire')
local Bullet = Tool:WaitForChild('Bullet')
local Walrus = Tool:WaitForChild('Walrus')
local Handle = Tool:WaitForChild('Handle')
local Debris = game:GetService('Debris')
local BULLET... | 1,115 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124127383/src/Script.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Mesh = Handle:WaitForChild("Mesh")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RemoteControl = Tool:WaitForChild("RemoteControl")
ServerControl = (RemoteControl:FindFirstChild("ServerControl") or Instance.new(... | 1,450 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124128001/src/Local Gui.client.luau | luau | .luau | --Made by Stickmasterluke
local sp=script.Parent
enabled=true
handle=sp:WaitForChild("Handle")
gui=sp:WaitForChild("StickGui")
local button=gui:WaitForChild("ButtonHolder"):WaitForChild("Button")
local fill=gui:WaitForChild("Bar"):WaitForChild("Fill")
local currentattack=sp:WaitForChild("CurrentAttack")
local energy... | 630 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124128001/src/SwordScript.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
anims={"RightSlash","LeftSlash"}
basedamage=2
slashdamage=8
specialprice=16
phi=.618033988
damage=basedamage
lastclick=0
specialdebounce=true
handle=sp:WaitForChild("Handle")
mesh=handle:WaitForChild("Mesh")
specialsound=handle:FindFirstChild("SpecialSound")
slashSound=handle:Wa... | 2,940 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241585055/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local Debris = game:GetService("Debris")
local Tool = script.Parent
local Handle = Tool.Handle
local Motor = Handle:FindFirstChildOfClass("Motor6D")
if Motor then
Motor:Destroy()
Motor = nil
end
local Display = Tool:FindFirstChild("Display")
if Display then
Display:Destroy()
Display = n... | 645 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241585476/src/LocalScript.client.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Animations = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("ClientControl")
ClientControl.OnClientInvoke = (function(Mode, Value)
if Mode == "PlayAnimation" and Humanoid then
f... | 475 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241585476/src/Script/init.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
SpeedBoostGui = script:WaitForChild("SpeedBoostGui")
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Material = Enum.Material.Plastic
BasePart.TopSurface = E... | 2,943 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241586091/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local Debris = game:GetService("Debris")
local Tool = script.Parent
local GearService = require(1075123174)
local Gear = GearService:BindGear(Tool)
Gear:SetupRemoteFunctions()
Gear:SetupLocalScript("MouseIcon")
local AnimationsFolder = Tool.Animations
local R6Folder = AnimationsFolder:Wait... | 706 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241586595/src/Script.server.luau | luau | .luau | -- // Made by StarWars
local Tool = script.Parent
local Shield = Tool:FindFirstChild("Shield")
if Shield then
local Motor6D = Shield:FindFirstChildOfClass("Motor6D")
if Motor6D then
Motor6D:Destroy()
end
end
local BaseShield = Shield:Clone()
local LeftGripAttachment = Instance.new("Attachment")
LeftGripAttachmen... | 518 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241587075/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
UserInputService = game:GetService("UserInputService")
InputCheck = Instance.new("ScreenGui")
InputCheck.Name = "InputCheck"
InputFrame = Instance.new("Frame")
InputF... | 778 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1241587075/src/Script.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local GearService = require(1075123174)
local AnimationsFolder = Tool:WaitForChild("Animations")
local R6Folder = AnimationsFolder:WaitForChild("R6")
local R15Folder = AnimationsFolder:Wa... | 4,051 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124472052/src/SwordScript.server.luau | luau | .luau | -------- OMG HAX
r = game:service("RunService")
local damage = 5
local slash_damage = 6
local lunge_damage = 8
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
loc... | 864 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1245307956/src/LocalScript.client.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
ContextActionService = game:GetService("ContextActionService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
Remotes = Tool:WaitForChild... | 1,107 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1245307956/src/Script/Functions.luau | luau | .luau | Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
BaseUrl = "rbxassetid://"
Functions = {}
function Functions.Clamp(Number, Min, Max)
return math.max(math.min(Max, Number), Min)
end
function Functions.GetPercentage(Start, End,... | 710 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1245307956/src/Script/init.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy function that gives us the nice ... | 3,943 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1245309147/src/Script/init.server.luau | luau | .luau | --Rescripted by Luckymaxer
-- Updated for R15 avatars by StarWars
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
PickUpScript = script:WaitForChild("PickUpScript")
BaseUrl = "rbxassetid://"
Grips = {
Unequipped = CFrame.new(0, 0.5,... | 2,140 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124908320/src/AnimateScript.client.luau | luau | .luau | -- Sword and shield
local Tool = script.Parent
local Sword = Tool.Handle
local HeatedTextureId = 124891627
local NormalTextureId = 124891834
Tool.Enabled = true
local vCharacter
local shieldWeld
local shieldWalkAnim
local slashAnim
local bashAnim
local lungeAnim
local spinAnim
local time
local shieldActive
local... | 1,245 |
Roblox/gear | Roblox-gear-28b88df/src/gear/124908832/src/UmbrellaScript.client.luau | luau | .luau | -- Umbrella --
-- Whack Animation, time 0.5 seconds
-- Whack Sound, 0.4 seconds
-- Handle to the game service, in case we need to get the time
r = game:service("RunService")
-- normal damage, when the Umbrella touches a humanoid object
local damage = 8
-- Whack damage
local whack_damage = 12
-- Handle to too... | 1,193 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013769/src/MouseIcon.client.luau | luau | .luau | --Rescripted by Luckymaxer
Mouse_Icon = "rbxasset://textures/GunCursor.png"
Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
Tool = script.Parent
Mouse = nil
function UpdateIcon()
if Mouse then
Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
end
end
function OnEquipped(ToolMouse)
Mouse = To... | 141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.