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/105430216/src/BladeScript.client.luau
luau
.luau
-- SolarCrane -- 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 tool = Game.Selection:Get()[1]; tool....
1,598
Roblox/gear
Roblox-gear-28b88df/src/gear/1060280135/src/KnightSwordScript.server.luau
luau
.luau
--[[ Fixed by ArceusInator: The mesh is now visible on Macs! --]] -- PIERCING SWORD -- r = game:service("RunService") local sword = script.Parent.Handle local Tool = script.Parent local damage = 7 local epicKatana = false local p = nil local humanoid = nil local slash_damage = 9 local lunge_damage = 11 local Slas...
1,050
Roblox/gear
Roblox-gear-28b88df/src/gear/1060280135/src/Local Gui.client.luau
luau
.luau
Tool = script.Parent local stillEquipped = true 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\\GunWaitCursor.png" while Tool.Enabled and stillEquipped d...
182
Roblox/gear
Roblox-gear-28b88df/src/gear/1060282245/src/LocalScript.client.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") UserInputService = game:GetService("UserInputService") InputCheck = Instance.new("ScreenGui") InputCheck.Name = "InputCheck" InputButton = Instance.new("Frame") InputButton.Name = ...
1,373
Roblox/gear
Roblox-gear-28b88df/src/gear/1060282245/src/Script/ParticleScript.server.luau
luau
.luau
Part = script.Parent Duration = Part:WaitForChild("Duration") wait(Duration.Value) if Part:IsA("Part") then for i, v in pairs(Part:GetChildren()) do if v:IsA("ParticleEmitter") then v.Enabled = false end end elseif Part:IsA("ParticleEmitter") then Part.Enabled = false end
80
Roblox/gear
Roblox-gear-28b88df/src/gear/1060282245/src/Script/init.server.luau
luau
.luau
--Made by StarWars Tool = script.Parent Handle = Tool:WaitForChild("Handle") Mesh = Handle:WaitForChild("Mesh") Players = game:GetService("Players") Debris = game:GetService("Debris") RunService = game:GetService("RunService") local function Create_PrivImpl(objectType) if type(objectType) ~= 'string' then error("...
5,771
Roblox/gear
Roblox-gear-28b88df/src/gear/106064277/src/LocalKatanaScript.client.luau
luau
.luau
local Tool = script.Parent Tool.Enabled = true local r = game:GetService("RunService") --invisible forces to move player around --body velocity local newBV = nil --body gyro local newBG = nil --body angualar velocity local newBAV = nil --body position local newBP = nil local slashSound = Tool.Handle.SlashSound local...
2,894
Roblox/gear
Roblox-gear-28b88df/src/gear/106064277/src/SuperKatanaScript.server.luau
luau
.luau
-- Ninja Katana FTW!! -- handle to the game service object r = game:service("RunService") -- Normal damage local nonslash_damage = 5 -- special damage when the Ninja slash occurs local slash_damage = 10 local damage = nonslash_damage -- Handle to the tool and its object sword = script.Parent.Handle Tool = script.P...
822
Roblox/gear
Roblox-gear-28b88df/src/gear/106064315/src/Handle/PoisonedFood/Eating/Poisoned.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...
332
Roblox/gear
Roblox-gear-28b88df/src/gear/106064315/src/Handle/PoisonedFood/Eating/init.client.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 eatSound = scriptWaitForChild("EatSound") local eatSoundClone = eatSound:Clone() local ...
272
Roblox/gear
Roblox-gear-28b88df/src/gear/106064315/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...
516
Roblox/gear
Roblox-gear-28b88df/src/gear/106064315/src/Handle/SelfDestruct/init.server.luau
luau
.luau
-- Calls Destroy on this script's Parent after TimeToLive while not script:FindFirstChild("TimeToLive") do wait() end -- Irony wait(script.TimeToLive.Value) if script.Parent then script.Parent:Destroy() end
50
Roblox/gear
Roblox-gear-28b88df/src/gear/106064315/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 -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") while not par...
775
Roblox/gear
Roblox-gear-28b88df/src/gear/106064447/src/RaygunScript/HeartScript/SoundScript/init.client.luau
luau
.luau
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 wait() local DebrisService = Game:GetService('Debris') local Torso = script.Parent if Torso and not Torso:Fin...
129
Roblox/gear
Roblox-gear-28b88df/src/gear/106064447/src/RaygunScript/HeartScript/init.server.luau
luau
.luau
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 contentProvider = game:GetService("ContentProvider") local DebrisService = Game:GetService('Debris') loc...
544
Roblox/gear
Roblox-gear-28b88df/src/gear/106064447/src/RaygunScript/init.client.luau
luau
.luau
-- SolarCrane -- 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 tool = Game.Selection:Get()[1]; tool....
2,806
Roblox/gear
Roblox-gear-28b88df/src/gear/106064469/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 playe...
394
Roblox/gear
Roblox-gear-28b88df/src/gear/106064469/src/LanternScript.server.luau
luau
.luau
local Tool = script.Parent local Lantern = Tool.Handle local vCharacter local myTorso local myHumanoid Tool.Enabled = true local equipped = false local activated = false local hauntDamage = 1 local dragonSpirit local dragonSpirit2 local dragonSpirit3 local dragonPart = Instance.new("Part") dragonPart.Name = ...
1,826
Roblox/gear
Roblox-gear-28b88df/src/gear/1062304136/src/LocalScript.client.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Remotes = Tool:WaitForChild("Remotes") ServerControl = Remotes:WaitForChild("ServerControl") ClientControl = Remotes:WaitForChild("ClientControl") Rate = (1 / 60) ToolEquipped = false function Check...
329
Roblox/gear
Roblox-gear-28b88df/src/gear/1062304136/src/MouseIcon.client.luau
luau
.luau
--Made 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 = ToolMous...
121
Roblox/gear
Roblox-gear-28b88df/src/gear/1062304136/src/Script/Remover.server.luau
luau
.luau
Model = script.Parent Players = game:GetService("Players") Debris = game:GetService("Debris") Creator = Model:FindFirstChild("Creator") Tool = Model:FindFirstChild("Tool") function DestroyModel() Debris:AddItem(Model, 2) end if not Creator or not Creator.Value or not Creator.Value:IsA("Player") or not Creator.Valu...
233
Roblox/gear
Roblox-gear-28b88df/src/gear/1062304136/src/Script/init.server.luau
luau
.luau
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 error("Argument of Create must be a string", 2) end --...
2,613
Roblox/gear
Roblox-gear-28b88df/src/gear/106701564/src/StaffScript/init.client.luau
luau
.luau
-- SolarCrane -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") --print("waiting for:" , childName) while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end --print("Got:", childName) return par...
1,814
Roblox/gear
Roblox-gear-28b88df/src/gear/106701619/src/Handle/AnimateScript.client.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local Handle = script.Parent local Tool = Handle.Parent local Humanoid local Animation local animation = WaitForChild(Tool, "wandcast") function onEquipped() Character = Tool.Parent...
234
Roblox/gear
Roblox-gear-28b88df/src/gear/106701619/src/Handle/FrogScript/init.client.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local Character = script.Parent local Player = game.Players:GetPlayerFromCharacter(Character) local Mouse = Player:GetMouse() local Torso = WaitForChild(Character, "Torso") local Neck...
486
Roblox/gear
Roblox-gear-28b88df/src/gear/106701619/src/Handle/FrogWandScript/init.server.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local FROG_ASSET_ID = 106808835 local GLib = require(206209239) local Handle = script.Parent local Tool = Handle.Parent local Character local Humanoid local SludgeMesh = WaitForChild(...
1,739
Roblox/gear
Roblox-gear-28b88df/src/gear/106701619/src/LocalScript.client.luau
luau
.luau
script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() script.Parent.Input:FireServer('Mouse1', true, mouse.Hit) end) end)
38
Roblox/gear
Roblox-gear-28b88df/src/gear/106701659/src/WingScript.server.luau
luau
.luau
function WaitForChild(parent,child) while not parent:FindFirstChild(child) do print("roped waiting for " .. child) wait() end return parent[child] end local Tool = script.Parent local Handle = WaitForChild(Tool,'Handle') local lmotor = WaitForChild(Handle,'lmotor') local rmotor = WaitForChild(Handle,'rmotor') lmoto...
226
Roblox/gear
Roblox-gear-28b88df/src/gear/106701659/src/continuumScript/init.client.luau
luau
.luau
function WaitForChild(parent,child) while not parent:FindFirstChild(child) do print("roped waiting for " .. child) wait() end return parent[child] end local handle = WaitForChild(script.Parent,'Handle') local EngineSound = WaitForChild(handle,'Running') local HoldAni = WaitForChild(script.Parent,'holdAni') local ...
2,147
Roblox/gear
Roblox-gear-28b88df/src/gear/106701702/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent smackdamage=26 attacks={"HelicopterSpin","ClawAttack"} rate=1/30 check=true check2=true pageused=false damage=0 lastclick=0 local debris=game:GetService("Debris") function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild...
2,269
Roblox/gear
Roblox-gear-28b88df/src/gear/10727852/src/BrewEffect.server.luau
luau
.luau
print("run brew") -- assume we are in the character, let's check function sepuku() script.Parent = nil end local h = script.Parent:FindFirstChild("Humanoid") if (h == nil) then sepuku() end local head = script.Parent:FindFirstChild("Head") if (head == nil) then sepuku() end local m = head:Find...
195
Roblox/gear
Roblox-gear-28b88df/src/gear/10727852/src/SodaScript.server.luau
luau
.luau
local Tool = script.Parent; enabled = true function onActivated() if not enabled then return end enabled = false Tool.GripForward = Vector3.new(0,-.759,-.651) Tool.GripPos = Vector3.new(1.5,-.5,.3) Tool.GripRight = Vector3.new(1,0,0) Tool.GripUp = Vector3.new(0,.651,-.759) Tool.Han...
301
Roblox/gear
Roblox-gear-28b88df/src/gear/10730984/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,079
Roblox/gear
Roblox-gear-28b88df/src/gear/107458429/src/Handle/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild(b) end local tag=waitfor(sp,"creator") attached=false sp.Touched:connect(function(hit) if hit and hit.Parent~=nil and attached==false then if string.sub(hit.Name,1,6)...
456
Roblox/gear
Roblox-gear-28b88df/src/gear/107458429/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent cooldown=.5 debris=game:GetService("Debris") check=true function waitfor(parent,name) while true do local child=parent:FindFirstChild(name) if child~=nil then return child end wait() end end local handle=waitfor(sp,"Handle") local debris=game:GetServ...
591
Roblox/gear
Roblox-gear-28b88df/src/gear/107458461/src/Handle/PoisonedFood/Eating/init.client.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 eatAnimation = scriptWaitForChild("EatAnimation") -- Feed the Humanoid this script is ...
175
Roblox/gear
Roblox-gear-28b88df/src/gear/107458461/src/Handle/PoisonedFood/TextSpammer.client.luau
luau
.luau
--[[local oldMessages = { "IT'S A LIE", "YOU'LL NEVER MAKE IT", "YOU'RE JUST LIKE EVERYONE ELSE", "I DIDN'T EVEN BAKE IT", "YOU'RE WASTING YOUR TIME", "YOU NEVER APPRECIATE ME", "IT'S TOO LATE", }--]] local Messages = { "REPOST FOR FREE BC", "PLZ DONATE", "IM SUCH A HAXOR", "PLAY MY ESCAPE THE OBBY FOR F...
650
Roblox/gear
Roblox-gear-28b88df/src/gear/107458461/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 while not script:FindFirst...
642
Roblox/gear
Roblox-gear-28b88df/src/gear/107458483/src/LocalScript.client.luau
luau
.luau
--Rescripted by Luckymaxer --Made by Stickmasterluke --// Fixed for R15 avatars by StarWars -- Fixed by Stickmasterluke to support mobile Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") RunService = game:GetService("RunService") Animat...
3,398
Roblox/gear
Roblox-gear-28b88df/src/gear/107458483/src/Script.server.luau
luau
.luau
--Rescripted by Luckymaxer --Made by Stickmasterluke --// Fixed for R15 avatars by StarWars -- Fixed for mobile support by Luke, again Tool = script.Parent Handle = Tool:WaitForChild("Handle") Mesh = Handle:WaitForChild("Mesh") local Cloud Players = game:GetService("Players") Debris = game:GetService("Debris") Base...
1,120
Roblox/gear
Roblox-gear-28b88df/src/gear/107458531/src/LocalScript/init.client.luau
luau
.luau
--[[Super Util]]-- function WaitForChild(parent,child) while not parent:FindFirstChild(child) do wait(1/30) end return parent[child] end function MakeValue(class,name,value,parent) local temp = Instance.new(class) temp.Name = name temp.Value = value temp.Parent = parent return temp end function TweenProperty...
938
Roblox/gear
Roblox-gear-28b88df/src/gear/1074738432/src/LocalScript.client.luau
luau
.luau
Tool = script.Parent Players = game:GetService("Players") RunService = game:GetService("RunService") Camera = game:GetService("Workspace").CurrentCamera Animations = {} LocalObjects = {} ServerControl = Tool:WaitForChild("ServerControl") ClientControl = Tool:WaitForChild("ClientControl") Rate = (1 / 60) CameraSpe...
1,643
Roblox/gear
Roblox-gear-28b88df/src/gear/1074738432/src/MouseIcon.client.luau
luau
.luau
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 = ToolMouse UpdateIcon() end T...
114
Roblox/gear
Roblox-gear-28b88df/src/gear/1074738432/src/Script.server.luau
luau
.luau
--Rescripted by TakeoHonorable --Fixed Lag-switching issue local Players = game:GetService("Players") local Debris = game:GetService("Debris") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Tool = script.Parent local Handle = Tool:WaitForChild("Handle",10...
1,574
Roblox/gear
Roblox-gear-28b88df/src/gear/1074742019/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 ...
594
Roblox/gear
Roblox-gear-28b88df/src/gear/1074742019/src/Script.server.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") BirdModule = require(191816425) ToolEquipped = false ServerControl = (Tool:FindFirstChild("ServerControl") or Instance.new("RemoteFunction")) ServerControl.Name = "ServerControl" ServerC...
494
Roblox/gear
Roblox-gear-28b88df/src/gear/10758456/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,372
Roblox/gear
Roblox-gear-28b88df/src/gear/10760425/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,157
Roblox/gear
Roblox-gear-28b88df/src/gear/10760425/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") Damage = 10 function IsTeamMate(Player1, Player2) return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Play...
437
Roblox/gear
Roblox-gear-28b88df/src/gear/1076255449/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") Equipped = false ClientCont...
686
Roblox/gear
Roblox-gear-28b88df/src/gear/1076255449/src/Script.server.luau
luau
.luau
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 = Enum.SurfaceType.Smooth BasePart.BottomSurface = Enum.S...
5,346
Roblox/gear
Roblox-gear-28b88df/src/gear/1076457286/src/Script.server.luau
luau
.luau
local GearService = require(1075123174) local Tool = script.Parent local Gear = GearService:BindGear(Tool, "Sword") Gear.Class:SetLungeDamage(20) Gear.Class:SetSlashDamage(10)
49
Roblox/gear
Roblox-gear-28b88df/src/gear/1076467071/src/LocalScript.client.luau
luau
.luau
local Players = game:GetService("Players") local Player = Players.LocalPlayer local PlayerMouse = Player:GetMouse() local Tool = script.Parent local Remotes = Tool:WaitForChild("Remotes") local RemoteFunction = Remotes:WaitForChild("RemoteFunction") function RemoteFunction.OnClientInvoke(mode, ...) if mode == "Get...
85
Roblox/gear
Roblox-gear-28b88df/src/gear/1076467071/src/Script.server.luau
luau
.luau
local Debris = game:GetService("Debris") local TweenService = game:GetService("TweenService") local GearService = require(1075123174) local LaserInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local Tool = script.Parent local Handle = Tool.Handle local Gear = GearService:BindGear(Tool, "S...
422
Roblox/gear
Roblox-gear-28b88df/src/gear/108148416/src/SwordScript.server.luau
luau
.luau
-------- OMG HAX r = game:service("RunService") local damage = 10 local slash_damage = 15 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" SlashSound.Parent = sword SlashSound.Volume = 1 local UnsheathSound = I...
683
Roblox/gear
Roblox-gear-28b88df/src/gear/108148449/src/SwordScript.server.luau
luau
.luau
-------- OMG HAX r = game:service("RunService") local damage = 5 local slash_damage = 13 local lunge_damage = 20 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" SlashSound.Parent = sword SlashSound.Volume = .7 l...
910
Roblox/gear
Roblox-gear-28b88df/src/gear/108148479/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") Folders = Tool:WaitForChild("Folders") RemotesFolder = Folders:WaitForChild("Remotes") ServerControl = RemotesF...
864
Roblox/gear
Roblox-gear-28b88df/src/gear/108148479/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,082
Roblox/gear
Roblox-gear-28b88df/src/gear/108149175/src/FakeHandle/Kill.server.luau
luau
.luau
-- This is only used for the thumbnail script.Parent:Destroy()
14
Roblox/gear
Roblox-gear-28b88df/src/gear/108149201/src/Local Gui.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent taunting=false cursors={ Left=108119671, Right=108119709, Center=108119490, } function waitfor(parent,name) while parent:FindFirstChild(name)==nil do parent.ChildAdded:wait() end return parent:FindFirstChild(name) end sword=waitfor(sp,"Handle") waitfor(sp,...
651
Roblox/gear
Roblox-gear-28b88df/src/gear/108149201/src/SwordScript.server.luau
luau
.luau
--Stickmasterluke --A nice simple sword sp=script.Parent r=game:service("RunService") debris=game:GetService("Debris") check=true anims={"RightSlash","LeftSlash","OverHeadSwing"} basedamage=2 slashdamage=14 swingdamage=18 cooldown=.7 damage=basedamage function waitfor(parent,name) print("Waiting for",name) whi...
819
Roblox/gear
Roblox-gear-28b88df/src/gear/108153884/src/SwordScript.server.luau
luau
.luau
-------- OMG HAX r = game:service("RunService") local damage = 6 local slash_damage = 13 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "http://www.roblox.com/asset/?id=10730819" SlashSound.Parent = sword SlashSound.Volume = 1 --[[ local Unsheat...
732
Roblox/gear
Roblox-gear-28b88df/src/gear/108155504/src/Handle/PoisonedFood.server.luau
luau
.luau
local PlayersService = Game:GetService('Players') local Food = script.Parent local lastHeal = tick() Food.Touched:connect(function(otherPart) while true do for _, i in pairs(game.Players:GetPlayers()) do if i.Character and i.Character:FindFirstChild('Humanoid') and i.Character:FindFirstChild('Torso') then l...
147
Roblox/gear
Roblox-gear-28b88df/src/gear/108155504/src/LeftHandEquip/init.server.luau
luau
.luau
--[[Super Util]]-- function WaitForChild(parent,child) while not parent:FindFirstChild(child) do wait(1/30) end return parent[child] end function MakeValue(class,name,value,parent) local temp = Instance.new(class) temp.Name = name temp.Value = value temp.Parent = parent return temp end --[[Constants]]-- loc...
334
Roblox/gear
Roblox-gear-28b88df/src/gear/108155504/src/ThrowingTool.client.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 -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") while not par...
689
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Client.client.luau
luau
.luau
local Tool = script.Parent local Remote = Tool:WaitForChild("Remote",10) local MouseInput = Tool:WaitForChild("MouseInput",10) local Services = { Players = (game:FindService("Players") or game:GetService("Players")), TweenService = (game:FindService("TweenService") or game:GetService("TweenService")), RunService ...
452
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/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
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Server/SpawnLocalTeleport/init.client.luau
luau
.luau
local CharacterRef = script:WaitForChild("CharacterRef",10).Value local PhaseSound = CharacterRef:FindFirstChild("PhaseIn",true) local Services = { SoundService = (game:FindService("SoundService") or game:GetService("SoundService")), } --[[for _,parts in pairs(CharacterRef:GetDescendants()) do if parts:IsA("BasePa...
245
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Server/StarSummon/StarShard/init.server.luau
luau
.luau
local Shard = script.Parent delay(7,function() Shard:Destroy() end) local Creator = script:WaitForChild("Creator",10) local Blind = script:WaitForChild("Blind",10) local CreatorHumanoid = Creator.Value.Character:FindFirstChildOfClass("Humanoid") local Services = { Players = (game:FindService("Players") or game:G...
1,237
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Server/StarSummon/Stardust/init.server.luau
luau
.luau
local Character = script.Parent local Services = { Players = (game:FindService("Players") or game:GetService("Players")), TweenService = (game:FindService("TweenService") or game:GetService("TweenService")), RunService = (game:FindService("RunService") or game:GetService("RunService")), Debris = (game:FindService(...
274
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Server/StarSummon/init.server.luau
luau
.luau
local Services = { Players = (game:FindService("Players") or game:GetService("Players")), TweenService = (game:FindService("TweenService") or game:GetService("TweenService")), RunService = (game:FindService("RunService") or game:GetService("RunService")), Debris = (game:FindService("Debris") or game:GetService("Deb...
2,040
Roblox/gear
Roblox-gear-28b88df/src/gear/108158379/src/Server/init.server.luau
luau
.luau
--Rescripted by TakeoHonorable --Revamped Periastrons: The Periastron of Lighting liberty (Ivory) 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 Se...
3,183
Roblox/gear
Roblox-gear-28b88df/src/gear/108158439/src/Local Gui.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent enabled=true function waitfor(parent,name) while true do local child=parent:FindFirstChild(name) if child~=nil then return child end wait() end end waitfor(sp,"Handle") function onButton1Down(mouse) if not enabled then return end enabled=false m...
292
Roblox/gear
Roblox-gear-28b88df/src/gear/108158439/src/SwordScript.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent r=game:service("RunService") debris=game:GetService("Debris") anims={"RightSlash","LeftSlash"} basedamage=2 slashdamage=19 rangedamage=46 damage=basedamage ratio=.618033988 flagsize=10 specialready=true lastclick=0 sword=sp.Handle local SlashSound=Instance.new("Sound") Slash...
1,407
Roblox/gear
Roblox-gear-28b88df/src/gear/108234775/src/AnimationScript.client.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 Animations = {} local MyHumanoid local MyCharacter local function PlayAnimation(ani...
374
Roblox/gear
Roblox-gear-28b88df/src/gear/108234775/src/BowScript.server.luau
luau
.luau
local function WaitForChild(parent, childName) while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end return parent[childName] end local Tool = script.Parent local Bow = Tool.Handle local vCharacter local quiver local quiverWeld local arrows = {} local quiverArrow local PlayShoot local LAUNCH_...
1,973
Roblox/gear
Roblox-gear-28b88df/src/gear/108234775/src/OnTouchScript.server.luau
luau
.luau
local arrow = script.Parent local damage = 33 local activated = false function onTouch(hit) if hit.Parent and hit.Name ~= 'arrow' then vChar = hit.Parent humanoid = vChar:FindFirstChild("Humanoid") if humanoid ~= nil then tag = arrow:FindFirstChild("creator") if tag then tag.Parent = humanoid end ...
186
Roblox/gear
Roblox-gear-28b88df/src/gear/10831489/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,368
Roblox/gear
Roblox-gear-28b88df/src/gear/10831509/src/SwordScript.server.luau
luau
.luau
-------- OMG HAX r = game:service("RunService") local damage = 5 local slash_damage = 8 local lunge_damage = 12 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" SlashSound.Parent = sword SlashSou...
903
Roblox/gear
Roblox-gear-28b88df/src/gear/1084980039/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 Hognob = InsertService:LoadAsset(130275096...
291
Roblox/gear
Roblox-gear-28b88df/src/gear/1088051376/src/Script.server.luau
luau
.luau
local GearService = require(1075123174) local Tool = script.Parent local Gear = GearService:BindGear(Tool, "Sword") Gear.Class:SetLungeDamage(20) Gear.Class:SetSlashDamage(10) Gear.Class:SetGripOut(Tool.Grip) Gear:BindEquippedFunction("InsertAnimation", function() if Gear.Humanoid and Gear.Humanoid.RigType == Enum.Hu...
183
Roblox/gear
Roblox-gear-28b88df/src/gear/1088051790/src/Script.server.luau
luau
.luau
local GearService = require(1075123174) local Tool = script.Parent local Gear = GearService:BindGear(Tool, "Nunchuck")
33
Roblox/gear
Roblox-gear-28b88df/src/gear/10884288/src/Local Gui.client.luau
luau
.luau
Tool=script.Parent function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" end Tool.Equipped:connect(onEquippedLocal)
57
Roblox/gear
Roblox-gear-28b88df/src/gear/10884288/src/PelletScript.server.luau
luau
.luau
local debris = game:service("Debris") pellet = script.Parent damage = 8 function onTouched(hit) humanoid = hit.Parent:findFirstChild("Humanoid") if humanoid~=nil then tagHumanoid(humanoid) humanoid:TakeDamage(damage) else damage = damage / 2 if damage < 1 then connection:disconnect() end ...
218
Roblox/gear
Roblox-gear-28b88df/src/gear/10884288/src/Slingshot.server.luau
luau
.luau
Tool = script.Parent VELOCITY = 50 -- constant loaded=false local Pellet = Instance.new("Part") Pellet.Name="Snowball" Pellet.Locked = true Pellet.BackSurface = 0 Pellet.BottomSurface = 0 Pellet.FrontSurface = 0 Pellet.LeftSurface = 0 Pellet.RightSurface = 0 Pellet.TopSurface = 0 Pellet.Shape = 0 Pellet.Size = Vector3...
1,025
Roblox/gear
Roblox-gear-28b88df/src/gear/108875151/src/KatanaScript.server.luau
luau
.luau
-- Ninja Katana FTW!! -- handle to the game service object r = game:service("RunService") -- Normal damage local nonslash_damage = 5 -- special damage when the Ninja slash occurs local slash_damage = 10 local damage = nonslash_damage -- Handle to the tool and its object sword = script.Parent.Handle ...
549
Roblox/gear
Roblox-gear-28b88df/src/gear/108875151/src/LocalKatanaScript.client.luau
luau
.luau
local Tool = script.Parent Tool.Enabled = true local r = game:GetService("RunService") local newBV = nil local newBG = nil local newBAV = nil local newBP = nil local slashSound = Tool.Handle.SlashSound local spinSound = Tool.Handle.SpinSound local whackSound = Tool.Handle.WhackSound function slashIt(h...
1,659
Roblox/gear
Roblox-gear-28b88df/src/gear/108875172/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,459
Roblox/gear
Roblox-gear-28b88df/src/gear/108875216/src/LocalScript.client.luau
luau
.luau
--Stickmasterluke sp=script.Parent local debris=game:GetService("Debris") equipped=false check=true function onEquipped(mouse) if mouse~=nil then equipped=true if mouse~=nil then if check then mouse.Icon="rbxasset://textures\\ArrowCursor.png" else mouse.Icon="rbxasset://textures\\ArrowFarCursor...
607
Roblox/gear
Roblox-gear-28b88df/src/gear/108875216/src/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent exploded=false stuffhit={} time=5 damage=100 radius=19 pressure=-100 function applyvelocity(center,part) if part~=nil then local dist=(center-part.Position).magnitude local vec=(part.Position-center).unit part.Velocity=part.Velocity+((vec*pressure)) --possibly incorperat...
1,118
Roblox/gear
Roblox-gear-28b88df/src/gear/108875237/src/Firescript.server.luau
luau
.luau
--Made by Stickmasterluke --http://www.roblox.com/Equinox-item?id=19327469 sp=script.Parent check=true gundamage=11 --Base output damage per shot. firerate=.1 --How often the weapon can fire. automatic=true --hold down to continue firing range=300 --Max distance that the weapon can fi...
2,666
Roblox/gear
Roblox-gear-28b88df/src/gear/108875237/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=50 equipped=false sp=script.Par...
977
Roblox/gear
Roblox-gear-28b88df/src/gear/108899214/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild(b) end speedboostscript=waitfor(sp,"SpeedBoostScript") function Equipped() if sp.Parent:FindFirstChild("SpeedBoostScript")==nil then local s=s...
177
Roblox/gear
Roblox-gear-28b88df/src/gear/108899214/src/SpeedBoostScript.server.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent local Handle = sp:WaitForChild('Nerf Shoes'):WaitForChild('Handle') speedboost=1 --100% speed bonus speedforsmoke=10 --smoke apears when character running >= 10 studs/second. function waitfor(a,b,c) local c=c or 5*60 local d=tick()+c while a:FindFirstChild(b)==nil and...
811
Roblox/gear
Roblox-gear-28b88df/src/gear/10910681/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,368
Roblox/gear
Roblox-gear-28b88df/src/gear/109364052/src/SwordScript/StunScript.client.luau
luau
.luau
local MyCharacter = script.Parent if MyCharacter and MyCharacter:FindFirstChild('Humanoid') then local humanoid = MyCharacter.Humanoid local origSpeed = humanoid.WalkSpeed humanoid.WalkSpeed = 0 wait(2) humanoid.WalkSpeed = origSpeed end script:Destroy()
70
Roblox/gear
Roblox-gear-28b88df/src/gear/109364052/src/SwordScript/init.client.luau
luau
.luau
-------------- Sword Script ---------------- -- 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 PlayersService = Game:GetService('Players') local DebrisService = Ga...
3,632
Roblox/gear
Roblox-gear-28b88df/src/gear/109583771/src/AnimateScript.client.luau
luau
.luau
-- Sword and shield local Tool = script.Parent local Sword = Tool.Handle local vCharacter local shieldWeld local shieldWalkAnim local slashAnim local bashAnim local time local shieldActive local lastAttack = 0 local bashDamage = 12 local connection function bash(hit) print("Bashing") if hit...
1,364
Roblox/gear
Roblox-gear-28b88df/src/gear/109583771/src/Local Gui.client.luau
luau
.luau
Tool = script.Parent local stillEquipped = true 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 stillE...
182
Roblox/gear
Roblox-gear-28b88df/src/gear/109583771/src/SwordScript.server.luau
luau
.luau
-- Sword and shield -- shield damage 12, sword damage 18 -- health increased by 75, movement speed decreased by 2 local Tool = script.Parent local Sword = Tool.Handle local shield local shieldMesh local vCharacter local damage = 18 Tool.Enabled = true function blow(hit) -- For the Sword humanoid = hit.Parent:F...
832