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/101110605/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/101110605/src/ToolScript/DisruptorScript.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local TIME_TO_LIVE = 30 local ANTIGRAVITY_FACTOR = 1.1 local RADIUS = 15 local SPHERE_SCALE_TARGET_MAGNITUDE = Vector3.new(10, 10, 10).magnitude local SPHERE_GROW_SPEED = 1 local SPHERE_MESH_ID = 'http://www.roblox.com/asset/?id=94736101' local SPHERE_TEXTURE_ID...
1,078
Roblox/gear
Roblox-gear-28b88df/src/gear/101110605/src/ToolScript/init.client.luau
luau
.luau
----------------- --| Constants |-- ----------------- local COOLDOWN = 30 -------------------- --| WaitForChild |-- -------------------- -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") while not parent:FindFirst...
697
Roblox/gear
Roblox-gear-28b88df/src/gear/101191388/src/DisplayHandle/Script.server.luau
luau
.luau
script.Parent:Destroy()
5
Roblox/gear
Roblox-gear-28b88df/src/gear/101191388/src/DualDrop.server.luau
luau
.luau
local GLib = require(206209239) local tool = script.Parent local secondary tool.Equipped:connect(function() if secondary then secondary:Destroy() secondary=nil end end) tool.Unequipped:connect(function() if secondary then return end secondary = tool:WaitForChild'Handle':Clone() secondary.Name = 'DualDropHandle' ...
161
Roblox/gear
Roblox-gear-28b88df/src/gear/1016183873/src/LocalScript.client.luau
luau
.luau
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 = Tool:WaitForChild("Client...
1,653
Roblox/gear
Roblox-gear-28b88df/src/gear/1016183873/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 f...
132
Roblox/gear
Roblox-gear-28b88df/src/gear/1016183873/src/Script/RemovalMonitor.server.luau
luau
.luau
Model = script.Parent Debris = game:GetService("Debris") Removing = false function RemoveModel() if Removing then return end local Parts = {} for i, v in pairs(Model:GetChildren()) do if v:IsA("Model") then table.insert(Parts, v) end end if #Parts == 0 then Removing = true Model.Name = "" Debris...
123
Roblox/gear
Roblox-gear-28b88df/src/gear/1016183873/src/Script/init.server.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") RemovalMonitor = script:WaitForChild("RemovalMonitor") CarpetPieces = { {MeshId = 223079795, Angle = 160}, {MeshId = 223079835, Angle = 100}, {MeshId = 223079888, Angle = 100}, {MeshI...
3,237
Roblox/gear
Roblox-gear-28b88df/src/gear/1016184293/src/Assets.luau
luau
.luau
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 function call using Lua's ...
2,067
Roblox/gear
Roblox-gear-28b88df/src/gear/1016184293/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 f...
132
Roblox/gear
Roblox-gear-28b88df/src/gear/1016184293/src/Script.server.luau
luau
.luau
Tool = script.Parent Handle = Tool:WaitForChild("Handle") CoffeeModel = Tool:FindFirstChild("Coffee") Players = game:GetService("Players") Debris = game:GetService("Debris") CoffeeModel = CoffeeModel:Clone() CoffeeModel.Transparency = 0 Assets = require(Tool:WaitForChild("Assets")) Data = Assets.Data BaseUrl = Asse...
4,672
Roblox/gear
Roblox-gear-28b88df/src/gear/1016496274/src/BoomerangControl.server.luau
luau
.luau
local bodyp = script.Parent.BodyPosition local connection = nil local sound = script.Parent.FlyingSound sound.Looped = true sound:Play() function OnTouch(hit) bodyp:Remove() connection:disconnect() sound:Stop() end connection = script.Parent.Touched:connect(OnTouch) while(true) do wait(.1) if (script.Paren...
241
Roblox/gear
Roblox-gear-28b88df/src/gear/1016496274/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 thing = Tool:Clone() local missile = thing.Handle missile.Orientation = Vector3.new(0, 0, -90) local spawnPos = vCharacter.PrimaryPart.Position -...
713
Roblox/gear
Roblox-gear-28b88df/src/gear/1016496274/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(1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if mouse == nil then ...
140
Roblox/gear
Roblox-gear-28b88df/src/gear/1016512413/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(1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true end function onEquippedLocal(mouse) if...
140
Roblox/gear
Roblox-gear-28b88df/src/gear/1016512413/src/SwordScript.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=12814239" SlashSound.Parent = sword SlashSound.Volume = 1 local UnsheathSou...
684
Roblox/gear
Roblox-gear-28b88df/src/gear/101715440/src/LocalScript/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent damage=19 poisondamage=46 poisontime=7 wait() local weld=sp:FindFirstChild("Weld") if weld~=nil then if weld.Part0~=nil then hit=weld.Part0 local sound=sp:FindFirstChild("Sound") if sound~=nil then sound:Play() end local ct=sp:FindFirstChild("cr...
641
Roblox/gear
Roblox-gear-28b88df/src/gear/101715440/src/LocalScript/init.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent firerate=4 range=100 power=300 rate=1/30 barreloffset=Vector3.new(0,0,-1.5) windvec=Vector3.new(2,-1,1).unit debris=game:GetService("Debris") equipped=false check=true function waitfor(parent,name) while parent:FindFirstChild(name)==nil do wait() ...
1,456
Roblox/gear
Roblox-gear-28b88df/src/gear/101734094/src/HornAnimate/MotorizeRightGrip.server.luau
luau
.luau
print("Run RightgripScript, parent=", script.Parent) 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 armChildRemov...
647
Roblox/gear
Roblox-gear-28b88df/src/gear/101734094/src/HornAnimate/init.client.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local Tool = script.Parent local Blow = WaitForChild(Tool, "BlowAnimation") local Hold = WaitForChild(Tool, "HoldAnimation") local Character local BlowAnimation local HoldAnimation l...
301
Roblox/gear
Roblox-gear-28b88df/src/gear/101734094/src/Script.server.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local Tool = script.Parent local birdPrototypeContainer = game:GetService("InsertService"):LoadAsset(101713896) local birdPrototype = birdPrototypeContainer:GetChildren()[1] local MA...
806
Roblox/gear
Roblox-gear-28b88df/src/gear/101854599/src/LocalScript/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent fadetime=10 rate=.75 frames=fadetime/rate for frame=1,frames do sp.Transparency=((frame/frames)*.5)+.25 wait(rate) end sp:remove()
58
Roblox/gear
Roblox-gear-28b88df/src/gear/101854599/src/LocalScript/init.client.luau
luau
.luau
--Stickmasterluke sp=script.Parent lit=false check=true ready=tick() debris=game:GetService("Debris") function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild(b) end local effectpart=waitfor(sp.Handle,"EffectPart") local sparkles=waitfor(effectp...
913
Roblox/gear
Roblox-gear-28b88df/src/gear/101854599/src/WeldManagerScript.server.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 local storeweld=waitfor(sp,"StoreWeld") sp.Equipped:connect(function() if storeweld then storeweld.Parent=sp end end) storeweld.Paren...
93
Roblox/gear
Roblox-gear-28b88df/src/gear/101854660/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\\ArrowFarCursor.png" wait(3) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" enabled = true end function onEquippedLocal(mouse) ...
140
Roblox/gear
Roblox-gear-28b88df/src/gear/101854660/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...
270
Roblox/gear
Roblox-gear-28b88df/src/gear/102705386/src/LocalScript/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent debris=game:GetService("Debris") exploded=false function bang(hit) if hit~=nil and hit.Name~="Effect" and hit.Name~="Handle" then local h=hit.Parent:FindFirstChild("Humanoid") if h~=nil then local ct=sp:FindFirstChild("creator") local dt=sp:FindFirstChi...
595
Roblox/gear
Roblox-gear-28b88df/src/gear/102705386/src/LocalScript/init.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent cooldown=2 longestholdtime=12 spawndistance=61.8 spawnheight=15 check=true down=false equipped=false debris=game:GetService("Debris") function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild(b) ...
1,932
Roblox/gear
Roblox-gear-28b88df/src/gear/102705386/src/WeldManagerScript.server.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 local storeweld=waitfor(sp,"StoreWeld") sp.Equipped:connect(function() if storeweld then storeweld.Parent=sp end end) storeweld.Paren...
155
Roblox/gear
Roblox-gear-28b88df/src/gear/102705402/src/Icify/init.server.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 Humanoid = WaitForChild(character, "Humanoid") local IceSound = WaitForChild(script, "IceSound") local charParts = {} local freezeParts = {} lo...
534
Roblox/gear
Roblox-gear-28b88df/src/gear/102705402/src/Local Gui.client.luau
luau
.luau
local Tool = script.Parent; local myMouse = nil enabled = true function onButton1Down(mouse) if not enabled then return end print("ending") enabled = false while Tool.Enabled do wait(.01) end print("Setting Mouse To Wait") if myMouse ~= nil then myMouse.Icon = "rbxasset://textures\\GunWaitCursor.png" en...
230
Roblox/gear
Roblox-gear-28b88df/src/gear/102705402/src/RayGun.server.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local ICE_BALL_SPEED = 40 local FREEZE_CHANCE = .10 local SLOW_PERCENTAGE = .15 local ICE_BALL_DAMAGE = 10 local NUM_SPIKES = 3 local ICE_BALL_SPIN_SPEED = 5 local Tool = script.Paren...
1,525
Roblox/gear
Roblox-gear-28b88df/src/gear/102705430/src/IncinerateServer.server.luau
luau
.luau
local SpreadSpeed = .5 local MaxVolume = 9*9*9 local VolumeFireConst = 4.5 --volume of part to size of fire local MaxPartsBurned = 20 local Textures = { Ash = 102496105, } local AshColor = Vector3.new(42/255,53/255,55/255) local Sounds = { Fire = 102503996, } --yay lua has no definable enums, IM SO HAPPY ABOUT ...
1,687
Roblox/gear
Roblox-gear-28b88df/src/gear/102705430/src/ToolScript.client.luau
luau
.luau
function WaitForChild(parent,child) while not parent:FindFirstChild(child) do wait() print('waiting for ' .. child) end return parent[child] end local ProjectileScript = WaitForChild(script.Parent,'IncinerateServer') local Gravity = (-9.81*20) local NumAimLines = 10 local ArcHeight = 10 local ArcDistance = 20 ...
1,399
Roblox/gear
Roblox-gear-28b88df/src/gear/102705454/src/Script.server.luau
luau
.luau
function WaitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end return parent[child] end local NUM_TORNADOS = 5 local TORNADO_SPEED = 20 local TORNADO_DURATION = 6 local TORNADO_WOBBLE_ANGLE = .5 --1.5 local TORNADO_SPIN_SPEED = 10 local TORNADO_SIZE = Vector3.new(6, 10, 6...
1,987
Roblox/gear
Roblox-gear-28b88df/src/gear/1030943683/src/Script.server.luau
luau
.luau
local Tool = script.Parent local Handle = Tool.Handle local Pom = Handle:Clone() Pom.Name = "LeftPom" local Character = nil local LeftGripAttachment = nil local LeftPom = nil local ToolEquipped = false local function WeldPom() if LeftPom then LeftPom:Destroy() end LeftPom = Pom:Clone() LeftPom.Parent = Too...
291
Roblox/gear
Roblox-gear-28b88df/src/gear/103234296/src/DragonScript.server.luau
luau
.luau
function waitForChild(parent, instance) while parent:FindFirstChild(instance) == nil do print("Waiting on .. ", instance) wait() end end local Tool = script.Parent local Dragon = Tool.Handle local prevHealth = 100 local damage = 17 local healthConnect local vCharacter local myTorso local myHumanoid l...
3,018
Roblox/gear
Roblox-gear-28b88df/src/gear/103234296/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\\Gu...
196
Roblox/gear
Roblox-gear-28b88df/src/gear/103234612/src/CamFocusFailsafe/init.client.luau
luau
.luau
--refocus the camera on the player if the tool is dropped (the localscript in the tool stoips working in the case, so this script must be in the character or backpack) --avoid error, script runs before script.Tool and script.Target are added as children wait() script.Tool.Value.Changed:connect(function(pr) --print("T...
177
Roblox/gear
Roblox-gear-28b88df/src/gear/103234612/src/Handle/CleanUp.server.luau
luau
.luau
--clean up the plane if the creator leaves if script.Parent.creator.Value then game.Players.ChildRemoved:connect(function(p) if script.Parent.creator.Value.Parent == nil then script.Parent.Parent:remove() end end) end
51
Roblox/gear
Roblox-gear-28b88df/src/gear/103234612/src/LocalScript.client.luau
luau
.luau
wait(0.5) script.Parent.CamFocus.Changed:connect(function() local o = script.Parent.CamFocus.Value if o then wait() game.Workspace.CurrentCamera.CameraType = 1 game.Workspace.CurrentCamera.CameraSubject = o else wait() game.Workspace.CurrentCamera.CameraType = 5 game.Workspace.CurrentCamera.CameraSubjec...
96
Roblox/gear
Roblox-gear-28b88df/src/gear/103234612/src/PlaneScript.client.luau
luau
.luau
function CreatePlane() local m = Instance.new("Model") m.Name = "PaperPlane" script.Parent.Handle:clone().Parent = m return m end function SetHandleTransparency(amt) script.Parent.Handle.Transparency = amt end local dropped = false local equipped = false local gui = nil local player = nil local plane = nil scr...
1,287
Roblox/gear
Roblox-gear-28b88df/src/gear/103235041/src/CarpetScript.server.luau
luau
.luau
local Tool = script.Parent local Carpet = Tool.Handle function waitForChild(parent, instance) while parent:FindFirstChild(instance) == nil do print("Waiting for" .. instance) wait() end end waitForChild(Tool, "CarpetB1Weld") waitForChild(Tool, "CarpetB2Weld") waitForChild(Tool, "CarpetTailWeld") ...
2,075
Roblox/gear
Roblox-gear-28b88df/src/gear/103235041/src/FlightControl.client.luau
luau
.luau
local Tool = script.Parent local flightPower local flightSpin local flightHold local camSpeedZ = 60 local camSpeedX = 40 local forwards = false local back = false local left = false local right = false local unEquipped = false local movementHandlerCo local hover = -.1 local carpetActive ...
1,028
Roblox/gear
Roblox-gear-28b88df/src/gear/1033136271/src/LocalScript.client.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") ContentProvider = game:GetService("ContentProvider") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create Animations = {} ServerControl = Tool:...
994
Roblox/gear
Roblox-gear-28b88df/src/gear/1033136271/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...
139
Roblox/gear
Roblox-gear-28b88df/src/gear/1033136271/src/Script/FireBallScript/ParticleScript.server.luau
luau
.luau
--Made by Luckymaxer Particle = script.Parent Duration = script:WaitForChild("Duration") wait(Duration.Value) Particle.Enabled = false
31
Roblox/gear
Roblox-gear-28b88df/src/gear/1033136271/src/Script/FireBallScript/init.server.luau
luau
.luau
--Made by Luckymaxer FireBall = script.Parent Fire = FireBall:WaitForChild("Fire") Players = game:GetService("Players") Debris = game:GetService("Debris") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create ParticleScript = script:WaitForChild("ParticleScript") Creator = script:WaitForChild("Creator"...
604
Roblox/gear
Roblox-gear-28b88df/src/gear/1033136271/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") RunService = game:GetService("RunService") Sparks = Handle:WaitForChild("Sparks") Fire = Handle:WaitForChild("Fire") FireBallScript = script:WaitForChild("FireBallSc...
2,787
Roblox/gear
Roblox-gear-28b88df/src/gear/1033137155/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...
1,473
Roblox/gear
Roblox-gear-28b88df/src/gear/1033137155/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,110
Roblox/gear
Roblox-gear-28b88df/src/gear/1033137155/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,987
Roblox/gear
Roblox-gear-28b88df/src/gear/103338520/src/HealingOrbScript.client.luau
luau
.luau
local Tool = script.Parent local Orb = Tool.Handle local vCharacter local myTorso local myHumanoid Tool.Enabled = true local healAmount = 25 local infuseAnim local dropOrb local numberOfOrbs local greenFire function spray(key) if key:lower() == "q" and Tool.Enabled then dropOrb = Tool:FindFirstChild("DropOr...
616
Roblox/gear
Roblox-gear-28b88df/src/gear/103338520/src/Local Gui.client.luau
luau
.luau
local 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 an...
179
Roblox/gear
Roblox-gear-28b88df/src/gear/103338520/src/OrbScript.server.luau
luau
.luau
local Tool = script.Parent local Orb = Tool.Handle local vCharacter local myTorso local myHumanoid local screenGui local healAmount = 20 local orbClones = {} local numberOfOrbs local dropOrb = Tool:FindFirstChild("DropOrb") while dropOrb == nil do dropOrb = Tool:FindFirstChild("DropOrb") wait() end function c...
1,629
Roblox/gear
Roblox-gear-28b88df/src/gear/103358098/src/HandleSpoon/Script.server.luau
luau
.luau
script.Parent:remove()
5
Roblox/gear
Roblox-gear-28b88df/src/gear/103358098/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke ;D sp=script.Parent theface="http://www.roblox.com/asset?id=103838612" health=80 textureclosed="http://www.roblox.com/asset?id=103920391" textureopen="http://www.roblox.com/asset?id=103920471" storedface="" local debris=game:GetService("Debris") check=true sp.Equipped:connect(functi...
1,122
Roblox/gear
Roblox-gear-28b88df/src/gear/103359953/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 reloading=waitfor(sp,"Reloading") down=waitfor(sp,"MouseDown") runanim=waitfor(sp,"RunAnim") animspeed=.8 --lower number is slower equipspeed=.8 originalg...
1,035
Roblox/gear
Roblox-gear-28b88df/src/gear/103359953/src/Script.server.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent damage=35 -- +/- 10% damagewindow=.8 --after clicking, how long does the player have to hit the opponent wioth their weapon to deal damage swingrate=1.1 clashsounds={91154405,91154446,91154471,91154503,91154521} swooshsounds={91154708,91155889} hitsounds={911549...
2,507
Roblox/gear
Roblox-gear-28b88df/src/gear/1046322934/src/Script.server.luau
luau
.luau
local Players = game:GetService("Players") local Debris = game:GetService("Debris") local Tool = script.Parent local Handle = Tool.Handle local Character = nil local Player = nil local Humanoid = nil local Torso = nil local Debounce = false local HitConnection = nil local ToolEquipped = false Tool.Enabled = true loc...
2,106
Roblox/gear
Roblox-gear-28b88df/src/gear/1046323916/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,376
Roblox/gear
Roblox-gear-28b88df/src/gear/104642522/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...
1,472
Roblox/gear
Roblox-gear-28b88df/src/gear/104642522/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,987
Roblox/gear
Roblox-gear-28b88df/src/gear/104642550/src/DuckScript.server.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent followdistance=1.618 function waitfor(a,b) while a:FindFirstChild(b)==nil do a.ChildAdded:wait() end return a:FindFirstChild(b) end followtag=waitfor(sp,"FollowTag") bg=waitfor(sp,"BodyGyro") bp=waitfor(sp,"BodyPosition") mesh=waitfor(sp,"Mesh") meshids={10450299...
405
Roblox/gear
Roblox-gear-28b88df/src/gear/104642550/src/Script.server.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent numberofducks=7 check=true ducks={} debris=game:GetService("Debris") function createduckling(follow) local duck=Instance.new("Part") duck.Name="Duckling" duck.BrickColor=BrickColor.new("Cool yellow") local m=Instance.new("SpecialMesh") m.MeshId="http://www.roblox.c...
551
Roblox/gear
Roblox-gear-28b88df/src/gear/104642566/src/LocalScript/Script.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent timer=20 soundinterval=1 starttime=tick() attached=false debris=game:GetService("Debris") function makeconfetti() local cp=Instance.new("Part") cp.Name="Effect" cp.FormFactor="Custom" cp.Size=Vector3.new(0,0,0) cp.CanCollide=false cp.Transparency=1 ...
900
Roblox/gear
Roblox-gear-28b88df/src/gear/104642566/src/LocalScript/init.client.luau
luau
.luau
--Made by Stickmasterluke sp=script.Parent firerate=22 power=50 rate=1/30 debris=game:GetService("Debris") equipped=false check=true function onEquipped(mouse) equipped=true if mouse~=nil then if check then mouse.Icon="rbxasset://textures\\GunCursor.png" sp.Handle.Transparency=0 ...
483
Roblox/gear
Roblox-gear-28b88df/src/gear/104642700/src/Script.server.luau
luau
.luau
function WaitForChild(parent,child) while not parent:FindFirstChild(child) do print("waiting for " .. child) wait() end return parent[child] end local handle = WaitForChild(script.Parent,'Handle') local shhSound= WaitForChild(handle,'Shh') local HoldAni = WaitForChild(script.Parent,'holdAni') local Billboard = Wait...
1,129
Roblox/gear
Roblox-gear-28b88df/src/gear/10468797/src/_CamShake.client.luau
luau
.luau
local cam = game.Workspace.CurrentCamera for i = 1, 5 do wait() local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p --* CFrame.fromEulerAnglesXYZ(math.random(-10, 10)/10, math.random(-10, 10)/10, 0) local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude local ncf = CFrame.new(cam.Focus.p)*cam_r...
150
Roblox/gear
Roblox-gear-28b88df/src/gear/10468797/src/_EVT.client.luau
luau
.luau
script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() script.Parent.MouseClick.Value = not script.Parent.MouseClick.Value end) end)
36
Roblox/gear
Roblox-gear-28b88df/src/gear/10468797/src/_Main.client.luau
luau
.luau
--Credits: xLEGOx for the first creation of the hammer, Luckymaxer for fixing it, BLOX31 for the ideas and animation, gkku for visual design, sounds, and various fixes --player player = nil --selected selected = false homerunning = false whacking = false --save shoulders RSH, LSH = nil, nil anim = "none" --...
2,088
Roblox/gear
Roblox-gear-28b88df/src/gear/10468797/src/_SoundDetection.server.luau
luau
.luau
hammer = script.Parent.Handle local HomerunSound = Instance.new("Sound") HomerunSound.SoundId = "http://www.roblox.com/asset/?id=21343225" HomerunSound.Parent = hammer HomerunSound.Volume = 0.5 HomerunSound.Name = "Homerun" local WhackSound = Instance.new("Sound") WhackSound.SoundId = "http://www.roblox.com/asse...
201
Roblox/gear
Roblox-gear-28b88df/src/gear/10468915/src/SwordScript.server.luau
luau
.luau
--Rescripted by Luckymaxer --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl --Updated for R15 avatars by StarWars --Re-updated by TakeoHonorable Tool = script.Par...
1,680
Roblox/gear
Roblox-gear-28b88df/src/gear/10469910/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,376
Roblox/gear
Roblox-gear-28b88df/src/gear/10472779/src/BloxyColaScript.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...
288
Roblox/gear
Roblox-gear-28b88df/src/gear/1047877698/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 function onActivated() if Tool.Enabled == false then return end Tool.Enabled = false vCharacter = Tool.Parent myTorso = vCharacter:FindFirstChild("Torso") or vCharacter:...
239
Roblox/gear
Roblox-gear-28b88df/src/gear/10510024/src/Old.server.luau
luau
.luau
-------- OMG HAX r = game:service("RunService") local damage = 15 local slash_damage = 15 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "http://www.roblox.com/asset/?id=10548112" SlashSound.Parent = sword SlashSound.Volume = 1 ...
685
Roblox/gear
Roblox-gear-28b88df/src/gear/10510024/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,066
Roblox/gear
Roblox-gear-28b88df/src/gear/105179506/src/FlameStaffScript/init.client.luau
luau
.luau
-------------------- --| WaitForChild |-- -------------------- -- 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] e...
4,314
Roblox/gear
Roblox-gear-28b88df/src/gear/105189286/src/FurnoToolScript/init.client.luau
luau
.luau
----------------- --| Constants |-- ----------------- local DAMAGE = 55 local SWORD_COOLDOWN = 0.5 -------------------- --| WaitForChild |-- -------------------- -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: parent is nil") ...
1,561
Roblox/gear
Roblox-gear-28b88df/src/gear/105189783/src/SummonOnce/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,415
Roblox/gear
Roblox-gear-28b88df/src/gear/105189783/src/SummonOnce/init.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local PET_ID = 105428829 local AI_SCRIPT_NAME = 'TelamonAi' -------------------- --| WaitForChild |-- -------------------- -- Waits for parent.child to exist, then returns it local function WaitForChild(parent, childName) assert(parent, "ERROR: WaitForChild: par...
425
Roblox/gear
Roblox-gear-28b88df/src/gear/105289761/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent swingspeed=1 debris=game:GetService("Debris") 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 onB...
705
Roblox/gear
Roblox-gear-28b88df/src/gear/105289761/src/SwordScript.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent r=game:service("RunService") debris=game:GetService("Debris") basedamage=1 fulldamage=9 lastattack=0 function waitfor(parent,name) while true do local child=parent:FindFirstChild(name) if child~=nil then return child end wait() end end Unsh...
981
Roblox/gear
Roblox-gear-28b88df/src/gear/105351503/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent originalgrip=CFrame.new(0,-.9,0) currentgrip=originalgrip swingspeed=1 debris=game:GetService("Debris") enabled=true function waitfor(parent,name) while true do local child=parent:FindFirstChild(name) if child~=nil then return child end ...
1,119
Roblox/gear
Roblox-gear-28b88df/src/gear/105351503/src/SwordScript.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent r=game:service("RunService") debris=game:GetService("Debris") anims={"RightSlash","LeftSlash","Stab1","Stab2"} basedamage=4 slashdamage=18 swingdamage=17 damage=basedamage sword=sp.Handle local UnsheathSound=Instance.new("Sound") UnsheathSound.SoundId="rbx...
672
Roblox/gear
Roblox-gear-28b88df/src/gear/105351545/src/LocalScript.client.luau
luau
.luau
--Made by Stickmasterluke local sp=script.Parent originalgrip=CFrame.new(0,-1.8,0) currentgrip=originalgrip swingspeed=1 debris=game:GetService("Debris") enabled=true function waitfor(parent,name) while true do local child=parent:FindFirstChild(name) if child~=nil then return child end...
1,120
Roblox/gear
Roblox-gear-28b88df/src/gear/105351545/src/SwordScript.server.luau
luau
.luau
--Stickmasterluke sp=script.Parent r=game:service("RunService") debris=game:GetService("Debris") anims={"RightSlash","LeftSlash","LeftSwingFast","RightSwingFast","OverHeadSwing"} basedamage=3 slashdamage=11 swingdamage=17 damage=basedamage sword=sp.Handle local UnsheathSound=Instance.new("So...
679
Roblox/gear
Roblox-gear-28b88df/src/gear/105351572/src/Local Gui.client.luau
luau
.luau
--Made by Luckymaxer local Tool = script.Parent local Equip local EquipTime local Hold local Swing local SwingTime local Humanoid = nil function SetAnimation(Animation, Boolean, FadeWeight, Time, Speed) if Animation ~= nil and Animation:IsA("AnimationTrack") then return (Boolean and Animation:Play(FadeW...
365
Roblox/gear
Roblox-gear-28b88df/src/gear/105351572/src/SwordScript/SkeletonScript.server.luau
luau
.luau
--Made by Stickmasterluke --Zombie artificial stupidity script --(Modified for skeletons) sp=script.Parent lastattack=0 nextrandom=0 --nextsound=0 nextjump=0 chasing=false variance=4 damage=11 attackrange=4.5 sightrange=60 runspeed=18 wonderspeed=8 healthregen=false colors={"Sand red","Dusty Rose","Medium blue","Sa...
2,322
Roblox/gear
Roblox-gear-28b88df/src/gear/105351572/src/SwordScript/init.server.luau
luau
.luau
--Made by Luckymaxer function WaitForChild(Parent, Child) while Parent:findFirstChild(Child) == nil do Parent.ChildAdded:wait() end return Parent:findFirstChild(Child) end local Tool = script.Parent local Sword = WaitForChild(Tool, "Handle") local Damage = 7 local Kills = 0 local SkeletonSpawnRadius...
1,222
Roblox/gear
Roblox-gear-28b88df/src/gear/105351720/src/Launcher/ProjectileScript/ProjectileManager.server.luau
luau
.luau
--Made by Luckymaxer Model = script.Parent Players = game:GetService("Players") Debris = game:GetService("Debris") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create Effects = {} Removing = false Values = {} for i, v in pairs(script:GetChildren()) do if string.find(string.lower(v.ClassName), string...
727
Roblox/gear
Roblox-gear-28b88df/src/gear/105351720/src/Launcher/ProjectileScript/init.server.luau
luau
.luau
--Rescripted by Luckymaxer Projectile = script.Parent Players = game:GetService("Players") Debris = game:GetService("Debris") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create BaseUrl = "http://www.roblox.com/asset/?id=" Creator = Projectile:WaitForChild("Creator") ProjectileManager = script:WaitF...
1,918
Roblox/gear
Roblox-gear-28b88df/src/gear/105351720/src/Launcher/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...
2,073
Roblox/gear
Roblox-gear-28b88df/src/gear/105351720/src/LocalScript.client.luau
luau
.luau
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") RunService = game:GetService("RunService") ContentProvider = game:GetService("ContentProvider") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create Ani...
1,262
Roblox/gear
Roblox-gear-28b88df/src/gear/105351748/src/Launcher/Rocket.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local BLAST_RADIUS = 6 local BLAST_PRESSURE = 750000 -- Rocket will fly through things named these local ROCKET_IGNORE_LIST = {rocket = 1, handle = 1, effect = 1, water = 1} --NOTE: Keys must be lowercase, values must evaluate to true -------------------- --| Wai...
723
Roblox/gear
Roblox-gear-28b88df/src/gear/105351748/src/Launcher/aniScript/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...
200
Roblox/gear
Roblox-gear-28b88df/src/gear/105351748/src/Launcher/init.server.luau
luau
.luau
----------------- --| Constants |-- ----------------- local COOLDOWN = 1 -- Seconds until tool can be used again -- RocketPropulsion Fields local TARGET_RADIUS = 5 local MAX_SPEED = 75 local MAX_TORQUE = Vector3.new(4e6, 4e6, 0) local MAX_THRUST = 50000 local THRUST_P = 500 local THRUST_D = 50000 local TARGET_OVERSH...
2,444
Roblox/gear
Roblox-gear-28b88df/src/gear/105430216/src/AnimationScript/init.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 StartAnim = WaitForChild(...
421