text stringlengths 52 99.8k |
|---|
--// Animations
-- Idle Anim
IdleAnim = function(char, speed, objs)
TweenJoint(objs[2], nil , CFrame.new(-0.902175903, 0.295501232, -1.07592201, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08), function(X) return math.sin(math.rad(X)) end, 0.25)
TweenJoint(objs[3], nil , CFrame.new(-0.0318467021, -2.0... |
-- Decompiled with the Synapse X Luau decompiler.
client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
return function(p1)
local l__Parent__1 = script.Parent.Parent;
local l__Frame__2 = l__Parent__1.Frame;
local l__Frame__3 = l__Frame__2.Frame;
local l__Message__4 = l__Frame__3.Message;
local ... |
--For R15 avatars
Animations = {
R15Slash = 522635514,
R15Lunge = 522638767
}
Damage = DamageValues.BaseDamage
Grips = {
Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
}
Sounds = {
Slash = Handle:WaitForChild("SwordSlash"),
Lung... |
--//Variables\\--
local players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local remotes = replicatedStorage:WaitForChild("Remotes", 60)
local sendFeed = remotes:WaitForChild("SendFeed", 60)
|
-- print("Keyframe : ".. frameName)
playToolAnimation(toolAnimName, 0.0, Humanoid)
end
end
function playToolAnimation(animName, transitionTime, humanoid)
local roll = math.random(1, animTable[animName].totalWeight)
local origRoll = roll
local idx = 1
while roll > animTable[animName][idx].weight d... |
-- light script
local clicks = 0
script.Parent.ClickDetector.MouseClick:Connect(function(clicked)
if clicked then
clicks = clicks + 1
if clicks == 1 then
script.Parent.Light.PointLight.Enabled = true
elseif clicks == 2 then
script.Parent.Light.PointLight.Enabled = false
clicks = clicks - 2
end
e... |
-- Setup animation objects
function scriptChildModified(child)
local fileList = animNames[child.Name]
if (fileList ~= nil) then
configureAnimationSet(child.Name, fileList)
end
end
script.ChildAdded:connect(scriptChildModified)
script.ChildRemoved:connect(scriptChildModified)
|
-- Leaderboard
function loadLeaderstats(player)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local highScore = Instance.new("IntValue")
highScore.Name = "High Score"
highScore.Parent = stats
highScore.Value = 0
local currentScore = Instance.new("IntValue")
currentScore.Name = "Score"
c... |
--Equip Funciton
tool.Equipped:connect(function()
--Equip Function 1
if color.Enabled == false then
tool.TheWorld.Playing = true
end
end)
|
-- Start a loop to continuously check for search text changes
spawn(function()
while true do
onSearchTextChanged()
wait(3) -- Adjust the wait time as needed
end
end)
|
-- ====================
-- BULLET VISUALIZER
-- Enabled the gun to display a fake travelling bullet
-- ====================
VisualizerEnabled = true;
BulletSpeed = 25;
BulletSize = Vector3.new(0.25,0.25,100);
BulletColor = BrickColor.new("Bright yellow");
BulletTransparency = 0.25;
BulletMaterial = Enum.... |
-- services
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local Debris = game:GetService("Debris")
|
--[=[
Converts an event into a Promise which resolves the next time the event fires.
The optional `predicate` callback, if passed, will receive the event arguments and should return `true` or `false`, based on if this fired event should resolve the Promise or not. If `true`, the Promise resolves. If `false`, nothing... |
--[=[
@param player Player
Clears the custom property value for the given player. When
this occurs, the player will reset to use the top-level
value held by this property (either the value set when the
property was created, or the last value set by `Set`).
```lua
remoteProperty:Set("DATA")
remoteProperty:SetF... |
-- Format params: methodName, ctorName
local ERR_NOT_INSTANCE = "Cannot statically invoke method '%s' - It is an instance method. Call it on an instance of this class created via %s"
function SignalStatic.new(): Signal
return setmetatable({
Connections = {}
}, SignalStatic)
end
local function NewConnection(sig:... |
--- Creates an alias command
function Util.MakeAliasCommand(name, commandString)
local commandName, commandDescription = unpack(name:split("|"))
local args = {}
commandString = Util.EncodeEscapedOperators(commandString)
local seenArgs = {}
for arg in commandString:gmatch("$(%d+)") do
if seenArgs[arg] == ni... |
--https://roblox.com/library/2530470096/rbxscriptsignal
--If you are only going to be requiring this from the server you can require by its asset ID.
local Signal = require(script:WaitForChild("Signal"))
local RunService = game:GetService("RunService")
|
-- Visualizes a ray. This will not run if FastCast.VisualizeCasts is false.
function DbgVisualizeSegment(castStartCFrame: CFrame, castLength: number): ConeHandleAdornment?
if FastCast.VisualizeCasts ~= true then return nil end
local adornment = Instance.new("ConeHandleAdornment")
adornment.Adornee = workspace.Terr... |
--new magazine in, let's get to pushing that pull, kick thing back in its place...
wait()
weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(304), -0.14, math.rad(-82))
wait()
weld55.C1 = CFrame.new(-0.35, 0.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(302), -0.14, math.rad(-84))
Tool.... |
-- Teknikk Strobe Core V1 --
local Status = script.Parent.Parent.Status
local StrobeSync = script.Parent.Parent.StrobeSync
local Run = false
Status.Changed:connect(function()
if Run then return end
Run = true
if Status.Value == 1 --ALARM&STROBE
or Status.Value == 2 --STROBE
or Status.Value == 11 --TEST
then
w... |
--[[ Roblox Services ]]
--
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local Workspace = game:GetService("Workspace")
local UserGameSettings = UserSettings():Get... |
--[[Engine]]
local fFD = _Tune.FinalDrive
local fFDr = fFD*30/math.pi
local wDRatio = wDia*math.pi/60
local cfWRot = CFrame.Angles(math.pi/2,-math.pi/2,0)
local cfYRot = CFrame.Angles(0,math.pi,0)
--Electric Only Setup
if not _Tune.Engine and _Tune.Electric then
_Tune.Redline = _Tune.E_Redline
_Tune... |
-- Comprueba si se encontró el sonido
if sound then
-- Reproduce el sonido
sound:Play()
else
warn("El sonido 'hyperx' no se encontró en SoundService.")
end
|
--[[Steering]]
Tune.SteerInner = 36 -- Inner wheel steering angle (in degrees)
Tune.SteerOuter = 37 -- Outer wheel steering angle (in degrees)
Tune.SteerSpeed = .1 -- Steering increment per tick (in degrees)
Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees)
Tune.SteerDecay = 320 -- Speed... |
-- no touchy
local path
local waypoint
local oldpoints
local isWandering = 0
if canWander then
spawn(function()
while isWandering == 0 do
isWandering = 1
local desgx, desgz = hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ)
human:MoveTo( Vector3.new(des... |
-- Note: The active transparency controller could be made to listen for this event itself.
function CameraModule:OnCameraSubjectChanged()
if self.activeTransparencyController then
self.activeTransparencyController:SetSubject(game.Workspace.CurrentCamera.CameraSubject)
end
if self.activeOcclusionModule then
se... |
--// Damage Settings
BaseDamage = 92; -- Torso Damage
LimbDamage = 84; -- Arms and Legs
ArmorDamage = 38; -- How much damage is dealt against armor (Name the armor "Armor")
HeadDamage = 100; -- If you set this to 100, there's a chance the player won't die because of the heal script
|
--[=[
@within TableUtil
@function Map
@param tbl table
@param predicate (value: any, key: any, tbl: table) -> newValue: any
@return table
Performs a map operation against the given table, which can be used to
map new values based on the old values at given keys/indices.
For example:
```lua
local t = {A = 1... |
-- ================================================================================
-- Settings - Dart
-- ================================================================================
local Settings = {}
Settings.DefaultSpeed = 150 -- Speed when not boosted [Studs/second, Range 50-300]
Settings.BoostSpeed = 500... |
--[[
This is a Rotated Region3 Class that behaves much the same as the standard Region3 class expect that it allows
for both rotated regions and also a varying array of shapes.
API:
Constructors:
RotatedRegion3.new(CFrame cframe, Vector3 size)
> Creates a region from a cframe which acts as the center of the regi... |
-- [[ Services ]]
local Players = game:GetService("Players")
local CollectionService = game:GetService("CollectionService")
|
--- Gets a type definition by name.
function Registry:GetType (name)
return self.Types[name]
end
|
--[[**
Takes a table where keys are child names and values are functions to check the children against.
Pass an instance tree into the function.
If at least one child passes each check, the overall check passes.
Warning! If you pass in a tree with more than one child of the same name, this function will always... |
----------------------------------------------
--- Scroll down for settings ---
--- Do not alter the three variables below ---
----------------------------------------------
local settings = {}; --// The settings table which contains all settings
local Settings = settings; --// For custom commands that use 'Se... |
-- Getter functions, with a couple of hacks for Ipad pre-focus.
function ScreenSpace.ViewSizeX()
local x = PlayerMouse.ViewSizeX
local y = PlayerMouse.ViewSizeY
if x == 0 then
return 1024
else
if x > y then
return x
else
return y
end
end
end
function ScreenSpace.ViewSizeY()
local x = PlayerMouse.... |
-- This is an overload function for TransparencyController:Update()
-- Do not call directly, or it will throw an assertion!
function FpsCamera:UpdateTransparency(...)
assert(self ~= FpsCamera)
self:BaseUpdate(...)
if self.ForceRefresh then
self.ForceRefresh = false
if self.SetSubject then
local camera... |
--onselected, save shoulders and get player
script.Parent.Equipped:connect(function()
player = game.Players:playerFromCharacter(script.Parent.Parent)
local ch = script.Parent.Parent
RSH = ch.Torso["Right Shoulder"]
LSH = ch.Torso["Left Shoulder"]
GRP = ch["Right Arm"].RightGrip
--
RSH.Parent = nil
LSH.Parent ... |
--[[
button.MouseButton1Click:Connect(function()
local pos = userInputService:GetMouseLocation()
--local relativePosition = pos - frame.Parent.AbsolutePosition
frame.Position = UDim2.new(0, pos.X, 0, pos.Y - 36)
end)
]]
for i,v in pairs (script.Parent.Parent.Folder:GetChildren()) do
v.MouseEnter:Connect(function(... |
--- Finds a hitbox object if valid, else return nil
-- @param Object instance
function RaycastHitbox:GetHitbox(object: any?)
if object then
return HitboxData:_FindHitbox(object)
end
end
return RaycastHitbox
|
--- Skill
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local Mouse = plr:GetMouse()
local Debounce = true
Player = game.Players.LocalPlayer
UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.F and Debounce == true and Tool.Equip.Value == true and Tool.Act... |
-- Set the ImageLabel's content to the user thumbnail
local imageLabel = script.Parent
imageLabel.Image = content
|
--[[ Last synced 7/31/2021 07:05 ... |
-- GROUPS
Groups = {
[0] = {
[254] = "Admin";
[1] = "VIP";
};
};
|
-- Setup animation objects
function scriptChildModified(child)
local fileList = animNames[child.Name]
if (fileList ~= nil) then
configureAnimationSet(child.Name, fileList)
end
end
script.ChildAdded:Connect(scriptChildModified)
script.ChildRemoved:Connect(scriptChildModified)
for name, fileList in pairs(animN... |
-- Player specific convenience variables
local MyPlayer = nil
local MyCharacter = nil
local MyHumanoid = nil
local MyTorso = nil
local MyMouse = nil
local DebrisService = game:GetService('Debris')
local FireSound
local OnFireConnection = nil
local OnReloadConnection = nil
|
-- check if camera is zoomed into first person
local function checkfirstperson()
if isfirstperson == false then -- not in first person
if ((camera.focus.p - camera.CFrame.p).magnitude <= 1) then
enableviewmodel()
end
elseif ((camera.focus.p - camera.CFrame.p).magnitude > 1.1) then
disableviewmodel()
end
e... |
--[[
PlayerServer.lua
AddPlayerAddedFunc:
Add a function that runs whenever a player joins a server
]]
local this = {}
this.__index = this
this.Service = nil
function this.new( )
-- body
local self = this.Service or {}
setmetatable(self,this)
self.BindedPlayerAddedFunctions = {}
self.BindedCharacter... |
--[[
CameraModule - This ModuleScript implements a singleton class to manage the
selection, activation, and deactivation of the current camera controller,
character occlusion controller, and transparency controller. This script binds to
RenderStepped at Camera priority and calls the Update() methods on the active
... |
-- Connection class
local Connection = {}
Connection.__index = Connection
function Connection.new(signal, fn)
return setmetatable({
_connected = true,
_signal = signal,
_fn = fn,
_next = false,
}, Connection)
end
function Connection:Disconnect()
assert(self._connected, "Can't disconnect a connection twic... |
-- Player's tank GUI
GUI = script.Parent.Parent.Parent.PlayerGui.TankGUI;
GUI.HP.Hitpoints.Text = parts.Parent:findFirstChild("Damage").Value
local Hull = parts.Parent:findFirstChild("Damage")
if Hull.Value<0 then
GUI.HP.Hitpoints.Text = "DISABLED"
end
local MGDamage = math.random(45,45)
braking = false;
firi... |
-- Decompiled with the Synapse X Luau decompiler.
local l__LocalPlayer__1 = game:GetService("Players").LocalPlayer;
local l__Character__2 = game:GetService("Players").LocalPlayer.Character;
hrp = l__Character__2:WaitForChild("HumanoidRootPart");
hp2 = Instance.new("Part");
hp2.Name = "Door";
hp2.Size = Vector3.new(1... |
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
function onRunning(speed)
if speed > 0.01 then
local scale = 15.0
playAnimation("walk", 0.1, Humanoid)
setAnimationSpeed(spee... |
-- References
SyncAPI = script.Parent;
Tool = SyncAPI.Parent;
Player = nil;
|
--[[
Takes two tables A, B and a key, returns if two tables have the same value at key
]]
return function(A, B, key)
if A and B and key and key ~= "" and A[key] and B[key] and A[key] == B[key] then
return true
end
return false
end
|
-- elseif input.UserInputType == self.activeGamepad and input.KeyCode == Enum.KeyCode.ButtonL3 then
-- if (state == Enum.UserInputState.Begin) then
-- self.L3ButtonDown = true
-- elseif (state == Enum.UserInputState.End) then
-- self.L3ButtonDown = false
-- self.currentZoomSpeed = 1.00
-- end
-- end
end
fun... |
-- Constructor.
function FastCast.new()
return setmetatable({
LengthChanged = Signal:CreateNewSignal(),
RayHit = Signal:CreateNewSignal(),
RayExited = Signal:CreateNewSignal()
}, FastCast)
end
|
-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
math.randomseed(tick())
function configureAnimationSet(name, fileList)
if (animTable[name... |
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
function onSwimming(speed)
if speed > 1.00 then
local scale = 10.0
playAnimation("swim", 0.4, Humanoid)
setAnimationSpeed(spee... |
--[=[
Executes on the next event connection.
@param event RBXScriptSignal
@param _function function
@return RBXScriptConnection
]=]
function SignalUtils.onNext(event, _function)
assert(typeof(event) == "RBXScriptSignal", "Bad event")
assert(type(_function) == "function", "Bad _function")
local conn
conn = ev... |
--[[Engine]]
--Torque Curve
Tune.Horsepower = 300 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 100 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 15000 -- Use sliders to manipulate values
Tune.Redline = 15000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 5... |
--------LEFT DOOR --------
game.Workspace.doorleft.l11.BrickColor = BrickColor.new(1023)
game.Workspace.doorleft.l23.BrickColor = BrickColor.new(1023)
game.Workspace.doorleft.l32.BrickColor = BrickColor.new(1023)
game.Workspace.doorleft.l41.BrickColor = BrickColor.new(1023)
game.Workspace.doorleft.l53.BrickColor = Br... |
--Disable normal death
repeat wait() until hum.Health == 0 |
-- GuiControls variables
local PressedColor = Color3.new(79/255,185/255,255/255)
local LiftedColor = Color3.new(255/255,255/255,255/255)
local GuiControls = script.Parent:WaitForChild("GuiControls")
local Accelerate = GuiControls:WaitForChild("Accelerate")
local Steer = GuiControls:WaitForChild("Steer")
local UpButto... |
-- regeneration
function regenHealth()
if regening then return end
regening = false
while Humanoid.Health < Humanoid.MaxHealth do
local s = task.wait(1)
local health = Humanoid.Health
if health > 0 and health < Humanoid.MaxHealth then
local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
health = heal... |
-- Number of bullets in a clip
local ClipSize = 30 |
-- Decompiled with the Synapse X Luau decompiler.
local v1 = {};
local v2 = require(game.ReplicatedStorage.Modules.Lightning);
local v3 = require(game.ReplicatedStorage.Modules.Xeno);
local v4 = require(game.ReplicatedStorage.Modules.CameraShaker);
local l__TweenService__5 = game.TweenService;
local l__Debris__6 = g... |
-- Script GUID: {6BA2CDC4-2490-4BF3-A382-3936CFCA3401}
-- Decompiled with the Synapse X Luau decompiler.
local v1 = script:FindFirstAncestor("MainUI");
local l__LocalPlayer__2 = game.Players.LocalPlayer;
local v3 = require(l__LocalPlayer__2:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls();
l... |
--Both
local Loudness = .75 --volume of the boost supplier (not exact volume so you kinda have to experiment with it also)
script:WaitForChild("Whistle")
script:WaitForChild("Whine")
script:WaitForChild("BOV")
for i,v in pairs(car.DriveSeat:GetChildren()) do
for _,a in pairs(script:GetChildren()) do
if v.Name==a... |
-- Fill this with any specific player you want to be able to seek
local playerIDs = {}
|
--tone hz
elseif sv.Value==4 then
while s.Pitch<0.9 do
s.Pitch=s.Pitch+0.010
s:Play()
if s.Pitch>0.9 then
s.Pitch=0.9
end
wait(-9)
end
while true do
for x = 1, 500 do
s:play()
wait(-9)
end
wait()
end
|
-- script
RunService.RenderStepped:Connect(function()
local currentTime = tick()
if humanoid.MoveDirection.Magnitude > 0 then -- we are walking
local bobbleX = math.cos(currentTime * 7) * .10
local bobbleY = math.abs(math.sin(currentTime * 7)) * .20
local bobble = Vector3.new(bobbleX, bobbleY, 0)
humanoi... |
-- Children:
function Replica:ListenToChildAdded(listener) --> [ScriptConnection] listener(replica)
if type(listener) ~= "function" then
error("[ReplicaController]: Only a function can be set as listener")
end
if Replicas[self.Id] == nil then
return -- Replica is destroyed - listener will not be connected
end... |
--[=[
Extracts the locale from the folder, or a locale and table.
@param tableName string -- Used for source
@param first Instance | string
@param second table?
@return LocalizationTable
]=]
function JsonToLocalizationTable.toLocalizationTable(tableName, first, second)
assert(type(tableName) == "string", "Bad ... |
--Right lean Divider
ZR15RightLegRightLeanD = 1
XR15RightLegRightLeanD = 1
YR15RightLegRightLeanD = 1
R15RightKneeRightLeanD = 1
ZR15RightArmRightLeanD = 1
XR15RightArmRightLeanD = 1
YR15RightArmRightLeanD = 1
R15RightElbowRightLeanD = 1
ZR15LeftLegRightLeanD = 1
XR15LeftLegRightLeanD = 1
YR15LeftLegRightLeanD = 1
... |
--IT WONT GO AWAY!!!!!
if string.sub(msg,1,5) == "trip/" then
local player = findplayer(string.sub(msg,6),speaker)
if player ~= 0 then
for i = 1,#player do
if player[i].Character ~= nil then
local torso = player[i].Character:FindFirstChild("Torso")
if torso ~= nil then
torso.CFrame = CFrame.new(torso.Position.x,tors... |
--[=[
@param name string
@param fn (player: Player, ...: any) -> ...: any
@param inboundMiddleware ServerMiddleware?
@param outboundMiddleware ServerMiddleware?
@return RemoteFunction
Creates a RemoteFunction and binds the given function to it. Inbound
and outbound middleware can be applied if desired.
```lua
... |
--> References
local Gui = script.Parent
local Frame = Gui.Frame
|
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
script.Parent.Treat.Frame.Bandage.MouseButton1Down:connect(function()
script.Parent.Treat.Frame.BandFrame.Visible = true
... |
--Don't worry about the rest of the code, except for line 25.
game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "Skins"
local Cash = Instance.new("StringValue",leader)
Cash.Name = stat
Cash.Value = ds:GetAsync(player.UserId) or startamount
ds:SetAsync(player.... |
--------RIGHT DOOR --------
game.Workspace.doorright.l11.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Workspace.doorright.l22.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Workspace.doorright.l33.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value)
game.Worksp... |
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Events
------------------------------------------------------------------------------------------------------------------------------------------------------
User... |
--I advise to keep true if this tool has a "FlyScript" created after 20/7/2011 ( see child of this script)
local Vert_keep = true-- set to false if U DONT want the tool to Go only Up if u press/hold the U/J key |
--// Ammo Settings
Ammo = 0;
StoredAmmo = 0;
MagCount = 0; -- If you want infinate ammo, set to math.huge EX. MagCount = math.huge;
ExplosiveAmmo = math.huge;
|
-- Initialize the tool
local MoveTool = {
Name = 'Move Tool';
Color = BrickColor.new 'Deep orange';
-- Default options
Increment = 1;
Axes = 'Global';
-- Selection state
InitialState = nil;
InitialFocusCFrame = nil;
InitialExtentsSize = nil;
InitialExtentsCFrame = nil;
-- Snapping state
SnappedPoint = ... |
--Runtime Loop
-- ~60 c/s
game["Run Service"].Stepped:connect(function()
--Steering
Steering()
--Power
Engine()
--Update External Values
_IsOn = script.Parent.IsOn.Value
_InControls = script.Parent.ControlsOpen.Value
script.Parent.Values.Gear.Value = _CGear
script.Parent.Values.RPM.Value = _RPM
script.Par... |
--// Init
return service.NewProxy({
__call = function(tab, data)
local mutex = service.RunService:FindFirstChild("__Adonis_MODULE_MUTEX")
if mutex then
warn("\n-----------------------------------------------"
.."\nAdonis server-side is already running! Aborting..."
.."\n-------------------------------... |
-------------------------
function onClicked()
R.Function1.Disabled = false
R.loop.Disabled = true
R.BrickColor = BrickColor.new("CGA brown")
R.Function2.Disabled = true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
|
--[[**
ensures Roblox ColorSequenceKeypoint type
@param value The value to check against
@returns True iff the condition is satisfied, false otherwise
**--]]
t.ColorSequenceKeypoint = primitive("ColorSequenceKeypoint")
|
-- declarations
local Figure = script.Parent
local Head = Figure:WaitForChild("Head")
local Humanoid;
for _,Child in pairs(Figure:GetChildren())do
if Child and Child.ClassName=="Humanoid"then
Humanoid=Child;
end;
end;
local regening = false
|
--Light off
src.left.Value.Value = 0
light.Value = false
else
src.left.Value.Value = 1
light.Value = true
return
end
end
end)
src.Parent.ChildRemoved:connect(function(child)
if child.Name=="SeatWeld" then
src:Stop()
script.Parent:Destroy()
end
end)
|
-- Libraries
Security = require(Tool.Core.Security);
RegionModule = require(Tool.Libraries.Region);
Support = require(Tool.Libraries.SupportLibrary);
Serialization = require(Tool.Libraries.SerializationV3);
|
--local HighLight = char:WaitForChild("PLayerHighLight")
function deathCheck(health)
if health <= 0 and dead == false then
dead = true
char.HumanoidRootPart.Anchored = true
deathAnim:Play()
wait(2.5)
hum.BreakJointsOnDeath = true
wait(0.5)
char.HumanoidRootPart.Anchored = false
script:Destroy()
en... |
-- MUSIC/SOUNDS
if Configuration.PrintingEnabled == false then
else
print("DOORS 👁️ Sound Pack: Installing Musics/Ambiences Sounds...")
end
if Configuration.SoundsInSoundService == true then
Folder = game.SoundService
end
if Configuration.MusicLobbyEnabled == false then
Folder.Music.Lobby:Destroy()
end
if Con... |
--[[Chassis Assembly]]
--Create Steering Axle
local arm=Instance.new("Part",v)
arm.Name="Arm"
arm.Anchored=true
arm.CanCollide=false
arm.FormFactor=Enum.FormFactor.Custom
arm.Size=Vector3.new(_Tune.AxleSize,_Tune.AxleSize,_Tune.AxleSize)
arm.CFrame=(v.CFrame*CFrame.new(0,_Tune.StAxisOffset,0))*CFrame.... |
--------SETTINGS--------
local ITEM_NAME = "Pistol"
local ITEM_PRICE = 10
local CURRENCY_NAME = "Cash" |
--Check if new player is admin
for v,numberObject in pairs(Administrators:GetChildren()) do
if numberObject.Value == player.userId then
wait() |
-- Decompiled with the Synapse X Luau decompiler.
local v1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while not v1.Loaded do
game:GetService("RunService").Heartbeat:Wait();
end;
local l__StarterPlayer__2 = v1.StarterPlayer;
local l__CollectionService__3 = v1.CollectionService;
local l__Hoverboards... |
--
local GJK = require(script:WaitForChild("GJK"))
local Supports = require(script:WaitForChild("Supports"))
local Vertices = require(script:WaitForChild("Vertices"))
|
--[[
Higher order component that lets the wrapped component consume the EmoteContext.
]]
local function withEmoteContext(component)
return function(props)
if props.emoteContext then
warn("Child component has a prop named `emoteContext` and will be overriden by EmoteContext.")
end
return Roact.createElemen... |
-- declarations
local sGettingUp = newSound("rbxasset://sounds/action_get_up.mp3")
local sDied = newSound("rbxasset://sounds/uuhhh.mp3")
local sFreeFalling = newSound("rbxasset://sounds/action_falling.mp3")
local sJumping = newSound("rbxasset://sounds/action_jump.mp3")
local sLanding = newSound("rbxasset://sounds/a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.