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/114552541/src/LocalScript.client.luau | luau | .luau | --Made by Stickmasterluke
cursors={
"http://www.roblox.com/asset/?id=50912619", --red --change the cursors
"http://www.roblox.com/asset/?id=50912641", --blue
"http://www.roblox.com/asset/?id=50911776", --purple
reloading="http://www.roblox.com/asset/?id=50911776",
}
clipsize=20
equipped=false
sp=script.Par... | 940 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687223/src/PinataScript.server.luau | luau | .luau | local pinata = script.Parent
local theWholeThing = pinata.Parent
local humanoid=theWholeThing:WaitForChild("Humanoid")
local health = 100
local gears = {Sombrero=26673654,Sombrero2=26673654,Poncho=26673669,VaqueroSombrero=53901180,footbag=52180858,taco=15177716,Epicsauce=31314931,waterballoon=29100543,Epicsausegreen=38... | 995 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687223/src/Script.server.luau | luau | .luau | --
local Tool = script.Parent
local torso = nil
local debris=game:GetService("Debris")
function onEquipped()
torso = Tool.Parent:FindFirstChild("Torso") or Tool.Parent:FindFirstChild("UpperTorso")
end
Tool.Equipped:connect(onEquipped)
function pinataExists()
return workspace:FindFirstChild(torso.Parent.Name .. "'s... | 578 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687236/src/Handle/PoisonedFood/Eating/Frogged.server.luau | luau | .luau | -- Poison the Humanoid this script is attached to
-- While poisoned, victim is slower, takes damage, and flickers green
local victim = script.Parent
if victim and victim:IsA("Humanoid") and victim.Parent then
local victimChildren = victim.Parent:GetChildren()
local originalColors = {}
for i = 1, #victimChildren d... | 378 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687236/src/Handle/PoisonedFood/Eating/init.server.luau | luau | .luau | local hungryHumanoid = script.Parent
-- Waits for script.childName to exist then returns it
local function scriptWaitForChild(childName)
while not script:FindFirstChild(childName) do wait() end
return script[childName]
end
local poisonScript = scriptWaitForChild("Frogged")
-- Feed the Humanoid this script is attac... | 151 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687236/src/Handle/PoisonedFood/init.server.luau | luau | .luau | local PlayersService = Game:GetService('Players')
local Food = script.Parent
while not script:FindFirstChild("Creator") or not script.Creator.Value do wait() end
local creator = script.Creator.Value
while not script:FindFirstChild("Eating") do wait() end
local eatingScript = script.Eating
-- When someone steps on t... | 427 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687236/src/MouseIcon.client.luau | luau | .luau | local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
local Tool = script.Parent
local Mouse = nil
local function UpdateIcon()
if Mouse then
Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
end
end
local function OnEquipped(mouse)
Mouse ... | 113 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687236/src/ThrowingTool.server.luau | luau | .luau | local COOLDOWN = 0.75 -- Seconds until another can be thrown
local TIME_TO_LIVE = 10 -- Seconds until each old one is destroyed
local THROW_SPEED = 100
local PlayersService = game:GetService('Players')
local DebrisService = game:GetService('Debris')
local Tool = script.Parent
local ToolHandle = Tool.Handle
local Thr... | 462 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687251/src/LocalScript/Script.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
damage=20
alive=true
check=true
nextjump=0
lastmove=0
cycle=0
meshes={114647745,114647773,114647802,114647836,114647881,114647920,114647944}
standmesh=114636624
local link="http://www.roblox.com/asset/?id="
head=sp:WaitForChild("Head")
hum=sp:WaitForChild("Humanoid")
to... | 779 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114687251/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=="Squirrel" then
local creatortag=v:FindFirstChild("creator")
if creatortag and creatortag.Value==game.Players.LocalPlayer ... | 849 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114690870/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = T... | 1,361 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114690870/src/Script/PlungerScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Plunger = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
Creator = Plunger:WaitForChild("Creator")
Damage = Plunger:WaitForChild("Damage")
Sounds = {
Hit = Plunger:WaitForChild("Hit"... | 598 |
Roblox/gear | Roblox-gear-28b88df/src/gear/114690870/src/Script/init.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... | 3,456 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149192868/src/InputScript.client.luau | luau | .luau | script.Parent.Equipped:connect(function(mouse)
mouse.KeyDown:connect(function(key)
script.Parent.OnKeyDown:FireServer(key)
end)
end) | 32 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149192868/src/MouseIconScript.client.luau | luau | .luau | local Tool = script.Parent;
local MyMouse
local Enabled = true
function OnButton1Down(mouse)
if not Enabled then
return
end
Enabled = false
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(2)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
Enabled = true
end
function OnKeyDown( key )
end
func... | 191 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149192868/src/PlayAttack.server.luau | luau | .luau | -- Waits for the child of the specified parent
local function WaitForChild(parent, childName)
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local Tool = script.Parent
local MyHumanoid = Tool.Parent:FindFirstChild('Humanoid')
local AttackAnim
local AttackTrack... | 151 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149192868/src/Script.server.luau | luau | .luau | --by SolarCrane
--[[
Fixed by ArceusInator
- Reports KOs to the site
- Fixed reload time
- Doesn't kill teammates
- Works with FE
--]]
local GLib = require(206209239)
-- Waits for the child of the specified parent
local function WaitForChild(parent, childName)
while not parent:FindFirstChild(childName) do parent... | 2,271 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149193097/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = T... | 1,008 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149193097/src/Script/Functions.luau | luau | .luau | --Made by Luckymaxer
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
Functions = {}
function Functions.Clamp(Number, Min, Max)
return math.max(math.min(Max, Number), Min)
end
function Functions.GetPercentage(Start, End, Numb... | 592 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149193097/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
--Updated by StarWars for R15
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
... | 3,514 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149193369/src/Script.server.luau | luau | .luau | 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 MeeBot = InsertService:LoadAsset(1150966781)
MeeBot = MeeBot:GetChil... | 263 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149573271/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local Players = game:GetService("Players")
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local Drum = Tool.DisplayModel.Drum
local Gear = GearService:BindGear(Tool)
Gear:SetupRemoteFunctions()
Gear:SetupLocalScript("MouseIcon")
local DisplayM... | 803 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1149579825/src/Script.server.luau | luau | .luau | --Made 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 function t... | 2,260 |
Roblox/gear | Roblox-gear-28b88df/src/gear/115377964/src/Client.client.luau | luau | .luau | --Rescripted by TakeoHonorable
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local MousePos = Tool:WaitForChild("MousePos")
local Character,Humanoid
local MouseMove,Activate
function Equipped(Mouse)
Character = Tool.Parent
Humanoid = Character:FindFirstChildOfClass("Humanoid")
if not Hum... | 221 |
Roblox/gear | Roblox-gear-28b88df/src/gear/115377964/src/Server/init.server.luau | luau | .luau | --Rescripted by TakeoHonorable
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 Services = {
Players = (game:FindService("Players") or game:GetServic... | 2,419 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11563251/src/Bomb.server.luau | luau | .luau | FuseSound = Instance.new("Sound")
FuseSound.SoundId = "http://www.roblox.com/asset/?id=11565378"
FuseSound.Parent = script.Parent
FuseSound:Play()
local total_time = 5 -- seconds
local cur_time = 0
function update(frac)
script.Parent.Fuse.Color = Color3.new(1,1 - frac,0)
end
function blowUp()
local ... | 429 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11563251/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 = ... | 307 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040770/src/LocalScript.client.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
cooldown=.35
lightontexture=115984370
lightofftexture=115955343
local weld=sp:WaitForChild("Motor")
local lp=sp:WaitForChild("LightPart")
local handle=sp:WaitForChild("Handle")
local spotlight=lp:WaitForChild("SpotLight")
local spotlight2=lp:WaitForChild("SpotLight2")
local mesh... | 398 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040789/src/Script/SpiderAI.server.luau | luau | .luau | --Made by Stickmasterluke
-- Fixed for R15 avatars by StarWars
sp=script.Parent
damage=3
range=300
meshes={115977511,115975859}
standingmesh=115973891
--Accidental mesh with no legs. Maybe someone wants it anyways -> 115975800
local head=sp:WaitForChild("Head")
local hum=sp:WaitForChild("Humanoid")
local torso=s... | 806 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040807/src/Script/LightningModule.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
BasePart = Create("Part"){
Material = Enum.Material.Plastic,
TopSurface = Enum.SurfaceType.Smooth,
BottomSurface = Enum.SurfaceType.S... | 1,721 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040807/src/Script/init.server.luau | luau | .luau | --Made 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 function t... | 2,257 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040828/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
ContextActionService = game:GetService("ContextActionService")
UserInputService = game:GetService("UserInputService")
Camera = game:GetService("Workspace").Cu... | 1,402 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040828/src/Script/BalloonScript.server.luau | luau | .luau | --Made by Luckymaxer
Model = script.Parent
Balloon = Model:FindFirstChild("Balloon")
MainPart = Model:FindFirstChild("MainPart")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Seated = Instance.new("BoolValue")
Seated.Value = false
Seats = {}
function DestroyModel()
Debris:AddItem(Model, ... | 891 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116040828/src/Script/init.server.luau | luau | .luau | --Made 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 function t... | 5,804 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116055112/src/LocalScript.client.luau | luau | .luau | local ContentProvider = game:GetService("ContentProvider")
ContentProvider:PreloadAsync({"rbxassetid://116049255", "rbxassetid://116048294", "rbxasset://sounds/uuhhh.mp3"}) | 49 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116055112/src/Script.server.luau | luau | .luau | local TweenService = game:GetService("TweenService")
local Debris = game:GetService("Debris")
local TransparentInfo = TweenInfo.new(2)
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool.Handle
local FireEffect = Handle.Fire
local LastMode = Random.new()
local Gear = GearService... | 1,494 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693694/src/Amerigun.server.luau | luau | .luau | -- SolarCrane
function New(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
if type(v) == 'function' then
obj[k]:connect(v)
else
obj[k] = v
end
end
end
return obj
end
end
function GetRandomFlo... | 2,566 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693715/src/BombScript.server.luau | luau | .luau | local Candle = script.Parent
local FuseSound = Instance.new("Sound")
FuseSound.SoundId = "http://www.roblox.com/asset/?id=11565378"
FuseSound.Parent = script.Parent
FuseSound:Play()
local BodyForce = Instance.new("BodyForce")
BodyForce.Parent = Candle
local InitPos = Candle.Position
local Debris = game:GetService("D... | 1,250 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693715/src/PlantBomb.server.luau | luau | .luau | local Tool = script.Parent
local Candle = Tool.Handle
local Character
Tool.Enabled = true
function plant(pos)
local Character = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(Character)
local spawnPos = Character.PrimaryPart.Position
local bomb = Tool.Handle:Clone()
bomb.CanCollide = tru... | 462 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693735/src/AnansiAIScript/init.client.luau | luau | .luau | while script:FindFirstChild("Anansi") == nil do
wait()
end
local petAnansi = script.Anansi
while petAnansi.Value == nil do
wait()
end
petAnansi = petAnansi.Value
while petAnansi:FindFirstChild("Target") == nil do
wait()
end
print(0.1)
local target = petAnansi.Target
local targetEnemyTorso
if target.Val... | 1,539 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693735/src/AnimateScript.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
local vPlayer
local vTorso
local vHumanoid
local RBX_Debris = game:GetService("Debris")
local Slash_Animation
local Stab_Animation
local Darken_Animation
local Charge_Animation
local Slash_Sound
local MouseDown_Bool = false
local Camer... | 1,004 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693764/src/BarrelClip/Script.server.luau | luau | .luau | wait(.1)
script.Parent:Destroy()
wait(1) | 13 |
Roblox/gear | Roblox-gear-28b88df/src/gear/116693764/src/LocalScript.client.luau | luau | .luau | local equipped = false
local setIconCon
local Players = game:GetService'Players'
local getCharacterFromPart = function(part)
local current = part
local character = nil
local humanoid = nil
while true do
for i, child in next, current:GetChildren() do
if child:IsA'Humanoid' then
character = current
huma... | 354 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11719016/src/BlowDryer/AirScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Updated for R15 avatar by StarWars
Part = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Creator = Part:FindFirstChild("Creator")
function IsTeamMate(Player1, Player2)
return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and... | 561 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11719016/src/BlowDryer/init.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
AirScript = script:WaitForChild("AirScript")
Colors = {"White", "Light stone grey", "Light blue", "Pastel Blue"}
BasePart = Instance.new("Part")
BasePart.Sha... | 1,260 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11719016/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = T... | 1,134 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498775/src/BeeScript.server.luau | luau | .luau | --Rescripted by Luckymaxer --Physics Collision group fix by Stickmasterluke
local PhysicsService = game:GetService("PhysicsService")
local Group = pcall(PhysicsService.GetCollisionGroupId, PhysicsService, "Bees")
if not Group then
Group = PhysicsService:CreateCollisionGroup("Bees")
end
PhysicsService:CollisionGroup... | 1,633 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498775/src/GuiScript.client.luau | luau | .luau | local Tool = script.Parent
local Lantern = Tool.Handle
local vCharacter
local vPlayer
local sg
local frame
function onEquipped()
vCharacter = Tool.Parent
vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
if vPlayer then
local playerGui = vPlayer:FindFirstChild("PlayerGui")
if playerGui and playe... | 394 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498793/src/ButterflyPoisonScript.server.luau | luau | .luau | local Character = script.Parent
local Humanoid = Character:WaitForChild('Humanoid')
local Fire = Instance.new('Fire')
Fire.Color = Color3.new(0, 1, 0)
Fire.Parent = Character:WaitForChild('Torso')
Game:GetService('Debris'):AddItem(Fire, 5.5)
local Duration = 4.5
while Duration > 0 do
Humanoid:TakeDamage(5)
Dur... | 126 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498793/src/ButterflyScript.server.luau | luau | .luau | local Tool = script.Parent
local Fly = Tool.Handle
local Lid = Fly:WaitForChild('Lid')
local Character
local Player
local Torso
local Humanoid
local Debris = Game:GetService('Debris')
local InsertService = Game:GetService('InsertService')
local ButterflyId = 117470774
local Equipped = false
local Butterfly ... | 1,713 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498849/src/WaspFireScript.server.luau | luau | .luau | local Character = script.Parent
local Humanoid = Character:WaitForChild('Humanoid')
local Fire = Instance.new('Fire')
Fire.Color = Color3.new(1, 1, 1)
Fire.Parent = Character:WaitForChild('Torso')
Game:GetService('Debris'):AddItem(Fire, 5.5)
local Duration = 4.5
while Duration > 0 do
Humanoid:TakeDamage(11)
Du... | 126 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117498849/src/WaspScript.client.luau | luau | .luau | local Tool = script.Parent
local Wings = Tool.Handle
local Character
local Player
local Torso
local Humanoid
local Head
Tool.Enabled = true
local JumpConnection
local HeadConnection
local Debris = Game:GetService('Debris')
local BASE_URL = "http://www.roblox.com"
local RightWing = Instance.new('Part')
Ri... | 2,070 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117544573/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
ContentProvider = game:GetService("ContentProvider")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must... | 1,392 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117544573/src/Script/CallScript/init.client.luau | luau | .luau | --Rescripted by Luckymaxer
Debris = game:GetService("Debris")
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
LaughTime = script:WaitForChild("LaughTime")
LaughAnimation = script:WaitForChild("LaughAnimation")
CheerSound = script:WaitForChild("CheerSound")
CheerSound:Play()
LaughTrack = H... | 173 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117544573/src/Script/PickUpScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Part = script.Parent
Debris = game:GetService("Debris")
Creator = Part:FindFirstChild("Creator")
Sounds = {
PickUp = Part:WaitForChild("PickUpSound")
}
Enabled = true
function Touched(Hit)
if not Hit or not Hit.Parent or not Enabled then
return
end
local character = Hit.Parent
if... | 182 |
Roblox/gear | Roblox-gear-28b88df/src/gear/117544573/src/Script/init.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
PickUpScript = script:WaitForChild("PickUpScript")
CallScript = script:WaitForChild("CallScript")
BaseUrl = "http://www.roblox.com/asset/?id="
Grips = {
Uneq... | 2,085 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1180416995/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local GearService = require(1075123174)
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local Gear = GearService:BindGear(Tool, "Sword")
Gear:SetupLocalScript("MouseIcon")
Gear.Class:SetLungeDamage(20)
Gear.Class:SetSlashDamage(10)
local LastClick = 0
Gear:BindActivat... | 172 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1180417820/src/Script.server.luau | luau | .luau | -- Created by StarWars
local GearService = require(1075123174)
local GearData = GearService:BindGear(script.Parent, "LaserGun")
GearData.Class:SetColors({Color3.fromRGB(234, 0, 234), Color3.fromRGB(0, 189, 227), Color3.fromRGB(113, 230, 3), Color3.fromRGB(255, 255, 50)})
GearData.Class:SetFireSound(130113322)
GearData... | 111 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1180418251/src/LocalScript/init.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
ArtemisGui = script:WaitForChild("ArtemisGui")
Animations = {}
LocalObjects = {}
Sounds = {
Wings = Ha... | 3,117 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1180418251/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Made by Stickmasterluke
--Updated for R15 avatars by StarWars
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Mesh = Handle:WaitForChild("Mesh")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
Debris = game:GetService("Debris")
DisplayModel = To... | 3,999 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281463/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local MouseInput = Tool:WaitForChild("MouseLoc",10)
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
RunService = (game:FindService("RunService") or game:GetService("RunService")),
Input = (game:FindService("ContextActionService") or game:GetServi... | 194 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281463/src/Server/init.server.luau | luau | .luau | --Revamped by TakeoHonorable
--They'll never know when it's coming
local Properties = {
Range = 800,
Reload = 20
}
local Self = script
local Tool = Self.Parent
Tool.Enabled = true
local Handle = Tool:WaitForChild("Handle")
local instance,Type,Pcall,Vec3,Rays,world,FindPartOnRay,cframe,fromRGB,Angles = Instance.... | 1,150 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281490/src/SeaHorseScript.client.luau | luau | .luau | wait() --Fix implemented by Luckymaxer
print('Transport Script')
local function WaitForChild(parent, childName)
print(parent, childName)
while parent:FindFirstChild(childName) == nil do
wait()
end
return parent[childName]
end
local Tool = script.Parent
local FlightPower
local FlightSpin
local FlightHold
... | 1,001 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281490/src/SeatScript.client.luau | luau | .luau | wait() --Fix implemented by Luckymaxer
local function WaitForChild(parent, childName)
print(parent, childName)
while parent:FindFirstChild(childName) == nil do
wait()
end
return parent[childName]
end
local Tool = script.Parent
local Horse = Tool.Handle
local Player
local Character
local Torso
local Huma... | 2,539 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281529/src/Client.client.luau | luau | .luau | --Rescripted by TakeoHonorable
local Tool = script.Parent
local MouseLoc = Tool:WaitForChild("MouseRemote",10)
function MouseLoc.OnClientInvoke()
return game:GetService("Players").LocalPlayer:GetMouse().Hit.p
end | 54 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281529/src/MouseIcon.client.luau | luau | .luau | local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
local Tool = script.Parent
local Mouse = nil
local function UpdateIcon()
if Mouse then
Mouse.Icon = Tool.Enabled and MOUSE_ICON or RELOADING_ICON
end
end
local function OnEquipped(mouse)
Mouse ... | 132 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281529/src/Server.server.luau | luau | .luau | --Rescripted by TakeoHonorable
--Fixed the harpoon bypassing ForceFields
local Tool = script.Parent
Tool.Enabled = true
local Handle = Tool:WaitForChild("Handle")
local HarpoonBeam = Handle:WaitForChild("HarpoonBeam")
local StartPoint = Handle:WaitForChild("Start")
function Create(ty)
return function(data)
loca... | 1,102 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281609/src/MissileScript/init.server.luau | luau | .luau | local NewInstance = LoadLibrary('RbxUtility')
local SquidGui = NewInstance.Create'ScreenGui'
{
Name = 'SquidGui';
NewInstance.Create'Frame'
{
Name = 'SquidFrame';
Size = UDim2.new(1, 0, 1, 0);
BackgroundTransparency = 1.0;
Position = UDim2.new(0, 0, 0, 0);
}
}
... | 484 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118281609/src/SquidScript.client.luau | luau | .luau | local Tool = script.Parent
local Gun = Tool.Handle
local Player
local Character
local Humanoid
local Torso
Tool.Enabled = true
local RunService = Game:GetService('RunService')
local LastAttack = 0
local DashTime = 0
local LastKeyDown = 0
local Missile = Instance.new('Part')
Missile.Shape = 'Ball'
Missile.For... | 1,044 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1183006601/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 Porg = InsertService:LoadAsset(1207908937)... | 276 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1183007014/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 BB8Robot = InsertService:LoadAsset(1207908... | 270 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1183007628/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 BB9Robot = InsertService:LoadAsset(1207908... | 270 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1183008259/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 R2D2Robot = InsertService:LoadAsset(120790... | 278 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118650365/src/AddOns/LightScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Stickmasterluke
Part = script.Parent
RunService = game:GetService("RunService")
Light = (Part:FindFirstChild("Light") or Instance.new("PointLight"))
Light.Name = "Light"
Light.Parent = Part
Colors = {
Color3.new(1, 0, 0),
Color3.new(1, 1, 0),
Color3.new(0, 1, 0),
Color3.new(0, 0, 1)... | 326 |
Roblox/gear | Roblox-gear-28b88df/src/gear/118650365/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,449 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11885154/src/SwordScript.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")
RunService = game:GetService("RunService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
err... | 2,053 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11895536/src/BloxiliciousGum.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Grips = {
TakeStick = CFrame.new(1.25, -0.5, 0.200000003, 0.971011043, 0.239034176, 0.000580094696, -0.156055406, 0.632090449, 0.759018004, 0.181064576, -0.737... | 1,315 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101539/src/Script.server.luau | luau | .luau | health = 3
active = false
script.Parent.Equipped:connect(function()
active = true
end)
script.Parent.Unequipped:connect(function()
active = false
end)
while wait(1) do
if active then
script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
end
end
| 75 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101595/src/TrolladadScript/TelamonAi/init.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local THROWABLE_DAMAGE = 15
local THROWABLE_CHANCE = 0.05
local THROWABLE_TIMETOLIVE = 15
local ONE_STEP = 1 / 30
--------------------
--| WaitForChild |--
--------------------
-- Waits for parent.child to exist, then returns it
local function WaitForChild(paren... | 1,422 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101595/src/TrolladadScript/TurkeyScript.server.luau | luau | .luau | local Damage = 5
local HatAwarded = false
function onTouched(hit)
if (hit.Parent:findFirstChild("Humanoid") ~= nil and not HatAwarded) and game.Players:GetPlayerFromCharacter(hit.Parent)~=script:WaitForChild('creator').Value then
HatAwarded = true
for _,i in pairs(hit.Parent:GetChildren()) do
if i:IsA('Hat')... | 277 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101595/src/TrolladadScript/init.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local THROWABLE_DAMAGE = 15
local THROWABLE_TIMETOLIVE = 15
local CHANCE_TO_SUMMON = 0.1
local SUMMON_DEBRIS_TIME = 30
local SUMMON_ID = 105428829
local SUMMON_SPAWN_OFFSET = Vector3.new(15, 0, 15)
local AI_SCRIPT_NAME = 'TelamonAi'
local COOLDOWN = 1
----------... | 2,697 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101643/src/ACScript/ExplodeScript.server.luau | luau | .luau | local AC = script.Parent
local CSB_Sound = AC:WaitForChild('CSBSound')
local TConnection = AC.Touched:connect(function(hitPart)
if TConnection then TConnection:disconnect() end
if AC:FindFirstChild('Fire') then
AC.Fire.Enabled = false
end
if hitPart and hitPart.Parent then
local humanoid = hitPart.Pare... | 192 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101643/src/ACScript/init.server.luau | luau | .luau | local Tool = script.Parent
local AC = Tool.Handle
local Player
local Character
local Torso
local Humanoid
local Debris = Game:GetService('Debris')
Tool.Enabled = true
local MAX_ACs = 18
local CSB_Model_ID = 119114152
local InsertService = Game:GetService('InsertService')
local CSB_Model = InsertService:LoadA... | 1,025 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119101643/src/AnimScript.client.luau | luau | .luau | local Tool = script.Parent
local AC = Tool.Handle
local Humanoid
local Character
local Player
local PlayAnim
local function OnEquipped()
Character = Tool.Parent
Humanoid = Character:WaitForChild('Humanoid')
Player = Game.Players:GetPlayerFromCharacter(Character)
end
Tool.Equipped:connect(OnEquipped)
Pla... | 225 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1191128759/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local InsertService = game:GetService("InsertService")
local Tool = script.Parent
local Display = Tool:FindFirstChild("Display")
if Display then
Display:Destroy()
end
local RamModel = InsertService:LoadAsset(1175032663)
RamModel = RamModel:GetChildren()[1]
local GearService = require(10751... | 104 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1191143111/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local InsertService = game:GetService("InsertService")
local Tool = script.Parent
local Display = Tool:FindFirstChild("Display")
if Display then
Display:Destroy()
end
local ElkModel = InsertService:LoadAsset(1175033237)
ElkModel = ElkModel:GetChildren()[1]
local GearService = require(10751... | 106 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1191149773/src/JetpackControls.client.luau | luau | .luau | -- // Created by StarWars
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Tool = script.Parent
local Remotes = Tool:WaitForChild("Remotes")
local AnimationsFolder = Tool:Wa... | 1,657 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1191149773/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local InsertService = game:GetService("InsertService")
local GearService = require(1075123174)
local Tool = script.Parent
if Tool:FindFirstChild("Handle") then
Tool.Handle:Destroy()
end
local JetpackPart = Tool.Jetpack
JetpackPart.Transparency = 1
local JetpackModel = InsertService:LoadAss... | 569 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11956382/src/Old.server.luau | luau | .luau | -------- OMG HAX
r = game:service("RunService")
local damage = 5
local slash_damage = 12
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "http://www.roblox.com/Asset/?ID=11949128"
SlashSound.Parent = sword
SlashSound.Volume = .7
... | 631 |
Roblox/gear | Roblox-gear-28b88df/src/gear/11956382/src/SwordScript.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")
RunService = game:GetService("RunService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
err... | 2,052 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917487/src/HumanRocketMain/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... | 616 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917487/src/HumanRocketMain/init.client.luau | luau | .luau | local RELOAD_TIME = 10
local Create = LoadLibrary('RbxUtility').Create
local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local RocketScript = Tool:WaitForChild('RocketScript')
local Player;
local Character;
local Torso;
local Humanoid;
local Equipped = false
local LastUse = Tool:WaitForChild('Las... | 792 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917487/src/RocketScript/GlideScript.client.luau | luau | .luau |
local Create = LoadLibrary('RbxUtility').Create
------------------------------------------------------------------
--| Main Globals |--
------------------------------------------------------------------
local Character = script.Parent
local Torso = Character:WaitForChild(... | 1,298 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917487/src/RocketScript/init.server.luau | luau | .luau |
local Rocket = script.Parent
local CreatorTag = Rocket:WaitForChild('creator')
while not CreatorTag.Value do CreatorTag.Changed:wait() end
local CreatorCharacter = CreatorTag.Value.Character
local CreatedAt = tick()
local Firing = false
Spawn(function()
wait(20)
if not Firing then
Rocket:Destroy()
end
end)
--... | 619 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917513/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
StarterGui = game:GetService("StarterGui")
ContentProvider = game:GetService("ContentProvider")
Camera = game:GetService("Workspace").CurrentCamera
Animations = {}
InteractiveConnections = {}
ServerC... | 979 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917513/src/ThrowScript/ProjectileScript.server.luau | luau | .luau | local LatestTouchedPart
local TicksWithoutMoving = 0
local AlreadyGrew = false
local HaltGrowing = false
local Treehouse = script.Parent
local Creator = Treehouse:FindFirstChild("Creator")
local Remove = Treehouse:FindFirstChild("Remove")
local BoundingBox = Treehouse.BoundingBox
local BodyGyro = BoundingBox:FindFirst... | 2,151 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917513/src/ThrowScript/Remover.server.luau | luau | .luau | --Made by Luckymaxer
Model = script.Parent
Debris = game:GetService("Debris")
Creator = Model:FindFirstChild("Creator")
Remove = Model:FindFirstChild("Remove")
function DestroyModel(Duration)
Debris:AddItem(Model, ((not Duration and 2) or Duration))
end
if not Creator or not Creator.Value or not Creator.Value:IsA... | 159 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917556/src/ChalkDrawing.client.luau | luau | .luau | local DRAW_RANGE = 40
local Tool = script.Parent
local Equipped = false
Tool.Equipped:connect(function(mouse)
Equipped = true
local MouseDown = false
local Character = Tool.Parent
local Torso = Character:WaitForChild('HumanoidRootPart')
--
mouse.KeyDown:connect(function(key)
if key:upper() == 'Q' then
Tool... | 1,397 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917556/src/CursorScript.client.luau | luau | .luau | local enabled = true
local Mouse;
local Tool = script.Parent
local Create = LoadLibrary('RbxUtility').Create
function onButton1Down(mouse)
Mouse = mouse
if not enabled or Tool.DrawMode.Value then
return
end
enabled = false
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(.5)
mouse.Icon = "rbxasset://... | 428 |
Roblox/gear | Roblox-gear-28b88df/src/gear/119917556/src/SwordScript.server.luau | luau | .luau | r = game:service("RunService")
local damage = 5
local slash_damage = 10
local lunge_damage = 30
sword = script.Parent.Handle
Tool = script.Parent
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
local LungeSound = ... | 975 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.