text stringlengths 52 99.8k |
|---|
--[[Wheel Configuration]]
--Store Reference Orientation Function
function getParts(model,t,a)
for i,v in pairs(model:GetChildren()) do
if v:IsA("BasePart") then table.insert(t,{v,a.CFrame:toObjectSpace(v.CFrame)})
elseif v:IsA("Model") then getParts(v,t,a)
end
end
end
--PGS/Legacy
local fDensit... |
--[[**
ensures Roblox BrickColor type
@param value The value to check against
@returns True iff the condition is satisfied, false otherwise
**--]]
t.BrickColor = t.typeof("BrickColor")
|
-- Choose current Touch control module based on settings (user, dev)
-- Returns module (possibly nil) and success code to differentiate returning nil due to error vs Scriptable
function ControlModule:SelectTouchModule(): ({}?, boolean)
if not UserInputService.TouchEnabled then
return nil, false
end
local touchMo... |
--------------------------CHARACTER CONTROL-------------------------------
local CurrentIgnoreList
local CurrentIgnoreTag = nil
local TaggedInstanceAddedConnection = nil
local TaggedInstanceRemovedConnection = nil
local function GetCharacter()
return Player and Player.Character
end
local function UpdateIgnoreTag(... |
-- Preload animations
function playAnimation(animName, transitionTime, humanoid)
local roll = math.random(1, animTable[animName].totalWeight)
local origRoll = roll
local idx = 1
while (roll > animTable[animName][idx].weight) do
roll = roll - animTable[animName][idx].weight
idx = idx + 1
end |
-- variables
local shots = {}
local cancels = {}
|
-- [[ VR Support Section ]] --
function BaseCamera:ApplyVRTransform()
if not VRService.VREnabled then
return
end
--we only want this to happen in first person VR
local rootJoint = self.humanoidRootPart and self.humanoidRootPart:FindFirstChild("RootJoint")
if not rootJoint then
return
end
local cameraSub... |
--[[*
* This class is a perf optimization for sorting the list of currently
* running tests. It tries to keep tests in the same positions without
* shifting the whole list.
]]
type CurrentTestList = {
add: (self: CurrentTestList, testPath: Config_Path, config: Config_ProjectConfig) -> (),
delete: (self: Current... |
--[[
A utility script that generates readable dates
]]
local ReadableDate = {}
local DEFAULT_FORMAT = "$hour:$sec $day/$month/$year"
|
-- float rd_flt_be(string src, int s)
-- @src - Source binary string
-- @s - Start index of big endian float
local function rd_flt_be(src, s)
local f1, f2, f3, f4 = string.byte(src, s, s + 3)
return rd_flt_basic(f4, f3, f2, f1)
end
|
--samy22
d = false
function onTouched(hit)
if d == false then
h = hit.Parent:findFirstChild("Torso")
if (h~=nil) then
d = true
gg = math.random(1,20)
if gg == 4 then
h.CFrame = h.CFrame * CFrame.Angles(0,0,math.rad(100))
end
if script.dmg.Value == true then
hum = h.Parent:findFirstChild("Humanoid")
if hum then
hum.H... |
-- { id = "slash.xml", weight = 10 }
},
toollunge = {
{ id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
},
wave = {
{ id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
},
point = {
{ id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
},
dan... |
--]]
function getHumanoid(model)
for _, v in pairs(model:GetChildren()) do
if v:IsA'Humanoid' then
return v
end
end
end
local ai = script.Parent
local human = getHumanoid(ai)
local hroot = ai.HumanoidRootPart
local zspeed = hroot.Velocity.magnitude
local pfs = game:GetService("PathfindingService")
fun... |
---------------------------------------------------------------|
---------------------------------------------------------------|
---------------------------------------------------------------|
local Debris = game.Debris
local Engine = game.ReplicatedStorage:WaitForChild("ACS_Engine")
local Evt = Engine:WaitForChil... |
--[[Wheel Alignment]]
--[Don't physically apply alignment to wheels]
--[Values are in degrees]
Tune.FCamber = 0
Tune.RCamber = 0
Tune.FCaster = 0
Tune.RCaster = 0
Tune.FToe = 0
Tune.RToe = 0
|
-- Ammo
plr.Character.ChildAdded:connect(function(oc)
if (oc:IsA("Tool") or oc:IsA("HopperBin")) and oc:FindFirstChild("Ammo") and oc:FindFirstChild("AmmoLeft") then
--gui.Ammo.Text = oc.Ammo.Value.."/"..oc.AmmoLeft.Value
oc.Ammo.Changed:connect(function(v)
--gui.Ammo.Text = oc.Ammo.Value.."/"..oc.AmmoLeft.V... |
-- !! the marked -- things are optional ...delete these -- marks to give the function a random chance to be activated.
|
--edit the function below to return true when you want this response/prompt to be valid
--player is the player speaking to the dialogue, and dialogueFolder is the object containing the dialogue data
return function(player, dialogueFolder)
local plrData = require(game.ReplicatedStorage.Source.Modules.Util):GetPlayerD... |
--[=[
Use to test that the given GuiObject or Rect is to the right of the other GuiObject or Rect.
The last argument is optional. If nil, the matcher will pass only if the difference **left** edge of the given GuiObject or Rect and the **right** edge of the other GuiObject or Rect is zero or positive.
Usage:
```... |
--[=[
@return boolean
Returns `true` if the option has a value.
]=]
function Option:IsSome()
return self._s
end
|
--- Replace with true/false to force the chat type. Otherwise this will default to the setting on the website.
module.BubbleChatEnabled = PlayersService.BubbleChat
module.ClassicChatEnabled = PlayersService.ClassicChat
|
--[[
Spawns a thread with predictable timing.
]]
function Promise.spawn(callback, ...)
local args = { ... }
local length = select("#", ...)
local connection
connection = RunService.Heartbeat:Connect(function()
connection:Disconnect()
callback(unpack(args, 1, length))
end)
end
|
--[=[
Returns if a string starts with a postfix
@param str string
@param prefix string
@return boolean
]=]
function String.startsWith(str: string, prefix: string): boolean
return str:sub(1, #prefix) == prefix
end
|
--[[Configuration]]
--
local looped = true -- If you set this to true, then the song that is currently playing will restart and play over again.
local pitch = 1
local volume = 1
local songPlayTime = 300 -- Seconds until the song will stop, I recommending leaving this at 120, since all ROBLOX Audios are now 120 seconds... |
--// Although this feature is pretty much ready, it needs some UI design still.
module.RightClickToLeaveChannelEnabled = false
module.MessageHistoryLengthPerChannel = 50 |
--!native
local Numpy = {}
local CanvasDraw = require(script.Parent.CanvasDraw)
function Numpy.Flat(val, width, height)
local temp = {}
for y = 0, height-1 do
for x = 0, width-1 do
local baseIndex = y * width * 4 + x * 4
temp[baseIndex + 1] = val -- Red channel
temp[baseIndex + 2] = val -- Green chann... |
-- When Tool Equipped
tool.Equipped:Connect(function()
track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
track1 = script.Parent.Parent.Humanoid:LoadAnimation(anim1)
track.Priority = Enum.AnimationPriority.Movement
track1.Priority = Enum.AnimationPriority.Movement
track.Looped = true
track:Play()
track1... |
--------------------------------------------------------------------------------------
--------------------[ VARIABLES ]-----------------------------------------------------
--------------------------------------------------------------------------------------
local Selected = false
local playerMass = 0
local Forw... |
--[[
___ _______ _
/ _ |____/ ___/ / ___ ____ ___ (_)__
/ __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-<
/_/ |_| \___/_//_/\_,_/___/___/_/___/
SecondLogic @ Inspare
]]
wait(2.5)
local FE = workspace.FilteringEnabled
local car = script.Parent.Car.Value
local handler = car:WaitForCh... |
--//State of Rockport\\--
--\\CREDITS:brian5001//--
|
--------------------------------------------
game:GetService("RunService").Heartbeat:Connect(function()
rWait(UpdateDelay)
local TrsoLV = Trso.CFrame.lookVector
local HdPos = Head.CFrame.p
local player = getClosestPlayer()
local LookAtPart
if Neck or Waist then
if player then
local success, err = pcall(fu... |
-- Signal class
local Signal = {}
Signal.__index = Signal
function Signal.new()
return setmetatable({
_handlerListHead = false,
}, Signal)
end
function Signal:Connect(fn)
local connection = Connection.new(self, fn)
if self._handlerListHead then
connection._next = self._handlerListHead
self._handlerListHea... |
-- functions
function onRunning(speed)
if speed>0 then
pose = "Running"
else
pose = "Standing"
end
end
function onDied()
pose = "Dead"
end
function onJumping()
pose = "Jumping"
end
function onClimbing()
pose = "Climbing"
end
function onGettingUp()
pose = "GettingUp"
end
function onFreeFall()
pose = ... |
-------------------------
while true do
R.BrickColor = BrickColor.new("Really red")
wait(0.3)
R.BrickColor = BrickColor.new("Really black")
wait(0.3)
end
|
------------------------------------------------------------------------
do
local enabled = false
local function ToggleFreecam()
if enabled then
StopFreecam()
else
StartFreecam()
end
enabled = not enabled
end
local function CheckMacro(macro)
for i = 1, #macro - 1 do
if not UserInputService:I... |
--[[OMG YAY! First ever reply system, I'll be doing ALLOT of work on this.. It'll end up to be let's say..
1000+ lines of mixtures of letters forsay? I wanna make this good!]]
hichats = {"Hi","Hello","oh hi","Hi!","Oh hey","Hey","What do you want","What's up"}
local head = script.Parent.Head
function onPlayerEnter... |
-- 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... |
--[[ Local Functions ]]
--
function MouseLockController:OnMouseLockToggled()
self.isMouseLocked = not self.isMouseLocked
if self.isMouseLocked then
local cursorImageValueObj: StringValue? = script:FindFirstChild("CursorImage") :: StringValue?
if cursorImageValueObj and cursorImageValueObj:IsA("StringValue") and... |
-- Sets the parent of all cached parts.
function PartCacheStatic:SetCacheParent(newParent: Instance)
assert(getmetatable(self) == PartCacheStatic, ERR_NOT_INSTANCE:format("SetCacheParent", "PartCache.new"))
assert(newParent:IsDescendantOf(workspace) or newParent == workspace, "Cache parent is not a descendant of Wo... |
-- Adds user timing marks for e.g. state updates, suspense, and work loop stuff,
-- for an experimental scheduling profiler tool.
exports.enableSchedulingProfiler = _G.__PROFILE__ and _G.__EXPERIMENTAL__
|
-- if math.abs(g) > 0 then
--
-- end
end
F.pbrake = function(x)
if x then carSeat.PBt:Play()
else carSeat.PBf:Play()
end
end
F.updateValue = function(Val, Value)
if Val then
Val.Value = Value
end
end
F.FMSwitch = function(FM)
if carSeat.Stations.mood.Value == 5 then
carSeat.Parent.Body.MP.Sound:Stop()... |
--[[ Last synced 10/19/2020 07:16 ... |
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- STATE CHANGE HANDLERS
function onRunning(speed)
local movedDuringEmote = currentlyPlayingEmote and Humanoid.MoveDirection == Vect... |
-- Represents a CastStateInfo :: https://etithespirit.github.io/FastCastAPIDocs/fastcast-objects/caststateinfo/
export type CastStateInfo = {
UpdateConnection: RBXScriptSignal,
HighFidelityBehavior: number,
HighFidelitySegmentSize: number,
Paused: boolean,
Delta: number,
TotalRuntime: number,
TotalRuntime2: nu... |
--[[
CameraShaker.CameraShakeInstance
cameraShaker = CameraShaker.new(renderPriority, callbackFunction)
CameraShaker:Start()
CameraShaker:Stop()
CameraShaker:Shake(shakeInstance)
CameraShaker:ShakeSustain(shakeInstance)
CameraShaker:ShakeOnce(magnitude, roughness [, fadeInTime, fadeOutTime, posInfluence, r... |
--[=[
@interface Middleware
.Inbound ClientMiddleware?
.Outbound ClientMiddleware?
@within KnitClient
]=]
type Middleware = {
Inbound: ClientMiddleware?,
Outbound: ClientMiddleware?,
}
|
-- Left Arm
character:FindFirstChild("RightUpperLeg").LocalTransparencyModifier = 0
character:FindFirstChild("RightLowerLeg").LocalTransparencyModifier = 0
character:FindFirstChild("RightFoot").LocalTransparencyModifier = 0 |
--returns the wielding player of this tool
function getPlayer()
local char = Tool.Parent
return game:GetService("Players"):GetPlayerFromCharacter(Character)
end
function Toss(direction)
local handlePos = Vector3.new(Tool.Handle.Position.X, 0, Tool.Handle.Position.Z)
local spawnPos = Character.Head.Position
spaw... |
-- CONSTANTS
local FORMAT_STR = "Maid does not support type \"%s\""
local DESTRUCTORS = {
["function"] = function(item)
item()
end;
["RBXScriptConnection"] = function(item)
item:Disconnect()
end;
["Instance"] = function(item)
item:Destroy()
end;
}
|
-- Style Options
Flat=true; -- Enables Flat theme / Disables Aero theme
ForcedColor=false; -- Forces everyone to have set color & transparency
Color=Color3.new(0,0,0); -- Changes the Color of the user interface
ColorTransparency=.75; -- Changes the Transparency of the user interface
Chat=false; -- En... |
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- STATE CHANGE HANDLERS
function onRunning(speed)
if speed > 0.5 then
local scale = 16.0
playAnimation("walk", 0.2, Humanoid)
... |
--[[
Init function that creates all the rooms
]]
function RoomManager.init()
local roomModels = CollectionService:GetTagged(Constants.Tag.Room)
for _, model in pairs(roomModels) do
local room = rooms:add(model)
room.stateChanged:Connect(RoomManager._updateStatusValues)
end
RoomManager._flashAlerts()
Room... |
--create tables:
for i,part in pairs(model:GetChildren()) do
if string.sub(part.Name, 1,1) == "c" then
table.insert(c, 1, part)
end
end
for i,part in pairs(model:GetChildren()) do
if string.sub(part.Name, 1,1) == "d" then
table.insert(d, 1, part)
end
end
function lightOn(T)
for i, part in pairs (T) do
if ... |
-- Create sound instance
local currentSound = Instance.new("Sound", character.HumanoidRootPart)
currentSound.Name = "CurrentSound"
currentSound.RollOffMode = Enum.RollOffMode.InverseTapered -- you can experiment with this value
currentSound.RollOffMinDistance = 10 -- When should the sound start fading out? (... |
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Stance.OnServerEvent:conne... |
--[[ The Module ]]
--
local MouseLockController = {}
MouseLockController.__index = MouseLockController
function MouseLockController.new()
local self = setmetatable({}, MouseLockController)
self.isMouseLocked = false
self.savedMouseCursor = nil
self.boundKeys = {Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift} --... |
-- KEY SETTINGS
local Headlights = Enum.KeyCode.H
local RunningLights = Enum.KeyCode.N
local FogLights = Enum.KeyCode.J
local SignalLeft = Enum.KeyCode.Z
local SignalRight = Enum.KeyCode.C
local Hazards = Enum.KeyCode.X
local Popups = Enum.KeyCode.B
local Flash = Enum.KeyCode.L
|
-- BEHAVIOUR
--Controller support
coroutine.wrap(function()
-- Create PC 'Enter Controller Mode' Icon
runService.Heartbeat:Wait() -- This is required to prevent an infinite recursion
local Icon = require(iconModule)
local controllerOptionIcon = Icon.new()
:setProperty("internalIcon", true)
:setName("_Topbar... |
--Leaving
Players.PlayerRemoving:Connect(function(plr)
local leavedata =
{
["contents"] = "",
["username"] = plr.Name .. " - (#"..plr.userId..")",
["avatar_url"] = "https://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&userId="..plr.userId,
["embeds"] = {{
["title"]= plr.name,
["descriptio... |
--[[ Controls State Management ]]
--
local onControlsChanged = nil
if IsTouchDevice then
createTouchGuiContainer()
onControlsChanged = function()
local newModuleToEnable = nil
local isJumpEnabled = false
if not IsUserChoice then
if DevMovementMode == Enum.DevTouchMovementMode.Thumbstick then
newModuleTo... |
------------------------------------
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local teleportfrom=script.Parent.Enabled.Value
if teleportfrom~=0 then
if h==humanoid then
return
end
local teleportto=script.Parent.Paren... |
--[[
local cosmeticData = require(game.ReplicatedStorage.Cosmetics5)
for hairName,data in next,cosmeticData.hairs do
local newButton = game.StarterGui.SpawnGui.Customization.Appearance.HairFrame.Template:Clone()
newButton.Name = hairName
print("loading",hairName)
newButton.Image = data.image
if data.loc... |
--------Main Events----------
local Events = Tool:WaitForChild("Events")
local ShootEvent = Events:WaitForChild("ShootRE")
local CreateBulletEvent = Events:WaitForChild("CreateBullet")
pcall(function()
script.Parent:FindFirstChild("ThumbnailCamera"):Destroy()
script.Parent:WaitForChild("READ ME"):Destroy()
if n... |
-- local AttackRange, FieldOfView, AggroRange, ChanceOfBoredom, BoredomDuration,
-- Damage, DamageCooldown
local configTable = model.Configurations
local configs = {}
local function loadConfig(configName, defaultValue)
if configTable:FindFirstChild(configName) then
configs[configName] = configTable:FindFir... |
-- ROBLOX TODO: ADO-1552 add inline_snapshots imports when we support this
-- functionality
local types = require(CurrentModule.types) |
-- ROBLOX TODO START: implement missing RegExp when 'g' flag available (or reimplement without RegExp)
local REGEX_SPECIAL_CHARS = Constants.REGEX_SPECIAL_CHARS |
-- Customization
AntiTK = false; -- Set to false to allow TK and damaging of NPC, true for no TK. (To damage NPC, this needs to be false)
MouseSense = 0.5;
CanAim = true; -- Allows player to aim
CanBolt = false; -- When shooting, if this is enabled, the bolt will move (SCAR-L, ACR, AK Series)
LaserAttached ... |
--ChopperSwitch
function KeepChopperActive()
repeat wait()
ChopperVal.Value = true
until ChopperSwch.Value == false or Power.Value == false
ChopperVal.Value = false
end
ChopperSwch.Changed:Connect(function()
if ChopperSwch.Value == true then
ChopperSwch.Parent.P1.Transparency = 1
ChopperSwch.Parent.P2.Tra... |
--wait(0.6)
--Lights.BrickColor = BrickColor.new("Really black")
--wait(3.9)
script.Disabled = true
|
------------------------------------
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local teleportfrom=script.Parent.Enabled.Value
if teleportfrom~=0 then
if h==humanoid then
return
end
local teleportto=script.Parent.Parent:findFirstChild... |
--------RIGHT DOOR --------
game.Workspace.doorright.l11.BrickColor = BrickColor.new(133)
game.Workspace.doorright.l12.BrickColor = BrickColor.new(133)
game.Workspace.doorright.l13.BrickColor = BrickColor.new(133)
game.Workspace.doorright.l41.BrickColor = BrickColor.new(133)
game.Workspace.doorright.l42.BrickColor = ... |
-- move the shelly to the newfound goal
bg.CFrame = CFrame.new(shelly.PrimaryPart.Position,goal)
bp.Position = (CFrame.new(shelly.PrimaryPart.Position,goal)*CFrame.new(0,0,-100)).p
local start = tick()
repeat task.wait(1/2)
local ray = Ray.new(shelly.PrimaryPart.Position,Vector3.new(0,-1000,0)) |
--// Variables
local Player = game.Players.LocalPlayer
local Frame = script.Parent
local BUYB = Frame.BUY
local Price = Frame.Price
|
--[[
Determines which paid emotes the user owns and returns them through the
provided callback
Parameters:
player - the player used to check ownership
callback - the function to call once all paid emotes have been checked
]]
function EmoteManager:getOwnedEmotesAsync(player, callback)
local ownedEmotes = {}
lo... |
-- When the player gets closer than WAVE_THRESHOLD, NPC will wave.
-- Will not wave again until the player goes outside of WAVE_THRESHOLD again.
local WAVE_THRESHOLD = 20 -- studs
local WAVE_DEBOUNCE_TIME = 3 -- seconds
|
--tables
--functions
--main
while true do --loop
local selectedcolor = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
for i,v in pairs(tiles) do --go through all tiles inside of model
if v.Name == "tile" then --if name is tile then continue
v.Color = selectedcolor
end
... |
--Precalculated paths
local t,f,n=true,false,{}
local r={
[58]={{54,53,52,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58},t},
[49]={{54,53,52,47,48,49},t},
[16]={n,f},
[19]={{54,53,52,47,48,49,45,44,28,29,31,32,34,35,39,41,30,56,58,20,19},t},
[59]={{54,53,52,47,48,49,45,44,28,29,31,32,34,35,39,41,59},t},
[63]={{54,5... |
--[[Susupension]]
Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled
--Front Suspension
Tune.FSusDamping = 500 -- Spring Dampening
Tune.FSusStiffness = 12000 -- Spring Force
Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening)
Tune.FSusLength = ... |
--[[**
ensure value is an Instance and it's ClassName matches the given ClassName by an IsA comparison
@param className The class name to check for
@returns A function that will return true iff the condition is passed
**--]]
function t.instanceIsA(className)
assert(t.string(className))
return function(value)
... |
-- Signal class
local Signal = {}
Signal.__index = Signal
function Signal.new(createConnectionsChangedSignal)
local self = setmetatable({
_handlerListHead = false,
}, Signal)
if createConnectionsChangedSignal then
self.totalConnections = 0
self.connectionsChanged = Signal.new()
end
return sel... |
--[[
Copy of TextReporter that doesn't output successful tests.
This should be temporary, it's just a workaround to make CI environments
happy in the short-term.
]]
local TestService = game:GetService("TestService")
local CurrentModule = script.Parent
local Packages = CurrentModule.Parent.Parent
local success, ... |
--[[ Constants ]]
--
local TOUCH_CONTROL_SHEET = "rbxasset://textures/ui/TouchControlsSheet.png"
|
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Place this into StarterGui or StarterPack --
-- CREDIT --
-- WhoBloxxedWho; for the initial script --
-- DoogleFox; some stuff ripped from his panner script --
-- DuruTeru; shoving it all into this script and then some :) --
-... |
--Made by Luckymaxer
Debris = game:GetService("Debris")
Camera = game:GetService("Workspace").CurrentCamera
Sounds = {
RayHit = script:WaitForChild("Hit")
}
BasePart = Instance.new("Part")
BasePart.Shape = Enum.PartType.Block
BasePart.Material = Enum.Material.Plastic
BasePart.TopSurface = Enum.SurfaceType.Smooth... |
--[[
Подготовительный скрипт - распихивает скрипты по моделям в точках финиша
]]
local RebuildWorld = 300 -- период пересоздания игрового мира
local PartWorld = script.Parts.Value -- число блоков в мире
|
--- Hides Cmdr window
function Cmdr:Hide ()
Interface.Window:Hide()
end
|
------//Patrol Animations
self.RightPatrol = CFrame.new(-1, 1.5, -0.45) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0));
self.LeftPatrol = CFrame.new(1,1.35,-0.75) * CFrame.Angles(math.rad(-30),math.rad(35),math.rad(-25));
|
--- Player joined
game.Players.PlayerAdded:Connect(function(player)
--- Check for new gamepasses
CheckPlayer(player)
end)
|
-- Decompiled with the Synapse X Luau decompiler.
local v1 = Vector3.new(0, 0, 1);
local v2 = {
InitialDistance = 25,
MinDistance = 10,
MaxDistance = 100,
InitialElevation = 35,
MinElevation = 35,
MaxElevation = 35,
ReferenceAzimuth = -45,
CWAzimuthTravel = 90,
CCWAzimuthTravel = 90,
UseAzimuthLim... |
-- Recoil related functions
function ShoulderCamera:setCurrentRecoilIntensity(x, y)
self.currentRecoil = Vector2.new(x, y)
end
function ShoulderCamera:addRecoil(recoilAmount)
self.currentRecoil = self.currentRecoil + recoilAmount
end
|
-----------------
--| Variables |--
-----------------
local GamePassService = Game:GetService('GamePassService')
local PlayersService = Game:GetService('Players')
local LightingService = Game:GetService('Lighting') --TODO: Use new data store service once that exists
local GamePassIdObject = WaitForChild(script, 'Ga... |
-- 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... |
-- Hello, User removing this script will break the board. If you need to ask something dm Yeah_Ember
|
--[[Engine]]
--Torque Curve
Tune.Horsepower = 1750 -- [TORQUE CURVE VISUAL]
Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf
Tune.PeakRPM = 7700 -- Use sliders to manipulate values
Tune.Redline = 8000 -- Copy and paste slider values into the respective tune values
Tune.EqPoint = 55... |
--//Services//--
local TweenService = game:GetService("TweenService")
local MPS = game:GetService("MarketplaceService")
|
--[[Shutdown]]
car.Body.CarName.Value.VehicleSeat.ChildRemoved:connect(function(child)
if child.Name=="SeatWeld" and child:IsA("Weld") then
script.Parent:Destroy()
end
end)
|
--do -- springs, ok, totally not from treyreynolds
--local runtime = game ("GetService", "RunService")
local t = 0
spring = {mt = {}}
spring.mt.__index = spring
function spring.new( initial )
local t0 = tick()
local p0 = initial or 0
local v0 = initial and 0 * initial or 0
local t = initial or 0
lo... |
--script.Parent.Parent.Visible = true
script.Parent.MouseButton1Click:connect(function() script.Parent.Parent.Visible = false end)
|
-- To make sure whispering behavior remains consistent, this is currently set at 50 characters
module.MaxChannelNameCheckLength = 50 |
-- << RETRIEVE FRAMEWORK >>
local main = _G.HDAdminMain
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.