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/125013769/src/SwordScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Mesh = Handle:WaitForChild("Mesh")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
BaseUrl = "http://www.roblox.com/asset/?id="
Grips = {
Up = CFrame.new(0, 0, -1.... | 1,132 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013799/src/LocalGuiAndAnimations.client.luau | luau | .luau | local Tool = script.Parent;
local EquipAnim
local ShootAnim
function OnChanged(property, mouse)
if property == 'Enabled' then
if EquipAnim then EquipAnim:Stop() end
if Tool.Enabled == false then
ShootAnim:Play()
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
else
mouse.Icon = "rbxasset://textu... | 290 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013799/src/PelletScript.server.luau | luau | .luau | local debris = game:GetService("Debris")
local pellet = script.Parent
local startingDamage = 14
local damage = startingDamage
local LastHitCharacter
local CreatorTag = pellet:WaitForChild('creator')
function tagHumanoid(humanoid)
while humanoid:FindFirstChild('creator') do
humanoid.creator:Destroy()
end
local my... | 270 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013799/src/Slingshot.client.luau | luau | .luau | -- Waits for parent.child to exist, then returns it
local function WaitForChild(parent, childName)
assert(parent, "ERROR: WaitForChild: parent is nil")
while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
return parent[childName]
end
local Tool = script.Parent
local Handle = WaitForChild(Tool,... | 1,693 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013830/src/Client.client.luau | luau | .luau | --Rescripted by TakeoHonorable
local Tool = script.Parent
local MouseLoc = Tool:WaitForChild("MouseLoc",10)
function MouseLoc.OnClientInvoke()
return game:GetService("Players").LocalPlayer:GetMouse().Hit.p
end | 54 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013830/src/Server.server.luau | luau | .luau | --Rescripted by TakeoHonorable
local Tool = script.Parent
Tool.Enabled = true
local Handle = Tool:WaitForChild("Handle",10)
local MouseLoc = Tool:WaitForChild("MouseLoc",10)
local MyCharacter,MyHumanoid,MyPlayer
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
Debris = ... | 1,263 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013849/src/TaxiCar/Script.server.luau | luau | .luau | script.Parent.Parent = nil | 5 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125013849/src/TaxiSignScript.server.luau | luau | .luau | local TAXI_ASSET = 125896025
local PlayersService = Game:GetService('Players')
local DebrisService = Game:GetService('Debris')
local MyCharacter = nil
local MyTorso = nil
local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
--local Car = Game.Workspace:WaitForChild('TaxiCar'):Clone()
local Car = Game:... | 507 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12504077/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,641 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12547976/src/SandwichScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Updated for R15 avatars by StarWars
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Grips = {
Normal = CFrame.new(0.300000012, 0, 0, 0.217036337, 0, 0.976163626, 0, 1, -0, -0.976163507, 0, 0.217036366),
E... | 576 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12562390/src/Bomb.server.luau | luau | .luau | FuseSound = Instance.new("Sound")
FuseSound.SoundId = "http://www.roblox.com/asset/?id=11565378"
FuseSound.Parent = script.Parent
FuseSound:Play()
local force = Instance.new("BodyForce")
local shell = script.Parent
force.Parent = shell
local colors = {Color3.new(1,0,0), Color3.new(0,1,0), Color3.new(0,0,1)... | 651 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12562390/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 = ... | 270 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12562394/src/Sparklers1Script.server.luau | luau | .luau | local Tool = script.Parent;
enabled = true
local colors = {Color3.new(1,0,0), Color3.new(0,1,0), Color3.new(0,0,1), Color3.new(1,.5,0), Color3.new(0,.5,1)}
function onActivated()
if not enabled then
return
end
enabled = false
local spark = Tool.Handle:FindFirstChild("Sparkle")
if (spark =... | 250 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12562495/src/Bomb.server.luau | luau | .luau | FuseSound = Instance.new("Sound")
FuseSound.SoundId = "http://www.roblox.com/asset/?id=11565378"
FuseSound.Parent = script.Parent
FuseSound:Play()
local total_time = 5 -- seconds
local cur_time = 0
function update(frac)
script.Parent.Fuse.Color = Color3.new(1,1 - frac,0)
end
function blowUp()
local ... | 477 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1258015236/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 = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("... | 939 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1258015236/src/Script/ExplosionScript/ImageFirework.luau | luau | .luau | --Made by Luckymaxer
BasePart = Instance.new("Part")
BasePart.Transparency = 1
BasePart.Material = Enum.Material.Plastic
BasePart.Shape = Enum.PartType.Block
BasePart.TopSurface = Enum.SurfaceType.Smooth
BasePart.BottomSurface = Enum.SurfaceType.Smooth
BasePart.FormFactor = Enum.FormFactor.Custom
BasePart.Size = Vecto... | 15,317 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1258015236/src/Script/ExplosionScript/init.server.luau | luau | .luau | --Made by Luckymaxer
Firework = script.Parent
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
ImageFirework = require(script:WaitForChild("ImageFirework"))
BasePart = Create("Part"){
Shape = Enum.PartType.Block,
Material = Enum.Material.Plastic,
TopSurface = ... | 2,861 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1258015236/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
--Updated for R15 avatar by StarWars
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2... | 1,829 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1258015943/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local RunService = game:GetService("RunService")
local Tool = script.Parent
local Top = Tool:WaitForChild("Top")
local Handle = Tool:WaitForChild("Handle")
local Sound = Handle:WaitForChild("Noisemaker")
local Motor = Top:FindFirstChildOfClass("Motor6D")
local GearService = require(10751231... | 294 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859450/src/BallDropLocal/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... | 672 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859450/src/BallDropLocal/init.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local Player;
local Torso;
local Character;
local Humanoid;
local ANIM_Equip;
local ANIM_Throw;
local SOUND_Throw = Handle:WaitForChild('SOUND_Throw')
local RELOAD_TIME = 7
local RANGE = 200
local LastThrown = Tool:WaitForChild('LastThrown')
loca... | 1,136 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859450/src/PoleScript/BallDropScript/init.server.luau | luau | .luau | game.Debris:AddItem(script, 12)
local CreatorTag = script:WaitForChild('creator')
local Create = LoadLibrary('RbxUtility').Create
local Player = CreatorTag.Value
local SOUND_HitGround = script:WaitForChild('SOUND_HitGround')
local Location = script:WaitForChild('Target')
local spire = Create'Part'{
Anchored = tr... | 859 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859450/src/PoleScript/init.server.luau | luau | .luau | local Spear = script.Parent
local BallDropScript = script:WaitForChild('BallDropScript')
local Creator = BallDropScript:WaitForChild('creator')
local Player = Creator.Value
local DesiredTarget = BallDropScript:WaitForChild('Target')
local Character = Player.Character
local Fail = BallDropScript:WaitForChild('Fail')
... | 952 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859483/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
pr... | 185 |
Roblox/gear | Roblox-gear-28b88df/src/gear/125859483/src/Script.server.luau | luau | .luau | local HEAL_AMOUNT = 33
--Stickmasterluke
local Tool=script.Parent
local handle=Tool:WaitForChild("Handle")
local mesh=handle:WaitForChild("Mesh")
local pizzasound=handle:WaitForChild("PizzaSound")
local bodyp=handle:WaitForChild("BodyPosition")
local debris=game:GetService("Debris")
bodyp.maxForce=Vector3.new(0,0,0... | 931 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126704033/src/Handle2/RemoveScript.server.luau | luau | .luau | --Made by Stickmasterluke
script.Parent:remove()
| 13 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126704033/src/LocalScript/Script.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
damage=22
alive=true
check=true
nextjump=0
nextgrowl=0
nextfade=0
lastmove=0
cycle=0
amplitude=.2
frequency=2
rate=.1
meshes={122293937}
standmesh=122293937
local link="http://www.roblox.com/asset/?id="
head=sp:WaitForChild("Head")
hum=sp:WaitForChild("Humanoid")
torso=... | 1,258 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126704033/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
local cooldown=.2
local scale=.5
local check=true
local debris=game:GetService("Debris")
local handle=sp:WaitForChild("Handle")
handle.Transparency=0
local handle2=sp:FindFirstChild("Handle2")
if handle2 then
handle2:remove()
end
function findsquirrel()
for _,v in pai... | 2,151 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126710875/src/Failsafescript.server.luau | luau | .luau | --Stickmasterluke
--If debris was locally reliable, I wouldn't need to do this.
wait(10*60)
script.Parent:remove()
| 32 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126719093/src/FloatingHeadScript.client.luau | luau | .luau | local HEAD_IDENTIFIER = "FloatingHeadGear"
--
local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local Player, Character, Humanoid, Torso, Head;
--
local function ConstructHead()
local head = Handle:Clone()
--
local force = Instance.new('BodyPosition')
force.Name = 'Mover'
force.Parent = head
... | 350 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126719093/src/Handle/HeadScript.client.luau | luau | .luau | local ATTACK_RANGE = 40
local TURN_RATE = 3*math.pi/1 -- (half turn per second)
local MOVE_RATE = 50/1
local DIVE_RANGE = 10
local DAMAGE_RANGE = 4
local DURATION = 35
local RELOAD_TIME = 2
local PlacedAt = tick()
--
local Head = script.Parent
local Mesh = Head:WaitForChild('Mesh')
Head:WaitForChild('Light').Enabled ... | 1,874 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126719120/src/EventsAndAnims.client.luau | luau | .luau | local Tool = script.Parent
local LeftArm = Tool:WaitForChild('LeftArm')
local RightArm = Tool:WaitForChild('RightArm')
local LeftArmMesh = Tool:WaitForChild('ApeArm_Left')
local RightArmMesh = Tool:WaitForChild('ApeArm_Right')
local LeftArmMeshClone
local RightArmMeshClone
local LeftFistClone
local RightFistClone
loc... | 1,707 |
Roblox/gear | Roblox-gear-28b88df/src/gear/126719148/src/EventsAndAnims.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local Horns = Instance.new('Part')
Horns.Size = Vector3.new(4.15, 1.88, 2.1)
Horns.Name = 'Horns'
Horns.CanCollide = false
local HornsMesh = Instance.new('SpecialMesh')
HornsMesh.TextureId = 'http://www.roblox.com/asset?id=126694422'
HornsMesh.MeshI... | 2,605 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506105/src/AnimationScript/init.client.luau | luau | .luau | -----------------
--| Constants |--
-----------------
--NOTE: These must be the names of animation objects under this script
local ANIMATION_NAMES = {
'BeginSmash',
'EndSmash'
}
-----------------
--| Variables |--
-----------------
local Tool = script.Parent
local Animations = {}
local AnimTracks = {}
local Char... | 385 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506105/src/Handle/Effect/Script.server.luau | luau | .luau | Game:GetService('Debris'):AddItem(script.Parent, 0)
| 15 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506105/src/KorbloxStaffScript.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local COOLDOWN = 4
local DAMAGE = 1000
local BOOM_DAMAGE = 100
local BOOM_SIZE = 24
-----------------
--| Variables |--
-----------------
local PlayersService = Game:GetService('Players')
local DebrisService = Game:GetService('Debris')
local Tool = script.Parent... | 1,801 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506257/src/EventsAndAnims/MotorizeRightGrip.server.luau | luau | .luau | -- stravant's AnimEdit helper, to make sure tools actually animate.
function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
loca... | 731 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506257/src/EventsAndAnims/init.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild('Handle')
local TornadoScript = Tool:WaitForChild('TornadoScript')
local Anims = {}
local BlowSound
local Debris = game:GetService('Debris')
local TIME_BEFORE_SOUND = 0.5
local TIME_AFTER_SOUND = 4.5
local TIME_BETWEEN_USES = 20
local TORNADO_RADIUS = 15
lo... | 736 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506257/src/GustHornServerScript.server.luau | luau | .luau |
local TornadoScript = script.Parent:WaitForChild('TornadoScript')
local TIME_BEFORE_SOUND = 0.5
local TIME_AFTER_SOUND = 4.5
local TIME_BETWEEN_USES = 20
local TORNADO_RADIUS = 15
local TORNADO_HEIGHT = 200
local TORNADO_SPEED = 10
local TORNADO_TIME = 10
local SPACE_BETWEEN_TORNADOES = 5
local NUM_TORNADOES = 6
loc... | 621 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506257/src/TornadoScript.server.luau | luau | .luau | --
local Tornado = script.Parent
local IgnoreChar = Tornado:WaitForChild('Ignore').Value
local PartInfo = {}
local StuffToDestroy = {}
local bpTable = {}
local startRadTable = {}
local NUM_STEPS = 100
local STEP_TIME = 0.1
-- Copied from HotThoth's code for the Tornade. SECRET RETEXTURE MUWAHAHAHA
Tornado.Touched:c... | 651 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506324/src/LocalScript.client.luau | luau | .luau | --Made by Stickmasterluke
local sp=script.Parent
local tauntcooldown=10
local originalgrip=CFrame.Angles(math.pi/2,0,0)+Vector3.new(0,-.25,-1.4)
local currentgrip=originalgrip
local debris=game:GetService("Debris")
local enabled=true
local taunting=false
local lasttaunt=0
function waitfor(parent,name)
while tr... | 911 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506324/src/Part/PointLight/Script.server.luau | luau | .luau | while true do
script.Parent.Brightness = 5+(math.cos(tick())*2)
script.Parent.Range = 10+(math.sin(tick())*4)
wait()
end | 38 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506324/src/SwordScript/EyeSpawner.server.luau | luau | .luau | function MakeLightning(ray,atime)
local startTime = tick()
while tick()-startTime<atime do
local points = {}
for i=0,10,1 do
if i==0 then
table.insert(points,ray.Origin)
else
table.insert(points,ray.Origin+(ray.Direction.Unit*(ray.Direction.magnitude/10)*i)+(Vector3.new(math.random(),math.random()... | 654 |
Roblox/gear | Roblox-gear-28b88df/src/gear/127506364/src/local/MotorizeRightGrip.server.luau | luau | .luau | function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
local armChildRemovedConn = nil
local Motor6DGrip = nil
local EquippedNum... | 761 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12775410/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
if not Handle then return end
local Sword = require(754568173)
local Player = nil
local Character = nil
local Humanoid = nil
local Torso = nil
local SwordData = Sword.SwordFunctions.GetData("HeroesAxe")
local SwordModel = ... | 354 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128160832/src/DodgeballScript.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
local damage=34
local sounddebounce=.5
local check=true
local lastsound=0
local debris=game:GetService("Debris")
sp.Touched:connect(function(hit)
if hit and hit.Parent then
if lastsound+sounddebounce<time() and hit.CanCollide then
lastsound=time()
local sound=s... | 415 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128160832/src/WhistleLocalScript.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
local cooldown=10
local jetheight=200
local jetdistance=2000
local jetspeed=300
local talkinggrip=CFrame.new(-1.5,-.5,.65)*CFrame.Angles(-.2,3.14159,0)
local holdinggrip=CFrame.new(0,-.35,.1)*CFrame.Angles(.4,-.9,0)
local debris=game:GetService("Debris")
local check=true... | 1,048 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128160929/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/128162639/src/LocalScript/EmeraldScript.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
local debris=game:GetService("Debris")
exploded=false
function bang(hit)
if not exploded and 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")
if ct~=n... | 630 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128162639/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
cooldown=2
numberemeralds=7
throwspeed=75
check=true
down=false
equipped=false
vec=Vector3.new(0,0,0)
debris=game:GetService("Debris")
local waveanimation=sp:WaitForChild("WaveAnim")
local emeraldscript=script:WaitForChild("EmeraldScript")
function onEquipped(mouse)
... | 1,290 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128162713/src/Handle/MacheteScript/ShockScript.client.luau | luau | .luau | local Character = script.Parent
local Humanoid = Character:WaitForChild('Humanoid')
local Torso = Character:WaitForChild('Torso')
local Sparkles = Instance.new('Sparkles')
Sparkles.Parent = Torso
--[[local controllerService = game:GetService("ControllerService")
local controller = controllerService:GetChildren()[1]
c... | 170 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128209615/src/SwordScript.server.luau | luau | .luau | --Rescripted 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 = 10,
LungeDamage = 15
}
Damage = DamageValues.BaseDamage
Grips = {... | 1,126 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128210518/src/EventsAndAnims/MotorizeRightGrip.server.luau | luau | .luau | -- stravant's AnimEdit helper, to make sure tools actually animate.
function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
loca... | 729 |
Roblox/gear | Roblox-gear-28b88df/src/gear/128210518/src/EventsAndAnims/init.client.luau | luau | .luau | local Tool = script.Parent
local Blade = Tool.Blade
local Anims = {}
local Player = game.Players.LocalPlayer
local SLASH_ANIM_TIME = 1.2
local Debris = game:GetService('Debris')
local InjureConnection
local SlashSound
local function Play(animationName)
if not Anims[animationName] then
local humanoid = Tool.Paren... | 671 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12848902/src/TeddyScript.server.luau | luau | .luau | local Tool = script.Parent;
enabled = true
s1 = Instance.new("Sound")
s1.SoundId = "http://www.roblox.com/asset/?id=12844799"
s1.Parent = Tool.Handle
s2 = Instance.new("Sound")
s2.SoundId = "http://www.roblox.com/asset/?id=12844794"
s2.Parent = Tool.Handle
s3 = Instance.new("Sound")
s3.SoundId = "h... | 486 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12890798/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/12890798/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
BaseUrl = "http://www.roblox.com/asset/?id="
Sounds = {
Calibrate = Handle:WaitForChild("Calibrate"),
Explosion = Handle:WaitForChild("Explosion"),
}
Grips ... | 498 |
Roblox/gear | Roblox-gear-28b88df/src/gear/12909278/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,663 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129457095/src/BookScript.client.luau | luau | .luau | local function waitForChild(parent, child)
while parent:FindFirstChild(child) == nil do
wait()
end
return parent[child]
end
local Tool = script.Parent
local Book = Tool.Handle
local vCharacter
local vTorso
local vHumanoid
local vPlayer
local PlayerGui
Tool.Enabled = true
local AORGui
local AORGui_Id = ... | 606 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471121/src/Script/ConfusionScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Character = script.Parent
Humanoid = Character:FindFirstChild("Humanoid")
Debris = game:GetService("Debris")
if Humanoid then
Humanoid.WalkSpeed = (math.abs(Humanoid.WalkSpeed) * -1)
wait(2.5)
Humanoid.WalkSpeed = (math.abs(Humanoid.WalkSpeed) * 1)
end
Debris:AddItem(script, 0.5)
scrip... | 105 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471121/src/Script/init.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
ConfusionScript = script:WaitForChild("ConfusionScript")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of ... | 3,386 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471151/src/ThumbnailFixer.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 handle = WaitForChild(script.Parent,'Handle')
script.Parent.Grip = CFrame.new(1.40000021, 1.96000028, -1.4000001, 1, 0, 0, 0, 1, -3.9340253e-007, 0, 3.9340253e... | 137 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471151/src/continuumScript.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 HonkSound = WaitForChild(handle,'Honk')
local HoldAni ... | 2,999 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471170/src/LocalScript/Script.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
damage=36
stuck=false
sp.Touched:connect(function(hit)
if hit and hit~=nil and sp~=nil and not stuck then
local ct=sp:FindFirstChild("creator")
if ct.Value~=nil and ct.Value.Character~=nil then
if hit.Parent~=ct.Value.Character and hit.Name~="Handle" and hit.Name~="Effect"... | 492 |
Roblox/gear | Roblox-gear-28b88df/src/gear/129471170/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
firerate=.5
power=42
local debris=game:GetService("Debris")
local handle=sp:WaitForChild("Handle")
equipped=false
check=true
function throwstar(start,vec)
if start and vec then
local p=handle:clone()
p.CanCollide=true
p.Transparency=0
local c=Instance.new("Objec... | 688 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130112971/src/EventsAndAnims/MotorizeRightGrip.server.luau | luau | .luau | -- stravant's AnimEdit helper, to make sure tools actually animate.
function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Tool = script.Parent.Parent
loca... | 725 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130112971/src/EventsAndAnims/init.client.luau | luau | .luau | local Tool = script.Parent
local Anims = {}
local LaserParts = Tool:WaitForChild('LaserParts')
local Handle = Tool:WaitForChild('Handle')
local SpecialMesh = Handle:WaitForChild('Mesh')
local ReequipScript = Tool:WaitForChild('ReequipScript')
local Mouse
local MouseIsDown = false
local MouseDownTime = 0
local Debris =... | 1,967 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130112971/src/ReequipScript.server.luau | luau | .luau | local Tool = script.Parent
wait(1)
Tool.Enabled = true
script:Destroy() | 19 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130113061/src/Assets.luau | luau | .luau | --Made by Luckymaxer
BaseUrl = "http://www.roblox.com/asset/?id="
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy function that gives us the nice Create'string'{data} syntax
--The first function call is a func... | 2,009 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130113061/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Made by Fusroblox
--Updated for R15 avatars by StarWars
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 =... | 4,111 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130113061/src/TrailScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
--Made by Fusroblox
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Debris = game:GetService("Debris")
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Material = Enum.Material.Plastic
BasePart.TopSurface = Enum.SurfaceType.Smooth
BasePart.BottomSurfa... | 765 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130113146/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Speed = 100
Duration = 1
NozzleOffset = Vector3.new(0, 0.4, -1.1)
Sounds = {
Fire = Handle:WaitForChild("Fire"),
Reload = Handle:WaitForChild("Reload"),
Hi... | 1,707 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130113146/src/ToolScript.client.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("ClientControl")
ClientControl.OnClientInvoke = (function(Mode, Value)
if Mode == "PlaySound" and Value then... | 230 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130167063/src/LazerSwordScript/CubeScript/init.server.luau | luau | .luau | local AxisVectors =
{
}
do
for val = -1, 1, 2 do
table.insert(AxisVectors, Vector3.new(val, 0, 0))
end
for val = -1, 1, 2 do
table.insert(AxisVectors, Vector3.new(0, val, 0))
end
for val = -1, 1, 2 do
table.insert(AxisVectors, Vector3.new(0, 0, val))
end
end
local TangentVectors = {}
do
for i = 1, #Axis... | 879 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130167063/src/LazerSwordScript/init.client.luau | luau | .luau | local DAMAGE = 50;
local COOLDOWN_TIME = 1.5;
local DEBUG_PRINTING = true
function dPrint(...)
if DEBUG_PRINTING then
print(...)
end
end
function New(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
if type(v) == ... | 1,405 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1304339797/src/LocalScript.client.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Animations = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("ClientControl")
ToolEquipped = false
function SetAnimation(mode, value)
if mode == "PlayAnimation" and value and Tool... | 658 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1304339797/src/NinjaStar/StarScript.server.luau | luau | .luau | Star = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Creator = Star:FindFirstChild("creator")
HitSound = Star:FindFirstChild("Hit")
Stuck = false
Damage = 23
function IsHuntedVictim(character)
return character:FindFirstChild("NinjaMaskOfShadows")
end
function TagHumanoid(... | 561 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1304339797/src/NinjaStar/init.server.luau | luau | .luau | local GearService = require(1075123174)
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Mesh = Handle:WaitForChild("Mesh")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
StarScript = script:WaitForChild("StarScript")
Velocity = 50
Sounds = {
Fire = Handle:WaitForChild("Fire"),
... | 1,041 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1304344132/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")
Remover = script:WaitForChild("Remover")
VehicleModel = InsertService:LoadAsset(1300541691)
Vehicle = VehicleModel:GetChildren()[1]:Clone(... | 609 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130925426/src/LocalScript.client.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local Sounds = {
Laser = Handle:WaitForChild("LaserSound"),
SpeedBoost = Handle:WaitForChild("SpeedBoostSound")
}
local ObjectsBin = Handle:WaitForChild("ObjectsBin")
local Anim = ObjectsBin:WaitForChild("FlyAnimation")
local SkullMesh = Objects... | 4,275 |
Roblox/gear | Roblox-gear-28b88df/src/gear/130925426/src/SoundManager.server.luau | luau | .luau | local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local Sounds = {
Laser = {
Sound = Handle:WaitForChild("LaserSound"),
Playing = 0
},
SpeedBoost = {
Sound = Handle:WaitForChild("SpeedBoostSound"),
Playing = 0
}
}
for i, v in pairs(Sounds) do
v.Sound.ChildAdded:connect(function(Child)... | 214 |
Roblox/gear | Roblox-gear-28b88df/src/gear/131372632/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local Remote = Tool:WaitForChild("MouseLoc")
function Remote.OnClientInvoke()
return game.Players.LocalPlayer:GetMouse().Hit.p
end | 36 |
Roblox/gear | Roblox-gear-28b88df/src/gear/131372632/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/131372632/src/Server/Script.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
damage=100
rate=1/30
function waitfor(a,b)
while not a:FindFirstChild(b) do
a.ChildAdded:Wait()
end
return a:FindFirstChild(b)
end
local ct=waitfor(sp,"creator")
local debris=game:GetService("Debris")
check=false
sp.Touched:Connect(function(hit)
if hit and hit and... | 1,110 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1316010086/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,164 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1316010086/src/Script/BriefcaseScript.server.luau | luau | .luau | --Made by Luckymaxer
Briefcase = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RbxUtility = LoadLibrary("RbxUtility")
Create = RbxUtility.Create
BaseUrl = "rbxassetid://"
Random = math.random
V3 = Vector3.new
CF = CFrame.new
An = CFrame.Angles
BasePart = Create("Part"){
Ma... | 1,705 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1316010086/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy function t... | 2,659 |
Roblox/gear | Roblox-gear-28b88df/src/gear/13206856/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,679 |
Roblox/gear | Roblox-gear-28b88df/src/gear/13206887/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,669 |
Roblox/gear | Roblox-gear-28b88df/src/gear/13206984/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
... | 685 |
Roblox/gear | Roblox-gear-28b88df/src/gear/13207169/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
if not Handle then return end
local Sword = require(754568173)
local Player = nil
local Character = nil
local Humanoid = nil
local Torso = nil
local SwordData = Sword.SwordFunctions.GetData("ThorHammer")
local SwordModel =... | 486 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1320966419/src/RemoteScript.client.luau | luau | .luau | -- // Created by StarWars
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local Lighting = game:GetService("Lighting")
local TweenService = game:GetService("TweenService")
local Tool = script.Parent
local Handle = Tool:FindFirstChild("Handle")
local Player = Players.LocalPlayer
loc... | 605 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1320966419/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local SpearTweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, true)
local Tool = script.Parent
local Remotes = Tool.Remotes
local ClientControls = Remotes.Client... | 638 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1320966824/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 Dragon = InsertService:LoadAsset(132298563... | 262 |
Roblox/gear | Roblox-gear-28b88df/src/gear/132789698/src/Assets.luau | luau | .luau | --Made by Luckymaxer
BaseUrl = "http://www.roblox.com/asset/?id="
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a string", 2)
end
--return the proxy function that gives us the nice Create'string'{data} syntax
--The first function call is a func... | 2,184 |
Roblox/gear | Roblox-gear-28b88df/src/gear/132870835/src/BookScript.client.luau | luau | .luau | local function waitForChild(parent, child)
while parent:FindFirstChild(child) == nil do
wait()
end
return parent[child]
end
local Tool = script.Parent
local Book = Tool.Handle
local vCharacter
local vTorso
local vHumanoid
local vPlayer
local PlayerGui
Tool.Enabled = true
local AORGui
local AORGui_Id = ... | 606 |
Roblox/gear | Roblox-gear-28b88df/src/gear/133315268/src/TreatBag/init.server.luau | luau | .luau | local Tool = script.Parent
local Bag = Tool.Handle
local Character
local Humanoid
local Unequip = script:WaitForChild('Unequip')
local function OnEquipped()
Character = Tool.Parent
Humanoid = Character:WaitForChild('Humanoid')
Humanoid.WalkSpeed = 22.0
end
local function OnUnequipped()
Humanoid.Walk... | 142 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1340206298/src/Script.server.luau | luau | .luau | 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("RemoteFunction"))
Ser... | 1,515 |
Roblox/gear | Roblox-gear-28b88df/src/gear/1340206957/src/Script.server.luau | luau | .luau | local GearService = require(1075123174)
GearService:BindGear(script.Parent, "Sword") | 23 |
Roblox/gear | Roblox-gear-28b88df/src/gear/134109039/src/MostAnimations/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... | 427 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.