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/51757126/src/AnimateScript.client.luau | luau | .luau | local Tool = script.Parent
local Bracer = Tool.Handle
local dualAnim
local vCharacter
function onActivatedLocal()
while Tool.Enabled == false do wait() end
vCharacter = Tool.Parent
myHumanoid = vCharacter:FindFirstChild("Humanoid")
if myHumanoid == nil then
return
end
dualAnim =... | 168 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757126/src/BracerScript.server.luau | luau | .luau | local Tool = script.Parent
local Bracer = Tool.Handle
Tool.Enabled = true
local leftBracer
local vCharacter
local damage = 20
local connection
function tagHumanoid(humanoid, player)
if humanoid then
creatorTag = Instance.new("ObjectValue")
creatorTag.Value = player
creatorTag.Name = ... | 1,122 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757158/src/BombScript.server.luau | luau | .luau | wait(0.5)
Tripmine = script.Parent
Tripmine.Transparency = 0.9
boom = Instance.new("Sound")
boom.Parent = Tripmine
boom.Volume = 1
boom.SoundId = "http://www.roblox.com/asset/?id=51753289"
boom.Name = "boom"
wait(1.5)
local humanoids = {}
local mineAOE = Vector3.new(10.0, 10.0, 10.0)
local connection
--Tri... | 536 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757158/src/TripmineScript.server.luau | luau | .luau | local Tool = script.Parent
local Tripmine = Tool.Handle
Tool.Enabled = true
local vCharacter
local tripmineClone
function onActivated()
if Tool.Enabled == false then
return
end
Tool.Enabled = false
vCharacter = Tool.Parent
myTorso = vCharacter:FindFirstChild("Torso") or vCharacter:FindFirstChild("UpperTor... | 300 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757162/src/BerserkerScript.server.luau | luau | .luau | local vCharacter = script.Parent
local Tool = vCharacter:findFirstChild("Korblox Sword")
myHumanoid = vCharacter:findFirstChild("Humanoid")
if myHumanoid then
myHumanoid:TakeDamage(10)
end
local berserkTime = 12
if myHumanoid ~= nil then
if Tool then
Tool.SlashDamage.Value = 32
Tool.LungeDamage.Value ... | 385 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757162/src/LocalSwordScript.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
function onKeyDown(key)
if key:lower() == "x" then
vCharacter = Tool.Parent
myHumanoid = vCharacter:findFirstChild("Humanoid")
if myHumanoid ~= nil and myHumanoid.Health > 30 then
berserkScript = vCharacter:FindFirstChild("BerserkerS... | 271 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51757162/src/SwordScript.server.luau | luau | .luau | -- PIERCING SWORD --
r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local vCharacter
local damage = 10
local slash_damage = Tool.SlashDamage
local lunge_damage = Tool.LungeDamage
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordsla... | 1,086 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51760061/src/DaggerScript.server.luau | luau | .luau | r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local damage = 14
local slash_damage = 18
local lunge_damage = 24
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
local Lung... | 1,012 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51760061/src/ZombieScript/ActionScript.server.luau | luau | .luau | zombie = script.Parent
local zombieHumanoid = zombie.Humanoid
omnom = Instance.new("Sound")
omnom.Parent = zombie
omnom.Volume = 1
omnom.SoundId = "http://www.roblox.com/asset/?id=35971877"
omnom.Name = "Omnomnom"
if zombieHumanoid then
zombieHumanoid.MaxHealth = 250
zombieHumanoid.Health = 250
wait(0.25)
z... | 558 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51760061/src/ZombieScript/Animate.server.luau | luau | .luau | function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then return child end
while true do
child = parent.ChildAdded:wait()
if child.Name==childName then return child end
end
end
-- ANIMATION
-- declarations
local Figure = sc... | 1,486 |
Roblox/gear | Roblox-gear-28b88df/src/gear/51760061/src/ZombieScript/init.server.luau | luau | .luau | local zombie
local zombieOwner
local target = script:FindFirstChild("Target")
print(target.Value)
local unAnchoredParts = {}
function offsetModelBy(model, offset)
local childs = model:GetChildren()
for i = 1, #childs do
if childs[i]:IsA("BasePart") then
childs[i].CFrame = childs[i].CFrame + offset... | 581 |
Roblox/gear | Roblox-gear-28b88df/src/gear/517827255/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
UserInputService = game:GetService("UserInputService")
Animations = {}
Remotes = Tool:WaitForChild("Remotes")
ServerControl = Remotes:WaitForChild("ServerControl")
ClientControl = Remotes:WaitForChild... | 748 |
Roblox/gear | Roblox-gear-28b88df/src/gear/517827255/src/MotorizeGrip.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
function CheckIfAlive()
return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
end
function Equipped()
Ch... | 459 |
Roblox/gear | Roblox-gear-28b88df/src/gear/517827255/src/Script.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Fire = Handle:WaitForChild("Fire")
BaseUrl = "http://www.roblox.com/asset/?id="
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Materi... | 2,942 |
Roblox/gear | Roblox-gear-28b88df/src/gear/517827962/src/Script/AIScript/init.server.luau | luau | .luau | --Made by Luckymaxer
Figure = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
Functions = require(script:WaitForChild("Functions"))
LastMove = 0
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Material = ... | 2,554 |
Roblox/gear | Roblox-gear-28b88df/src/gear/517827962/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")
InsertService = game:GetService("InsertService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be ... | 2,242 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52180858/src/LocalScript.client.luau | luau | .luau | -- HACKY SACK UMG --
local Tool = script.Parent
local HackySack = Tool.Handle
local vCharacter
local hackyAnim
local hackySound
local sackClone
local float = Instance.new("BodyForce")
float.force = Vector3.new(0.0, HackySack:GetMass() * 196.1, 0.0)
Tool.Enabled = true
function onActivated()
... | 995 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52180863/src/DanceScript/init.client.luau | luau | .luau | local vCharacter = script.Parent
local myHumanoid = vCharacter:findFirstChild("Humanoid")
local danceAnim
anim = script:findFirstChild("FluteDance")
while anim == nil do
anim = script:FindFirstChild("FluteDance")
wait()
end
print("Found Anim")
if myHumanoid then
print("Playing Anim")
wait(1.0... | 126 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52180863/src/FluteScript.client.luau | luau | .luau | -- FLUTE UMG --
local Tool = script.Parent
local Flute = Tool.Handle
local vCharacter
local fluteSound
local fluteAnim
Tool.Enabled = true
fluteAOE = Vector3.new(15, 15, 15)
function onActivated()
if Tool.Enabled == false then
return
end
Tool.Enabled = false
vCharacter = Tool.Paren... | 629 |
Roblox/gear | Roblox-gear-28b88df/src/gear/522586178/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")
InsertService = game:GetService("InsertService")
BunnyModel = InsertService:LoadAsset(522482028)
Bunny = BunnyModel:GetChildren()[1]:Clone()
Debris:AddItem(BunnyModel... | 2,592 |
Roblox/gear | Roblox-gear-28b88df/src/gear/522587921/src/Script/StunScript.client.luau | luau | .luau | --Made by Luckymaxer
wait()
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
Player = Players.LocalPlayer
Character = Player.Character
Humanoid = Character:FindFirstChild("Humanoid")
function ShakeCam()
local Camera = game:G... | 503 |
Roblox/gear | Roblox-gear-28b88df/src/gear/522587921/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")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a stri... | 3,028 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52625728/src/MouseIcon.client.luau | luau | .luau | --Made by Luckymaxer
Mouse_Icon = "rbxasset://textures/GunCursor.png"
Reloading_Icon = "http://www.roblox.com/asset/?id=1088199"
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 = ToolMo... | 144 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52625728/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... | 1,681 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52625744/src/BasketScript.server.luau | luau | .luau | local Tool = script.Parent
local Basket = Tool.Handle
local vCharacter
Tool.Enabled = true
insert = game:GetService("InsertService")
local assets = {16726030, 29939404, 10472779, 22787248, 16214845, 15932306, 15177716}
local assetModels = {}
for i, v in ipairs(assets) do
local item = insert:LoadAsset(v)
table.in... | 423 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52627419/src/BallScript.client.luau | luau | .luau | r = game:GetService("RunService")
local debris = game:GetService("Debris")
local Tool = script.Parent
local Ball = Tool.Handle
local vCharacter
Tool.Enabled = true
local ballAnim
local ballClone
local float = Instance.new("BodyForce")
float.force = Vector3.new(0.0, Ball:GetMass() * 196.1, 0.0)
... | 975 |
Roblox/gear | Roblox-gear-28b88df/src/gear/527383094/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")
InsertService = game:GetService("InsertService")
GhostKnightModel = InsertService:LoadAsset(522482028)
GhostKnight = GhostKnightModel:GetChildren()[1]:Clone()
Debris:... | 2,593 |
Roblox/gear | Roblox-gear-28b88df/src/gear/527384527/src/FlyScript.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool.Handle
Players = game:GetService("Players")
Debris = game:GetService("Debris")
ToolEquipped = false
Remotes = Tool:WaitForChild("Remotes")
ServerControl = (Remotes:FindFirstChild("ServerControl") or Instance.new("RemoteFunction"))
ServerControl.Name = "Server... | 1,426 |
Roblox/gear | Roblox-gear-28b88df/src/gear/527384527/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 = {}
AnimationsBin = Tool:WaitForChild("Animations")
Anims = {
R6Idle = {Animation = AnimationsBin:WaitForChild("R6Idle"), FadeTime = nil, Weigh... | 1,502 |
Roblox/gear | Roblox-gear-28b88df/src/gear/52938493/src/SwordScript.server.luau | luau | .luau | -- INFUSION BLADE
-- Does upto 48 Damage per hit if health gets lower --
-- Lunge is 30 damage
-- Slash is 24 damage
r = game:service("RunService")
local Sword = script.Parent.Handle
local Tool = script.Parent
local damage = Tool.Damage
local tempDamage = 20
local slash_damage
local lunge_damage
local vChar... | 1,183 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130850/src/ShillelaghScript.client.luau | luau | .luau | -- Shillelagh --
-- Whack Animation, time 0.5 seconds
-- Whack Sound, 0.4 seconds
-- Handle to the game service, in case we need to get the time
r = game:service("RunService")
-- normal damage, when the Shillelagh touches a humanoid object
local damage = 8
-- Whack damage
local whack_damage = 12
... | 1,304 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130867/src/LocalStarScript.client.luau | luau | .luau | local Tool = script.Parent
local Star = Tool.Handle
local starActive = Tool:FindFirstChild("StarActive")
local starClone
local vCharacter
local myTorso
local duration = 20
local debris = game:GetService("Debris")
local bav = Instance.new("BodyAngularVelocity")
bav.P = 50000
bav.maxTorque = Vector3.new(0, 0, 0)
ba... | 1,274 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130867/src/StarScript.server.luau | luau | .luau | -- Handle to the tool
local Tool = script.Parent
print("IN SCRIPT")
-- Culling Service
local debris = game:GetService("Debris")
local r = game:service("RunService")
Tool.Enabled = true
local starActive = Tool:FindFirstChild("StarActive")
function tagHumanoid(humanoid, player)
if humanoid ~= nil then
crea... | 998 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130887/src/HunkScript.server.luau | luau | .luau | local Tool = script.Parent
local Potion = Tool.Handle
Tool.Enabled = true
local vCharacter = Tool.Parent
local insertTable = {}
local headTable = {}
local torsoTable = {}
local headColor
local co
local biteSound
local hunkActive = Tool:FindFirstChild("HunkActive")
-- get hunk
hunkLeftArm = gam... | 1,974 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130896/src/Local Gui.client.luau | luau | .luau | Tool = script.Parent
local stillEquipped = false
function onEquippedLocal(mouse)
stillEquipped = true
if mouse == nil then
print("Mouse not found")
return
end
while stillEquipped do
print("Setting Mouse to go")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
while Tool.Enabled and stillEquipped do
... | 182 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130896/src/Script/VoodooScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
Tag = script:FindFirstChild("Debuff")
Creator = script:FindFirstChild("creator")
Debris = game:GetService("Debris")
Duration = 5
fu... | 442 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53130896/src/Script/init.server.luau | luau | .luau | -- Voodoo Doll
-- Can cast FireBall and IceBall
--Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Woohoo = Tool:WaitForChild("Woohoo")
VoodooScript = script:WaitForChild("VoodooScript")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Damage = 25
Billboar... | 1,508 |
Roblox/gear | Roblox-gear-28b88df/src/gear/532254782/src/Script/DeathEffect/init.server.luau | luau | .luau | --Made by Luckymaxer
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
Debris = game:GetService("Debris")
WindDirection = script:FindFirstChild("WindDirection")
Force = script:FindFirstChild("Force")
Parts = {}
BaseColor = BrickColor.new("Royal purple")
Color = BaseColor.Color
Gravity = 19... | 1,363 |
Roblox/gear | Roblox-gear-28b88df/src/gear/532254782/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Fire = Handle:WaitForChild("Fire")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error... | 4,423 |
Roblox/gear | Roblox-gear-28b88df/src/gear/535104095/src/SwordScript/DeathEffect/init.server.luau | luau | .luau | --Made by Luckymaxer
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
Debris = game:GetService("Debris")
WindDirection = script:FindFirstChild("WindDirection")
Force = script:FindFirstChild("Force")
Parts = {}
BaseColor = BrickColor.new("Pastel blue")
Color = BaseColor.Color
Gravity = 196... | 1,364 |
Roblox/gear | Roblox-gear-28b88df/src/gear/535104095/src/SwordScript/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")
DeathEffect = script:WaitForChild("DeathEffect")
DamageValues = {
BaseDamage = 13,
SlashDamage = 18,
LungeDamage = 23
}... | 1,468 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623248/src/AnimateScript.client.luau | luau | .luau | local Tool = script.Parent
local Hammer = Tool.Handle
local raiseAnim
local vCharacter
local co
local removeCo
local clonedSgs = {}
sg = Instance.new("ScreenGui")
sg.Name = "DARK"
image = Instance.new("ImageLabel")
image.Image = "http://www.roblox.com/asset/?id=53620870"
image.Active = true
i... | 544 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623248/src/HammerScript.server.luau | luau | .luau | -- Damage = 12, Swing Damage = 18
-- 17% chance to destroy a part entirely.
-- If the part is a torso, or head, i-i-i-insta-kill
local Tool = script.Parent
local Hammer = Tool.Handle
Tool.Enabled = true
local damage = 18
local HammerSound
local vCharacter
function blow(hit)
if hit.Pare... | 548 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623295/src/GunScript.server.luau | luau | .luau | local Tool = script.Parent
local Spidergun = Tool.Handle
Tool.Enabled = true
local debris = game:GetService("Debris")
part = Instance.new("Part")
part.Size = Vector3.new(4, 0.2, 4)
part.Transparency = 1.0
part.CanCollide = false
web = Instance.new("Decal")
web.Texture = "http://www.roblox.com/asset/?id=535921... | 971 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623295/src/WebScript.server.luau | luau | .luau | local vChar = script.Parent
local torso = vChar:FindFirstChild("Torso") or vChar:FindFirstChild("UpperTorso")
local humanoid = vChar:FindFirstChild("Humanoid")
local bv = torso:FindFirstChild("Rebound")
local spider = vChar:FindFirstChild("spider")
local count = 1
function pin(hit)
if hit.Parent and hit:IsA("BaseP... | 259 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623322/src/JudgementScript.server.luau | luau | .luau | -- SWORD OF JUDGEMENT --
-- HEAVY DAMAGE --
-- ACTIVE ABILITIES --
r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local damage = 16
local slash_damage = 24
local lunge_damage = 32
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset:... | 1,028 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623322/src/JudgementScript2/HackScript.server.luau | luau | .luau | local Tool = script.Parent
pos = Tool:FindFirstChild("Pos")
judgementBall = game.Workspace:FindFirstChild("JUDGEMENT")
while judgementBall == nil do
judgementBall = game.Workspace:FindFirstChild("JUDGEMENT")
wait(1.0)
end
bv = Instance.new("BodyVelocity")
bv.Name = "Movement"
bv.P = 100000
bv.maxFo... | 129 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623322/src/JudgementScript2/init.server.luau | luau | .luau | -------------------------------- Judgement Sword -------------------------------------
-- Has two abilities
-- Call for Judgement --
-- Will of Judgement --
--
local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
local myHumanoid
-- Animations
local raiseAnim
local judgeAnim
local tempHuman... | 1,996 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623322/src/LocalScript.client.luau | luau | .luau | local animations = {}
local savedHumanoid = nil
local tool = script.Parent
local uis = game:GetService'UserInputService'
local localplayer = game:GetService'Players'.LocalPlayer
local mouse = localplayer:GetMouse()
local uis, cas = game:GetService'UserInputService', game:GetService'ContextActionService'
--
--
functi... | 679 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623350/src/HammerScript.server.luau | luau | .luau | -- Swings fast, does great damage
-- Can cast mark of the damned, to summon a skeleton upon a frag
-- Lasts 150 seconds
local Tool = script.Parent
local Hammer = Tool.Handle
local debris = game:GetService("Debris")
Tool.Enabled = true
local vCharacter
local myTorso
local hammerSound
local skeletonVa... | 1,738 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623350/src/LocalHammerScript.client.luau | luau | .luau | -- INACTIVE ICONS --
-- 53557574 53557657 53557672 53557706
-- ACTIVE ICONS --
-- 53603082 53603120 53603150 53603172
-- Need to do a better job at swapping icons --
local Tool = script.Parent
local Hammer = Tool.Handle
local vCharacter
local myHumanoid
local hammerAnim
local stalkAnim
local skeletonValue = To... | 2,302 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53623350/src/VoidScript.server.luau | luau | .luau | local vCharacter = script.Parent
local myHumanoid = vCharacter:FindFirstChild("Humanoid")
local duration = 4
if myHumanoid then
while duration > 0 do
myHumanoid:TakeDamage(8)
duration = duration - 1
wait(1)
end
end
wait(1.0)
script:Remove()
| 77 |
Roblox/gear | Roblox-gear-28b88df/src/gear/536288166/src/Script.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
ToolEquipped = false
function CheckIfAlive()
return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
end
f... | 192 |
Roblox/gear | Roblox-gear-28b88df/src/gear/537374622/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,389 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53917288/src/Local Gui.client.luau | luau | .luau | Tool = script.Parent
local stillEquipped = false
function onEquippedLocal(mouse)
stillEquipped = true
if mouse == nil then
print("Mouse not found")
return
end
while stillEquipped do
print("Setting Mouse to go")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
while Tool.Enabled and stillEquipped do
... | 183 |
Roblox/gear | Roblox-gear-28b88df/src/gear/53917288/src/Walrus Script.server.luau | luau | .luau | -- New plushie, script based on that for RobotCompanion
-- Set parent
local Tool = script.Parent
-- Handle to walrus
local Walrus = Tool.Handle
-- And initial position
local standing_on_head = false;
-- And enabled variable.
Tool.Enabled = true
-- Then initialize sounds
local standingSound1 = Tool:FindFirstChild("Wal... | 870 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130537/src/ClamScript.server.luau | luau | .luau | -- Code for a Clam Trap, based on code for the Korblox Tripmine.
-- Variables for the tool and its handle
local Tool = script.Parent
local Clam = Tool.Handle
Tool.Enabled = true
local myCharacter
local numberOfTraps
local screenGui
local buzzer = Tool.NoTrapsBuzzer
local clamCFrame
-- Runs when too... | 1,058 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130543/src/EelSword LS.client.luau | luau | .luau | -- Script for eel sword, based on Mahjong Sword's example code.
-- Game service, which allows us to get the time
local runServ = game:service("RunService")
-- For eel sword stab is presumably more powerful than slash, since it lets the eel shock!
-- (Also it takes way more time due to our double-click detection... | 2,312 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130552/src/StarPoisonScript.server.luau | luau | .luau | local char = script.Parent
local humanoid = char:FindFirstChild("Humanoid")
local duration = 5
if char and humanoid then
player = game.Players:GetPlayerFromCharacter(char)
if player then
sg = Instance.new("ScreenGui")
sg.Name = "SG"
sg.Parent = player.PlayerGui
image = Instance.new("ImageLabel")
image.N... | 202 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130552/src/StarfishGunScript.server.luau | luau | .luau | local Tool = script.Parent
local Gun = Tool.Handle
local vCharacter
local myTorso
local gunSound
local debris = game:GetService("Debris")
Tool.Enabled = true
local starfish = Instance.new("Part")
starfish.Size = Vector3.new(0.5, 0.5, 0.5)
starfish.FormFactor = 3
starfish.CanCollide = false
starfish.Shape = "Block"... | 817 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130559/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote",10)
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("R... | 294 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130559/src/Server/QuakeScript/CameraShake.client.luau | luau | .luau | --Made by Luckymaxer
Camera = game:GetService("Workspace").CurrentCamera
Rate = (1 / 60)
Shake = {Movement = 40, Rate = 0.001}
local CoordinateFrame = Camera.CoordinateFrame
local Focus = Camera.Focus
while true do
local CameraRotation = Camera.CoordinateFrame - Camera.CoordinateFrame.p
local CameraScroll = (Coor... | 185 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130559/src/Server/QuakeScript/TripScript.client.luau | luau | .luau | --Made by Luckymaxer
--Updated for R15 avatar by StarWars
Character = script.Parent
Humanoid = Character:FindFirstChildOfClass("Humanoid")
if Humanoid then
Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
Humanoid.Change... | 110 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54130559/src/Server/QuakeScript/init.server.luau | luau | .luau | local Creator,Center = script:WaitForChild("Creator").Value,script:WaitForChild("Center").Value
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 Servi... | 2,079 |
Roblox/gear | Roblox-gear-28b88df/src/gear/542184488/src/Script.server.luau | luau | .luau | --Made by Luckymaxer
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 = "... | 502 |
Roblox/gear | Roblox-gear-28b88df/src/gear/542755101/src/Script/Functions.luau | luau | .luau | --Made by Luckymaxer
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
Functions = {
CheckTableForInstance = (function(Table, Instance)
for i, v in pairs(Table) do
if v == Instance then
return true
end
end
return false
end),
CheckTableForStrin... | 857 |
Roblox/gear | Roblox-gear-28b88df/src/gear/542755101/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... | 3,929 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694311/src/GemSword LS.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local myCharacter
local myPlayer
local myHumanoid
local myTorso
local myRightArm
local myRightGrip
local debris = game:GetService("Debris")
local runServ = game:GetService("RunService")
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "r... | 1,119 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694324/src/SawSlowScript.server.luau | luau | .luau | Humanoid = script.Parent:FindFirstChild("Humanoid")
if not Humanoid then script:Remove() end
for i = 1, 5 do
Humanoid:TakeDamage(4)
Humanoid.WalkSpeed = Humanoid.WalkSpeed - 2
wait(1)
end
Humanoid.WalkSpeed = 16
script:Remove()
| 77 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694324/src/SawSword LS.client.luau | luau | .luau | math.randomseed(tick())
local Tool = script.Parent
local Sword = Tool.Handle
local myCharacter
local myPlayer
local myHumanoid
local myTorso
local myRightArm
local myRightGrip
local debris = game:GetService("Debris")
local runServ = game:GetService("RunService")
local SlashSound = Instance.new("Sound... | 1,463 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/CheckForAllSeasons.server.luau | luau | .luau | local Tool = script.Parent
function removeSwords(itemsToRemove)
for i = 1, #itemsToRemove do
itemsToRemove[i]:Remove()
end
end
function createAllSeasonSword(summerSword)
summerSword.GripPos = Vector3.new(0, 0, -2.5)
sword = summerSword.Handle
swordMesh = sword.Mesh
swordMesh.MeshId = "http://ww... | 640 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/RegenScript.server.luau | luau | .luau | Tool = script.Parent
vCharacter = Tool.Parent
myHumanoid = vCharacter:FindFirstChild("Humanoid")
if Tool.Name == "SummerSword" and myHumanoid then
while true do
if myHumanoid then
if (myHumanoid.Health + 2) <= myHumanoid.MaxHealth then
myHumanoid.Health = myHumanoid.Health + 2
end
end
... | 184 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/SeasonsAnimateScript.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local iceCo
local natureCo
local vCharacter
local myTorso
local myHumanoid
function wait12()
wait(12)
end
function wait20()
wait(20)
end
function letsDoThis(key)
if key:lower() == "x" then
print("pRessed x")
formIce = Tool:FindFirstC... | 505 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/SeasonsSwordScript.server.luau | luau | .luau | -- ALL SEASONS --
-- OH YA BROSKI --
r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local damage = 22
local slash_damage = 30
local lunge_damage = 36
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
Slas... | 1,545 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/SummerAnimateScript.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
local myHumanoid
local myTorso
local slashAnim
local waveAnim
local co
local wave
local waveDamage = 15
function wait25()
wait(25)
end
function blow(hit)
if hit.Parent then
humanoid = hit.Parent:FindFirstChild("Huma... | 941 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694329/src/SummerSwordScript.server.luau | luau | .luau | -- Can summon leaves to do massive amounts of damage and blast enemies away
-- slash has wider reach
-- 12% chance to heal yourself when doing damage
-- +2 hp regeneration per second
local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
local myTorso
Tool.Enabled = true
local slashSoun... | 613 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694334/src/LocalSwordScript.client.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local vCharacter
local thornActive
local greenFire
local co
local sparkle
function wait20()
wait(7.5)
thornActive = Tool:FindFirstChild("ThornActive")
if thornActive then thornActive.Value = 0 end
if sparkle then sparkle:Remove() end
wai... | 342 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694334/src/SwordScript.server.luau | luau | .luau | r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local damage = 14
local slash_damage = 18
local lunge_damage = 20
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
loc... | 1,088 |
Roblox/gear | Roblox-gear-28b88df/src/gear/54694334/src/ThornScript.server.luau | luau | .luau | local vCharacter = script.Parent
local myTorso = vCharacter:FindFirstChild("Torso")
local myHumanoid = vCharacter:FindFirstChild("Humanoid")
print(myTorso)
local thorn
local thornWeld
local duration = 3.5
if myTorso and myHumanoid then
myHumanoid.WalkSpeed = 0
thorn = Instance.new("Part")
thorn.Form... | 406 |
Roblox/gear | Roblox-gear-28b88df/src/gear/548019247/src/SwordScript.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")
DamageValues = {
BaseDamage = 5,
SlashDamage = 8,
LungeDamage = 12
}
Damage = DamageValues.BaseDamage
Grips = {
Up = ... | 1,120 |
Roblox/gear | Roblox-gear-28b88df/src/gear/549914420/src/Script/HitScript.server.luau | luau | .luau | --Made by Luckymaxer
Part = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Creator = Part:WaitForChild("Creator")
Damage = Part:WaitForChild("Damage")
FlyingSound = Part:FindFirstChild("Flying")
if FlyingSound then
FlyingSound:Play()
end
function GetCreator()
return (((Crea... | 401 |
Roblox/gear | Roblox-gear-28b88df/src/gear/549914420/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")
BaseUrl = "http://www.roblox.com/asset/?id="
HitScript = script:WaitForChild("HitScript")
Sounds = {
Flying = Handle:WaitForChild("Flying"),
}
ToolEquipped = fals... | 885 |
Roblox/gear | Roblox-gear-28b88df/src/gear/549915884/src/Script.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
WatchModule = require(191816425)
ToolEquipped = false
Tool.Enabled = true
function Activated()
if not Tool.Enabled or not CheckIfAlive() then
return
end
Watch... | 312 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55027987/src/ConfigurationLocal.client.luau | luau | .luau | -- general functions
function waitForProperty(instance, name)
while not instance[name] do
instance.Changed:wait()
end
end
function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end
local RbxGui
if LoadLibrary then
RbxGui = LoadLibrary("Rbx... | 9,261 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/BasePlateGuide/init.client.luau | luau | .luau | local pointDirection = nil
local tailLength = 2 -- 2 or 7
--local dSize = -.05 -- .01 or .005
local dSize = 0 -- because we want the targets to all be the same size (tail isn't larger anymore; just "ghost" effect)
local dTime = .04 --.025
-- old targetLock pic (square): 48972746
local targetLockSize = .2
... | 2,524 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/Readme.client.luau | luau | .luau | --[[
Stamper Tool v1.0.0
Welcome to the stamper tool readme!
Currently, this doc only exists to show the Stamper Tool Version!
]] | 43 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/StampGUI/StampGuiController.client.luau | luau | .luau | local stampGui = script.Parent
local insertPanel = stampGui.InsertPanel
local stamperPanel = stampGui.StamperPanel
local itemPreview = insertPanel.ItemPreview
function handleResize()
wait() -- neccessary to insure heartbeat happened
itemPreview.LargePreview.Size = UDim2.new(1,0,0,itemPreview.AbsoluteSize.X)... | 189 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/StampScript.client.luau | luau | .luau | -- basic functions
function waitForChild(instance, name)
while not instance:findFirstChild(name) do
instance.ChildAdded:wait()
end
end
----------------------------------------------------------------------------------------
-- Locals
local Tool = script.Parent
local Mouse
local mouseMoveCon
local mouseButton1Do... | 26,062 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/topHint/Add/init.client.luau | luau | .luau | -- This script's job is to destroy previous topHint instance (if exists) and clone and run a new _topHint script (naming it "topHint")
-- When this script is finished, it disables and resets itself.
function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
en... | 554 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/topHint/Delete.client.luau | luau | .luau | function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end
function waitForNoChild(instance, name)
while instance:FindFirstChild(name) do
instance.ChildRemoved:wait()
end
end
function waitForAnyChild(instance)
while not instance:GetChildre... | 320 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/topHint/_readme.client.luau | luau | .luau | --
-- Top Hint
--
-- * This is a string of text that's top-centered in the window. (White text on black background)
-- * It should be used for messages from the client, and never from the place creator.
--
-- FEATURES:
-- * Auto-hides previous messages before showing yours.
-- * Always centered, regardless... | 334 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55028088/src/topHint/_topHint/init.client.luau | luau | .luau | function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end
function waitForNoChild(instance, name)
while instance:FindFirstChild(name) do
instance.ChildRemoved:wait()
end
end
function waitForAnyChild(instance)
while not instance:GetChildre... | 555 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55192815/src/BlastScript.server.luau | luau | .luau | local fuseSound = Instance.new("Sound")
fuseSound.SoundId = "http://www.roblox.com/asset/?id=11565378"
fuseSound.Parent = script.Parent
fuseSound:Play()
local force = Instance.new("BodyForce")
local rocket = script.Parent
force.Parent = rocket
local colors = {Vector3.new(1,0,0), Vector3.new(0,1,0), Vector3.new(0,0,1)... | 1,277 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55192815/src/FireworksScript.server.luau | luau | .luau | local Tool = script.Parent
local Rocket = Tool.Handle
local vCharacter
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... | 274 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55194474/src/DragonSword LS/FireDamageScript.server.luau | luau | .luau | local FIRE_DAMAGE = 5
local hitCharacter = script.Parent
local hitHumanoid = hitCharacter:FindFirstChild("Humanoid")
local hitTorso = hitCharacter:FindFirstChild("Torso")
local Fire = Instance.new("Fire")
Fire.Size = 5
if hitTorso then Fire.Parent = hitTorso end
for i = 1, 5 do
wait(1)
if hitHumanoid... | 110 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55194474/src/DragonSword LS/init.client.luau | luau | .luau | -- Aspects of group damage are copied from / based heavily on the Trident's
math.randomseed(tick())
local Tool = script.Parent
local Sword = Tool.Handle
local TOUCH_DAMAGE = 5
local SLASH_DAMAGE = 10
local STAB_DAMAGE = 5
local FIRE_DAMAGE = 5
local CLOSE_RAGE_DAMAGE = 75
local FAR_RAGE_DAMAGE = 40
loca... | 5,515 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55194474/src/ShootScript.server.luau | luau | .luau | local Tool = script.Parent
local Sword = Tool.Handle
local myCharacter
local myPlayer
local myHumanoid
local Torso
local shotSound
local connection
local PROJECTILE_DAMAGE = 30
local FIRE_DAMAGE = 5
local debris = game:service("Debris")
-- Standard tagging and untagging functions for kill-countin... | 805 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55301897/src/BaseballBat LS.client.luau | luau | .luau | -- Baseball bat. No damage, so it can be used for non-violent games. Though the giant baseballs can still kill you
-- by knocking you off the stage.
-- Code for number-of-baseballs-used GUI modeled on / copied from the one for ClamTrap (Seashell Snare).
local Tool = script.Parent
local SwingAnim
local SwingS... | 1,397 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55301897/src/Projectile Script.server.luau | luau | .luau | math.randomseed(tick())
-- First make some standard variable declarations and checks
local Tool = script.Parent
local myCharacter = Tool.Parent
if not myCharacter then script:Remove() end
local myHumanoid = myCharacter:FindFirstChild("Humanoid")
local Torso = myCharacter:FindFirstChild("Torso")
if myHumanoid a... | 346 |
Roblox/gear | Roblox-gear-28b88df/src/gear/55301897/src/ResetBaseballNum.server.luau | luau | .luau | local Tool = script.Parent
local baseballsRemaining
function resetBaseballNumber(child)
if (child.Name == "Giant Baseball") then
baseballsRemaining = Tool:FindFirstChild("BaseballsRemaining")
if not baseballsRemaining then return end
baseballsRemaining.Value = baseballsRemaining.Value + 1
end
end
... | 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.