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/93136666/src/BlizzardScript/BlizzardGui/LocalScript.client.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
rate=1/30
tweentime=1
function waitfor(parent,name)
while parent:FindFirstChild(name)==nil do
parent.ChildAdded:wait()
end
return parent:FindFirstChild(name)
end
flakes=waitfor(sp,"Flakes")
flakes2=waitfor(sp,"Flakes2")
frost=waitfor(sp,"Frost")
flakes.... | 273 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136666/src/BlizzardScript/init.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
function waitfor(parent,name)
while parent:FindFirstChild(name)==nil do
parent.ChildAdded:wait()
end
return parent:FindFirstChild(name)
end
timer=waitfor(script,"Timer")
gui=waitfor(script,"BlizzardGui")
blizscript=waitfor(gui,"LocalScript")
local h=sp:Find... | 231 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136666/src/LocalScript.client.luau | luau | .luau | --Made by Stickmasterluke
local sp=script.Parent
originalgrip=CFrame.new(0.05,-1.6,0,0,0,-1,0,1,0,1,0,0)
currentgrip=originalgrip
debris=game:GetService("Debris")
enabled=true
taunting=false
function waitfor(parent,name)
while true do
local child=parent:FindFirstChild(name)
if child~=nil then
... | 1,294 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136666/src/SwordScript.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
r=game:service("RunService")
debris=game:GetService("Debris")
anims={"RightSlash","LeftSlash","OverHeadSwing","LeftSwingFast","RightSwingFast"}
basedamage=7
slashdamage=15
swingdamage=20
damage=basedamage
sword=sp.Handle
sp.Taunting.Value=false
local SlashSo... | 785 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136674/src/FlashScreen/FlashScript.client.luau | luau | .luau | local Length=.25
local StartTime=time()
local MinTransparency=.6
while time()-StartTime<Length do
script.Parent.Frame.Transparency=MinTransparency+(((time()-StartTime)/Length)*(1-MinTransparency))
wait()
end
script.Parent:Destroy()
| 56 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136674/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(.5)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
enabled = true
end
function onEquippedLocal(mouse)
if mouse == nil then... | 140 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136674/src/LocalScript.client.luau | luau | .luau | r = game:service("RunService")
local sword = script.Parent.Handle
local Tool = script.Parent
local SlashDamage=3
local UpperCutAni
local SlashSound = Instance.new("Sound")
SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
SlashSound.Parent = sword
SlashSound.Volume = .7
local UnsheathSound = Instance.new("... | 1,765 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136674/src/SlashPart/clickScript.server.luau | luau | .luau | print 'Hello world!'
| 6 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote",10)
local MouseInput = Tool:WaitForChild("MouseLoc",10)
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService = ... | 453 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Handle/Effect/Light/Fire_Effect.server.luau | luau | .luau | local Fire = script.Parent
local Rate = 1/1000
local Amplitude = .5
while Fire do
for i=1,3,1 do
script.Parent.Range = script.Parent.Range + Amplitude
wait(Rate)
end
for i=1,2,1 do
script.Parent.Range = script.Parent.Range - Amplitude
wait(Rate)
end
for i=1,1,1 do
script.Parent.Range = script.Parent.Ran... | 143 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/BurnScript/init.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 Character = script.Parent
local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild... | 568 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/ChaosExplosion/CameraShake.client.luau | luau | .luau | --Made by Luckymaxer
Camera = game:GetService("Workspace").CurrentCamera
Rate = (1 / 60)
Shake = {Movement = 80, 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/93136746/src/Server/ChaosExplosion/TelaThornScript/init.server.luau | luau | .luau | --Tela-Thorn script
local Character = script.Parent
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local Player = Players:GetPla... | 795 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/ChaosExplosion/init.server.luau | luau | .luau | local Center = script.Parent
local Creator = script:WaitForChild("Creator")
local BaseUrl = "http://www.roblox.com/asset/?id="
local Radius = 150
local StunRadius = 60
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or gam... | 1,786 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/ParticleScript.server.luau | luau | .luau | --Rescripted by Luckymaxer
Particle = script.Parent
local Light = script.Parent.Parent:FindFirstChildOfClass("PointLight")
Duration = Particle:WaitForChild("Duration")
wait(Duration.Value)
Light.Enabled = false
Particle.Enabled = false
| 52 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/TelaTime.server.luau | luau | .luau | --Changes the time to
local Services = {
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService = (game:FindService("RunService") or game:GetService("RunService")),
Lighting = (game:FindService("Lighting") or game:GetService("Lighting")),
}
local DefaultTime = Services.Ligh... | 193 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/UnwingScript/WingDetectionLocal.client.luau | luau | .luau | --Helps detect flying gears that have local forces
local Remote = script.Parent:WaitForChild("Remote")
local Character = script.Parent.Parent
function IsCharacterFlying(char) -- helps check if person is flying
local FlightClasses = {"BodyPosition","BodyThrust","BodyVelocity","BodyGyro"}
local Status = false
if ch... | 175 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/UnwingScript/init.server.luau | luau | .luau | --Removes any flying gear from your hands
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 Character = script.Parent
local Fire = script:WaitForChild... | 1,446 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136746/src/Server/init.server.luau | luau | .luau | --Rescripted by TakeoHonorable
--Unleash the power of chaos!
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
Tool.Enabled = true... | 4,150 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote",10)
local MouseInput = Tool:WaitForChild("MouseInput",10)
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService ... | 452 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Server/CometScript/AmethystComet/AmethystLocal.client.luau | luau | .luau | local Character = script.Parent
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
RunService = (game:FindService("RunService") or game:GetService("RunService")),
Debris = (game:FindService("Debris") or game:GetService("Debris")),
}
repeat
for _,forces in pairs(Character:Get... | 124 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Server/CometScript/AmethystComet/init.server.luau | luau | .luau | local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService = (game:FindService("RunService") or game:GetService("RunService")),
Debris = (game:FindService("Debris") or game:GetService("Deb... | 615 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Server/CometScript/init.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 Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (... | 1,065 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Server/MeteorScript/init.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 Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (... | 1,901 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93136802/src/Server/init.server.luau | luau | .luau | --Rescripted by TakeoHonorable
--Revamped Periastrons: The Periastron of Purple Comets (Amethyst)
function Create(ty)
return function(data)
local obj = Instance.new(ty)
for k, v in pairs(data) do
if type(k) == 'number' then
v.Parent = obj
else
obj[k] = v
end
end
return obj
end
end
local Se... | 2,529 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536785/src/LocalScript.client.luau | luau | .luau | --Made by Stickmasterluke
local sp=script.Parent
tauntcooldown=10
originalgrip=CFrame.new(-.15, -.9, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
currentgrip=originalgrip
debris=game:GetService("Debris")
enabled=true
taunting=false
lasttaunt=0
function waitfor(parent,name)
while true do
local child=parent... | 913 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536785/src/SwordScript.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
r=game:service("RunService")
debris=game:GetService("Debris")
anims={"RightSlash","LeftSlash","OverHeadSwing","LeftSwingFast","RightSwingFast"}
basedamage=5
slashdamage=10
swingdamage=15
damage=basedamage
sword=sp.Handle
sp.Taunting.Value=false
local SlashSo... | 1,195 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536827/src/Script.server.luau | luau | .luau | local InsertService = game:GetService("InsertService")
local Debris = game:GetService("Debris")
local ZombieModel = InsertService:LoadAsset(93601062):GetChildren()[1]
local Tool = script.Parent
local Handle = Tool.Handle
local ThrowSound = Handle:FindFirstChild("ThrowSound")
local ExplodeSound = Handle:FindFirstChil... | 1,065 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536844/src/LocalScript.client.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local Tool = script.Parent
while Tool:FindFirstChild('Handle') == nil do wait() end
local ToolHandle = Tool.Handle
local MOUSE_ICON = 'rbxasset://textures/GunCursor.png'
local RELOADING_ICON = 'rbxasset://textures/GunWaitCursor.png'
local COOLDOWN = 6 -- Seconds... | 564 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536844/src/Script/Explode/init.server.luau | luau | .luau | local Model = script.Parent
local BodyColors = Model:FindFirstChild('Body Colors')
if BodyColors then -- Make BodyColors red
local red = BrickColor.new('Bright red')
BodyColors.HeadColor = red
BodyColors.LeftArmColor = red
BodyColors.LeftLegColor = red
BodyColors.RightArmColor = red
BodyColors.RightLegColor = re... | 320 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93536844/src/Script/init.server.luau | luau | .luau | --[[
Fixed by ArceusInator
1/22/2015 Zombies no longer randomly die, works with FE
--]]
-----------------
--| Constants |--
-----------------
local NPC_ID = 93601062 -- Asset ID of the NPC to be launched
local COOLDOWN = 6 -- Seconds until tool can be used again
local TIME_TO_LIVE = 60 -- Seconds until NPC is clea... | 1,050 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93667422/src/DamageScript.server.luau | luau | .luau | local Damage=9
while not script.Parent:FindFirstChild('Handle') do wait() end
local Handle=script.Parent.Handle
function TagHumanoid(Humanoid, Player)
if Humanoid ~= nil then
creatorTag = Instance.new("ObjectValue")
creatorTag.Name = "creator"
creatorTag.Value = Player
creatorTag.Parent = Humanoid
game.D... | 290 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93667422/src/LocalScript/init.client.luau | luau | .luau | function waitforchild(parent,child)
while not parent:FindFirstChild(child) do
wait()
end
return parent[child]
end
local Tool=script.Parent
local SpinAni=waitforchild(script,'spin')
local SpinAniTrack
local ThrustAni=waitforchild(script,'Thrust')
local ThrustAniTrack
local lastClick
local MyHumanoid
local bVel... | 887 |
Roblox/gear | Roblox-gear-28b88df/src/gear/936703279/src/SwordScript.server.luau | luau | .luau | --// Made by StarWars
local Players = game:GetService("Players")
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.SwordFunctio... | 575 |
Roblox/gear | Roblox-gear-28b88df/src/gear/936703828/src/LocalScript.client.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
ServerControl = Tool.Remotes:WaitForChild("ServerControl")
ClientControl = Tool.Remotes:WaitForChild("Client... | 936 |
Roblox/gear | Roblox-gear-28b88df/src/gear/936703828/src/Script/Functions.luau | luau | .luau | Debris = game:GetService("Debris")
ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Laser", "Bullet"}
Functions = {
FindCharacterAncestor = (function(Object)
if Object and Object ~= game:GetService("Workspace") then
local Humanoid = Object:FindFirstChild("Humanoid")
if Humanoid then
... | 755 |
Roblox/gear | Roblox-gear-28b88df/src/gear/936703828/src/Script/init.server.luau | luau | .luau | local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local BarrelAttachment = Handle:FindFirstChildOfClass("Attachment")
local Functions = require(script:WaitForChil... | 1,183 |
Roblox/gear | Roblox-gear-28b88df/src/gear/936704694/src/Script/init.server.luau | luau | .luau | local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local BarrelAttachment = Handle:FindFirstChildOfClass("Attachment")
local Functions = require(script:WaitForChil... | 1,453 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93709266/src/PolarBearCompanionScript.client.luau | luau | .luau | -- Polar Bear Plushie
local Tool = script.Parent
local Handle = Tool.Handle
local running = false
-- Grip info
local gripPos = Tool.GripPos
-- Sound info
local onSqueek = Instance.new("Sound")
onSqueek.SoundId = "http://www.roblox.com/asset/?id=85469102"
onSqueek.Parent = Handle
local happySqueak = In... | 605 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93722443/src/BoneDamageScript.server.luau | luau | .luau | local Damage=9
local Handle=script.Parent
function TagHumanoid(Humanoid, Player)
if Humanoid ~= nil then
creatorTag = Instance.new("ObjectValue")
creatorTag.Name = "creator"
creatorTag.Value = Player
creatorTag.Parent = Humanoid
game.Debris:AddItem(creatorTag, 1)
end
end
function OnTouched(Part)
HitH... | 218 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93722443/src/LocalScript/init.client.luau | luau | .luau | function waitforchild(parent,child)
while not parent:FindFirstChild(child) do wait() print(parent.Name .. " Waiting for " .. child) end
return parent[child]
end
local Tool=script.Parent
local Handle= waitforchild(Tool,'Handle')
local EvilSound = waitforchild(Handle,'evilSound')
local BoneScript = waitforchild(Tool, ... | 1,657 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93722515/src/OutfitScript/init.server.luau | luau | .luau | --By QuantumSama
local DURATION = 30
function WaitForChild(parent, child)
local result = parent:FindFirstChild(child)
delay(3,function() if not result then print("Warning: Long wait for", child) end end)
while not result do
parent.ChildAdded:wait()
result = parent:FindFirstChild(child)
end
return result
end
... | 2,526 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93722515/src/ProjectileScript.server.luau | luau | .luau | arrow = script.Parent
debris = game:GetService("Debris")
local HitSound = Instance.new("Sound")
HitSound.SoundId = "http://www.roblox.com/asset/?id=28913460"
HitSound.Parent = arrow
HitSound.Volume = 1
function onTouched(hit)
arrow.RaySound.Looped = false
arrow.RaySound:Stop()
if hit.Parent ~= nil then
if hit... | 308 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93722515/src/ShootScript.server.luau | luau | .luau | Tool = script.Parent
VELOCITY = 50 -- constant
loaded=false
local Pellet = Instance.new("Part")
--Pellet.Shape = 1
Pellet.formFactor = "Custom"
Pellet.Size = Vector3.new(.5,3,.5)
Pellet.BrickColor = BrickColor.new("Bright orange")
Pellet.Material = Enum.Material.Ice
Pellet.Locked = true
Pellet.TopSurface = 0
Pellet.Bo... | 644 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93725362/src/LocalScript.client.luau | luau | .luau | script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function() script.Parent.Click:FireServer(true, mouse.Hit.p) end)
mouse.Button1Up:connect(function() script.Parent.Click:FireServer(false, mouse.Hit.p) end)
end) | 56 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93725362/src/Script.server.luau | luau | .luau | local AnimationNames = {"Slash", "SlashAnim", "DarkenAnim", "ChargeAnim"}
local Tool = script.Parent
local Character = nil
local Humanoid = nil
local Torso = nil
local Animations = {}
local function WaitForChild(parent, child)
while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end
return parent[child... | 2,854 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93725362/src/SwordScript.server.luau | luau | .luau | local Tool = script.Parent
local Character = nil
local debounceHumHits = {}
local debounceHumTimes = {}
local damage = 35
local GLib = require(206209239)
local function WaitForChild(parent, child)
while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end
return parent[child]
end
local Handle = WaitFor... | 510 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93746675/src/PetAnimation/ReplicateNpcAnimation/init.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 DebrisService = Game:GetService('Debris')
local MyMod... | 233 |
Roblox/gear | Roblox-gear-28b88df/src/gear/93746675/src/PetToolScript/CrashAi/init.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local RBX_GRAVITY = -9.81 * 20
local ONE_STEP = 1 / 30
local OFFSET = Vector3.new(5, 0, 5) -- Distance from player or target
local MAX_DISTANCE = 240 -- The pet will stay within this distance of player
local JARS_TO_THROW = 3 -- Number of jars to throw
local DYNAMI... | 2,972 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939131179/src/Script.server.luau | luau | .luau | -- // Created by StarWars
local Players = game:GetService("Players")
local GearService = require(1075123174)
local Tool = script.Parent
local GearData = GearService:BindGear(Tool)
GearData:SetupRemoteFunctions()
local Handle = Tool.Handle
local CameraShutterEffect = Handle.CameraShutter
local ReloadTime = 2
GearDat... | 141 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939132399/src/Script.server.luau | luau | .luau | -- Created by StarWars
local GearService = require(1075123174)
local GearData = GearService:BindGear(script.Parent, "Glider")
local Tool = script.Parent
local DisplayModel = Tool:FindFirstChild("DisplayModel")
if DisplayModel then
DisplayModel:Destroy()
end | 63 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939145471/src/Script/init.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
DrinkAnim = Tool:WaitForChild("DrinkAnim")
FastScript = script:WaitForChild("FastScript")
PlaySound = Tool:WaitForChild("PlaySound")
DrinkSound = Handle:WaitForChild("DrinkSound")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Reloa... | 560 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939148317/src/MicScript.client.luau | luau | .luau | -- Microphone!! --
-- Have a handle to the game service in case we need to get the time object
r = game:service("RunService")
-- Tool and the Object, in this case Microphone
local Microphone = script.Parent.Handle
local Tool = script.Parent
-- Just a partial lock, which disallows multiple instances of the onActivate... | 1,370 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939151180/src/LocalScript.client.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl = Tool:WaitForChild("Clie... | 1,157 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939151180/src/Script/BriefcaseScript.server.luau | luau | .luau | 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"){
Material = Enum.Material... | 1,804 |
Roblox/gear | Roblox-gear-28b88df/src/gear/939151180/src/Script/init.server.luau | luau | .luau | 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 that gives us the nice ... | 2,592 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94119269/src/FreezeTorso.server.luau | luau | .luau | local MyCharacter = script.Parent
local MyTorso = MyCharacter:FindFirstChild('Torso')
if MyTorso then
MyTorso.Anchored = true
end
wait(1.6)
if MyTorso then
MyTorso.Anchored = false
end
script:Destroy()
| 65 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94119269/src/MolecularAtomizerScript.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 EVENING_MINUTES_AFTER_MIDNIGHT = 1070
local ICON_ID = 93664760
local TEXTURE_ID = 93664784
local MESH_ID = 93664... | 2,887 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233286/src/LocalScript.client.luau | luau | .luau | local equipped = false
local setIconCon
local Players = game:GetService'Players'
local reloadCounter = 0
Cursors = {
"http://www.roblox.com/asset/?id=94154683", -- black
"http://www.roblox.com/asset/?id= 94154829", -- red
"http://www.roblox.com/asset/?id=94155503",
"http://www.roblox.com/asset/?id=94155569"
}
loc... | 565 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233286/src/Script.server.luau | luau | .luau | -- Made by Stickmasterluke
-- edited by fusroblox
--[[
Fixed by ArceusInator 3/2/2015
- Now works with FE
- Gibs are now properly colored + Characters now spew gory gibs just like other bricks
- No longer teamkills
- Now registers KOs to the site
--]]
function WaitForChild(obj, name)
while not obj:FindFirstChil... | 2,094 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233344/src/LocalScript.client.luau | luau | .luau | local equipped = false
local setIconCon
local Players = game:GetService'Players'
local getCharacterFromPart = function(part)
local current = part
local character = nil
local humanoid = nil
while true do
for i, child in next, current:GetChildren() do
if child:IsA'Humanoid' then
character = current
huma... | 472 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233344/src/Script.server.luau | luau | .luau | --------------------- TEMPLATE ASSAULT RIFLE WEAPON ---------------------------
-- 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 GLib = require(206209239)
----- M... | 3,287 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233367/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,107 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233391/src/Script/DragonAi/FireBall.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local HAT_ID = 36883367
local BODY_MESH_IDS = {36780113, 36780032, 36780156, 36780079, 36780195}
local BODY_TEXTURE_ID = 36780292
--------------------
--| WaitForChild |--
--------------------
-- Waits for parent.child to exist, then returns it
local function Wai... | 714 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94233391/src/Script/init.server.luau | luau | .luau | -----------------
--| Constants |--
-----------------
local PET_ID = 94316174
local AI_SCRIPT_NAME = 'DragonAi'
--------------------
--| WaitForChild |--
--------------------
-- Waits for parent.child to exist, then returns it
local function WaitForChild(parent, childName)
assert(parent, "ERROR: WaitForChild: paren... | 412 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94333296/src/Handle/ThrowScript.server.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
local Played = false
sp.Touched:Connect(function(hit)
if hit and hit.Parent then
if not hit.Parent:FindFirstChildOfClass("Humanoid") and string.lower(hit.Name)~="water" and string.lower(string.sub(hit.Name,1,6))~="effect" and hit.Name~="Handle" then
local sound=sp:Fin... | 166 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94333296/src/Server/VampireSoundScript.server.luau | luau | .luau | --Made by Stickmasterluke
--Surrounds you with serendipity
sp=script.Parent
local sound=Instance.new("Sound")
sound.SoundId="http://www.roblox.com/asset/?id=94688738"
sound.Volume = 1.5
sound.Parent=sp
while sound do
--sound.Pitch=(math.random()*.2)+.9
sound.PlaybackSpeed=(math.random()*.2)+.9
sound:Play()
wai... | 117 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94333296/src/Server/init.server.luau | luau | .luau | local Properties = {
MaxHealth = 250,
WalkSpeed = 20
}
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
Tool.Enabled = true
lo... | 997 |
Roblox/gear | Roblox-gear-28b88df/src/gear/945527020/src/Script.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
BaseUrl = "rbxassetid://"
Animations = {
LeftSwing = {Animation = Tool.Animations.R6:WaitForChild("LeftSwing"), FadeTime = nil, Weight = nil, Speed = nil},
RightSwing = {Animation = Tool.Animations.R6:WaitForChild("Right... | 1,358 |
Roblox/gear | Roblox-gear-28b88df/src/gear/945542990/src/CrossbowLauncher.server.luau | luau | .luau | Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
FireSound = Handle:WaitForChild("FireSound")
HitSound = Handle:WaitForChild("HitSound")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
local BaseUrl = "rbxassetid://"
local Damage = 20
local DisplayArrow = nil
function FindCharacte... | 1,292 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794774/src/Script.server.luau | luau | .luau | --Rescripted by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Module = require(191816425) --To prevent any future bugs.
ModuleData = Module.GetTable({Key = "CrescendoTheSoulStealer"})
Data = ModuleData.GetData({Tool = Tool})
Data.SharpenKnife() | 75 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794833/src/LocalScript.client.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
StarterGui = game:GetService("StarterGui")
ContentProvider = game:GetService("ContentProvider")
Camera = game:GetService("Workspace").CurrentCamera
Animations = {}
InteractiveConnections = {}
Directi... | 1,832 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794833/src/Script/CFramePart.client.luau | luau | .luau | --Made by Luckymaxer
Debris = game:GetService("Debris")
function DestroyScript()
Debris:AddItem(script, 3)
end
DestroyScript()
PartValue = script:WaitForChild("PartValue").Value
CFrameValue = script:WaitForChild("CFrameValue").Value
PartValue.CFrame = CFrameValue | 74 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794833/src/Script/CharacterMonitor/FixCamera.client.luau | luau | .luau | --Made by Luckymaxer
Self = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
StarterGui = game:GetService("StarterGui")
Camera = game:GetService("Workspace").CurrentCamera
Player = (Self:IsA("Backpack") and Self.Parent) or (Players:GetPlayerFromCharacter(Self))
if Player then
... | 161 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794833/src/Script/CharacterMonitor/init.server.luau | luau | .luau | --Made by Luckymaxer
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Creator = script:WaitForChild("Creator")
Model = script:WaitForChild("Model")
Tool = script:WaitForChild("Tool")
FixCamera = script:WaitForChild("FixCamera")
Camera = game:GetService("Workspace").CurrentCamera
Player = Crea... | 399 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794833/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
GearModule = require(172349822)
RbxUtility = GearModule.RbxUtility
Players = game:GetService("Players")
Debris = game:GetService("Debris")
InsertService = game:GetService("InsertService")
ContentProvider = game:GetService("ContentProvide... | 5,526 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Client.client.luau | luau | .luau | local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote",10)
--local MouseInput = Tool:WaitForChild("MouseInput")
local Services = {
Players = (game:FindService("Players") or game:GetService("Players")),
TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
RunService =... | 344 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/Finisher/Finish/DisableBackpack.client.luau | luau | .luau | --Much efficient way to hide the backpack without causing lag
local StarterGui = game:GetService("StarterGui")
local PlayerCamera = workspace.CurrentCamera
local rService = game:GetService("RunService")
for _,accessory in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
if accessory and accessory:IsA(... | 245 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/Finisher/Finish/EnableBackpack.client.luau | luau | .luau | --Much efficient way to hide the backpack without causing lag
local StarterGui = game:GetService("StarterGui")
local PlayerCamera = workspace.CurrentCamera
local rService = game:GetService("RunService")
repeat
PlayerCamera.CameraType = Enum.CameraType.Custom
PlayerCamera.FieldOfView = 70
PlayerCamera.CameraSubje... | 108 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/Finisher/Finish/init.server.luau | luau | .luau | local Target = script:WaitForChild("Target")
if not Target or not Target.Value then script:Destroy() end
Target = Target.Value
local Head = Target:WaitForChild("Head")
local Humanoid = Target:FindFirstChildOfClass("Humanoid")
Humanoid:UnequipTools()
local Stop = false
coroutine.wrap(function()
repeat
Humanoid.J... | 403 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/Vanquish/VanquishStun/init.server.luau | luau | .luau | local Target = script:WaitForChild("Target")
if not Target or not Target.Value then script:Destroy() end
Target = Target.Value
local Head = Target:WaitForChild("Head")
local Humanoid = Target:FindFirstChildOfClass("Humanoid")
Humanoid:UnequipTools()
local Stop = false
coroutine.wrap(function()
repeat
Humanoid.J... | 434 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/Vanquish/init.server.luau | luau | .luau | --The wave that made the vampires and bats no more!
--Stuns players, but eradicates all things bats and vampires!
local Creator, SpawnPos = script:FindFirstChild("Creator"), script:FindFirstChild("Position")
if not Creator or not Creator.Value or not SpawnPos then script:Destroy() end
--print("Vanquishing")
SpawnPos... | 1,779 |
Roblox/gear | Roblox-gear-28b88df/src/gear/94794847/src/Server/init.server.luau | luau | .luau | --Revamped by TakeoHonorable
--Now has the ability to actually vanquish all things vampire
-- + 33% dasmage resistance
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 ob... | 2,190 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95258660/src/LocalScript/Script.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
wait(2.5)
local creator=sp:FindFirstChild("creator")
local debris=game:GetService("Debris")
local fire=Instance.new("Fire")
fire.Heat=0
fire.Size=100
fire.Color=Color3.new(1,1,153/255)
fire.SecondaryColor=Color3.new(153/255,51/255,0)
fire.Parent=sp
local explo... | 312 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95258660/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
cooldown=5
power=60
rate=1/30
local debris=game:GetService("Debris")
equipped=false
check=true
function waitfor(a,b)
while a:FindFirstChild(b)==nil do
wait()
end
return a:FindFirstChild(b)
end
lastuse=waitfor(sp,"LastUse")
function onEquipped(... | 724 |
Roblox/gear | Roblox-gear-28b88df/src/gear/953518028/src/Script/init.server.luau | luau | .luau | --Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Mesh = Handle:WaitForChild("Mesh")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
BaseUrl = "http://www.roblox.com/asset/?id="
Functions = require(script:WaitForChild("Functions"))
local function Create_PrivImpl... | 4,586 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354259/src/LocalScript.client.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
local debris=game:GetService("Debris")
equipped=false
function waitfor(parent,name)
while parent:FindFirstChild(name)==nil do
parent.ChildAdded:wait()
end
return parent:FindFirstChild(name)
end
local animobject1=waitfor(sp,"ButtonPress")
local animobject2=w... | 508 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354259/src/Script.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
rate=1/30
ringradius=20
cylinderradius=10
monsters=4
local debris=game:GetService("Debris")
function createmonster(pos)
local monster=game:GetService("InsertService"):LoadAsset(95401558):GetChildren()[1]
--local monster=game.Lighting.Shade:clone()
local ct... | 742 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354268/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")
UserInputService = game:GetService("UserInputService")
InputCheck = In... | 1,286 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354268/src/Script/AIScript/init.server.luau | luau | .luau | --Rescripted by Luckymaxer
Figure = script.Parent
Players = game:GetService("Players")
Debris = game:GetService("Debris")
Functions = require(script:WaitForChild("Functions"))
Creator = Figure:WaitForChild("Creator")
Humanoid = Figure:WaitForChild("Humanoid")
Torso = Figure:WaitForChild("Torso")
Throwable = Figure:... | 1,257 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354268/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")
InsertService = game:GetService("InsertService")
AIScript = script:WaitForChild("AIScript")
RemoverScript = script:WaitForChild("RemoverScript")
Functions = r... | 2,472 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354288/src/LocalScript.client.luau | luau | .luau | local equipped = false
local setIconCon
local Players = game:GetService'Players'
local reloadCounter = 0
Cursors = {
"http://www.roblox.com/asset/?id=94154683", -- black
"http://www.roblox.com/asset/?id= 94154829", -- red
"http://www.roblox.com/asset/?id=94155503",
"http://www.roblox.com/asset/?id=94155569"
}
loc... | 672 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354288/src/Script.server.luau | luau | .luau | -- Made by Stickmasterluke
-- edited by fusroblox
--[[
Fixed by ArceusInator 2/25/2015
- Now works with FE
- Should no longer lock up occasionally when you shoot an NPC
- Gibs are now properly colored + Characters now spew gory gibs just like other bricks
- No longer teamkills
- Now registers KOs to the site
--]... | 2,329 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354304/src/LocalScript.client.luau | luau | .luau | local equipped = false
local setIconCon
local Players = game:GetService'Players'
local reloadCounter = 0
Cursors = {
"http://www.roblox.com/asset/?id=94154683", -- black
"http://www.roblox.com/asset/?id= 94154829", -- red
"http://www.roblox.com/asset/?id=94155503",
"http://www.roblox.com/asset/?id=94155569"
}
loc... | 673 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95354304/src/Script.server.luau | luau | .luau | -- Made by Stickmasterluke
-- edited by fusroblox
function WaitForChild(obj, name)
while not obj:FindFirstChild(name) do
wait()
print("1waiting for " .. name)
end
return obj:FindFirstChild(name)
end
local function FindCharacterAncestor(subject)
if subject and subject ~= Workspace then
if subject:FindFirstC... | 2,244 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95484098/src/GloveScript.client.luau | luau | .luau | local function WaitForChild(parent, childName)
while parent:FindFirstChild(childName) == nil do
wait()
end
return parent[childName]
end
local Player = Game.Players.LocalPlayer
local Character
local Torso
local Humanoid
local Tool = script.Parent
local Glove = Tool.Handle
local DebrisService = Game:GetSe... | 1,366 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95484354/src/FortuneCookieGui/init.client.luau | luau | .luau | local Tool = script.Parent
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
--if vPlayer == nil then return end
while vPlayer == nil do
Tool = script.Parent
vCharacter = Tool.Parent
vPlayer = game.Players:playerFromCharacter(vCharacter)
wait(.3)
end
-- 15047813 = cookie ... | 1,372 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95951270/src/LocalScript/Script.server.luau | luau | .luau | --Stickmasterluke
sp=script.Parent
damage=36
wait(.1)
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("creator")
if ct.Value~=nil and... | 971 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95951270/src/LocalScript/init.client.luau | luau | .luau | --Made by Stickmasterluke
sp=script.Parent
firerate=1.25
range=600
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,418 |
Roblox/gear | Roblox-gear-28b88df/src/gear/95951291/src/BoneScript.server.luau | luau | .luau | --[[
Fixed by ArceusInator
- Works with FE
- First person/mouselock no longer breaks everything
- Player no longer trips over themselves
--]]
local Tool = script.Parent
local Blade = Tool.Handle
local RunService = Game:GetService('RunService')
local DebrisService = Game:GetService('Debris')
local Players = game... | 2,128 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.