text stringlengths 52 99.8k |
|---|
--Springs--
frontstiffness = 1290 * StiffnessFront
frontdamping = 40 * StiffnessFront /1.5
rearstiffness = 1290 * StiffnessRear
reardamping = 40 * StiffnessRear /1.5
minLF = SuspensionTravelF
minLR = SuspensionTravelR
maxL = ((RideHeightRear + RideHeightFront)/2) + 4
ffl = RideHeightFront+2
rfl = RideHeightRear... |
----- water handler -----
while true do
if script.Parent.HotOn.Value == true and script.Parent.ColdOn.Value == true and script.Parent.Plugged.Value == true and water.Scale.Y <= 0.6 then -- if BOTH ON and PLUGGED
water.Scale = water.Scale + Vector3.new(0, 0.01, 0)
water.Offset = Vector3.new(0, water.Scale.Y/2,... |
-------------------------
function onClicked()
R.Function1.Disabled = true
R.Function2.Disabled = false
R.BrickColor = BrickColor.new("Institutional white")
g.DJM.MIX.BrickColor = BrickColor.new("Really black")
g.DJM.REMIX.BrickColor = BrickColor.new("Really red")
g.DJM.Screen.SurfaceGui.Menu.Visible = true
end
scrip... |
-- Variables to store waypoints table and zombie's current waypoint
local waypoints
local currentWaypointIndex
local function followPath(destinationObject)
-- Compute and check the path
path:ComputeAsync(zombie.Position, destinationObject)
-- Empty waypoints table after each new path computation
waypoints = {}
... |
--[[**
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, childTable)
assert(t.string(className))
local child... |
--[=[
Binds an update event to a signal until the update function stops returning a truthy
value.
@param signal Signal | RBXScriptSignal
@param update () -> boolean -- should return true while it needs to update
@return (...) -> () -- Connect function
@return () -> () -- Disconnect function
]=]
function StepUt... |
--Tuck in
R6TorsoTuckIn = .3
R6RightArmTuckIn = .1
R6LeftArmTuckIn = .1
|
-------------------LIGHTCONTROLS-------------------
if(key == "l") and (on == true) and (plane:findFirstChild("Lights") ~= nil)
and(light == true) then
local lm = plane.Lights
local val = plane.Values.Light
if(val.Value == false) then
for i,v in pairs(lm:GetChildren()) do
if(v.... |
--- Replace with true/false to force the chat type. Otherwise this will default to the setting on the website.
module.BubbleChatEnabled = true
module.ClassicChatEnabled = PlayersService.ClassicChat
|
--!strict
-- upstream: https://github.com/facebook/react/blob/92fcd46cc79bbf45df4ce86b0678dcef3b91078d/packages/react/src/ReactCurrentBatchConfig.js
--[[*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of th... |
--[[
Classes.Dropdown
This class creates a dropdown that the user can select a list of options from.
Constructors:
new(frame [instance], listFrame [instance])
>
Create(list[] [string], max [integer])
> Creates a dropdown from the list with a max scrolling number.
Properties:
Frame [instance]
> The container... |
-- Container for temporary connections (disconnected automatically)
local Connections = {};
function CollisionTool.Equip()
-- Enables the tool's equipped functionality
-- Start up our interface
ShowUI();
BindShortcutKeys();
end;
function CollisionTool.Unequip()
-- Disables the tool's equipped functionality
... |
--Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
Debris = game:GetService("Debris")
RunService = game:GetService("RunService")
local function Create_PrivImpl(objectType)
if type(objectType) ~= 'string' then
error("Argument of Create must be a st... |
--[[**
ensures value is a number where min < value < max
@param min The minimum to use
@param max The maximum to use
@returns A function that will return true iff the condition is passed
**--]]
function t.numberConstrainedExclusive(min, max)
assert(t.number(min))
assert(t.number(max))
local minCheck = t.numb... |
--Set up WeaponTypes lookup table
do
local function onNewWeaponType(weaponTypeModule)
if not weaponTypeModule:IsA("ModuleScript") then
return
end
local weaponTypeName = weaponTypeModule.Name
xpcall(function()
coroutine.wrap(function()
local weaponType = require(weaponTypeModule)
assert(typeof(w... |
-- PROBABLY WOULDNT TOUCH BELOW UNLESS YOU KNOW WHAT YOURE DOING
|
--[[
Calls any :finally handlers. We need this to be a separate method and
queue because we must call all of the finally callbacks upon a success,
failure, *and* cancellation.
]]
function Promise.prototype:_finalize()
for _, callback in ipairs(self._queuedFinally) do
-- Purposefully not passing values to callba... |
-- Event Bindings
DisplayNotification.OnClientEvent:connect(OnDisplayNotification)
DisplayVictory.OnClientEvent:connect(OnDisplayVictory)
DisplayScore.OnClientEvent:connect(OnScoreChange)
ResetMouseIcon.OnClientEvent:connect(OnResetMouseIcon)
return NotificationManager
|
--[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
--[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
--[[end;]]
--
local JeffTheKillerHumanoid;
for _,Child in pairs(JeffTheKiller:GetChildren())do
if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then... |
--[=[
Rounds down to the given precision
@param number number
@param precision number
@return number
]=]
function Math.roundDown(number: number, precision: number): number
return math.floor(number/precision) * precision
end
return Math
|
-- For Robloxyton, by Celestus
function OnClick()
local p = script.Parent.Parent.Door
for i=1, 30 do -- How many times it moves
p.CFrame = p.CFrame + Vector3.new(0.1, 0, 0) -- How far it will move each time
wait(.01) -- speed of each movement
end |
-- a modified version of nocollider's gore system
local RenderDistance = 400
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Debris = game:GetService("Debris")
local Miscs = ReplicatedStorage:WaitFor... |
-- Ring3 descending
for l = 1,#lifts3 do
if (lifts3[l].className == "Part") then
lifts3[l].BodyPosition.position = Vector3.new((lifts3[l].BodyPosition.position.x),(lifts3[l].BodyPosition.position.y-4),(lifts3[l].BodyPosition.position.z))
end
end
wait(0.1)
for p = 1,#parts3 do
parts3[p].CanCollide = false
end
wait... |
--Made by Luckymaxer
Tool = script.Parent
Handle = Tool:WaitForChild("Handle")
Players = game:GetService("Players")
RunService = game:GetService("RunService")
UserInputService = game:GetService("UserInputService")
Animations = {}
LocalObjects = {}
ServerControl = Tool:WaitForChild("ServerControl")
ClientControl =... |
--// H key, Man
mouse.KeyDown:connect(function(key)
if key=="h" then
veh.Lightbar.middle.Manual:Play()
veh.Lightbar.middle.Wail.Volume = 0
veh.Lightbar.middle.Yelp.Volume = 0
veh.Lightbar.middle.Priority.Volume = 0
end
end)
|
----[[ Color Settings ]]
module.BackGroundColor = Color3.new(0, 0, 0)
module.DefaultMessageColor = Color3.new(1, 0.666667, 0)
module.DefaultChatColor = Color3.fromRGB(255, 170, 0)
module.DefaultNameColor = Color3.new(0.333333, 0.666667, 0.498039)
module.ChatBarBackGroundColor = Color3.new(0, 0, 0)
module.ChatBarBoxCo... |
--[[
Stores 'sensible default' properties to be applied to instances created by
the New function.
]]
local ENABLE_SENSIBLE_DEFAULTS = true
if ENABLE_SENSIBLE_DEFAULTS then
return {
ScreenGui = {
ResetOnSpawn = false,
ZIndexBehavior = "Sibling"
},
BillboardGui = {
ResetOnSpawn = false,
ZIndexBe... |
--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 = "leaderstats"
local Joins = Instance.new("IntValue",leader)
Joins.Name = stat
Joins.Value = ds:GetAsync(player.UserId) or startamount
ds:SetAsync(p... |
----- Script: -----
Button.Activated:Connect(function()
----- Script: -----
InformationData.Case.Value = CaseData.Case.Value
InformationImage.Image = Image.Image
InformationVariables.CommunPorcentage.Text = CaseData.CommunPorcentage.Value
InformationVariables.UncommunPorcentage.Text = CaseData.UncommunPorcent... |
-- Constants
local Local_Player = PlayersService.LocalPlayer
|
--TimedOut
--* called when the player took too long to choose an option.
function Interface.TimedOut()
end
|
--[=[
Observes percent visibility
@param basicPane BasicPane
@return Observable<number>
]=]
function BasicPaneUtils.observePercentVisible(basicPane)
assert(BasicPane.isBasicPane(basicPane), "Bad BasicPane")
return BasicPaneUtils.observeVisible(basicPane):Pipe({
Rx.map(function(visible)
return visible and 1... |
--------LEFT DOOR --------
game.Workspace.doorleft.l11.BrickColor = BrickColor.new(106)
game.Workspace.doorleft.l23.BrickColor = BrickColor.new(106)
game.Workspace.doorleft.l32.BrickColor = BrickColor.new(106)
game.Workspace.doorleft.l41.BrickColor = BrickColor.new(106)
game.Workspace.doorleft.l53.BrickColor = BrickC... |
-- Types of joints to assume should be preserved
local ManualJointTypes = Support.FlipTable { 'Weld', 'ManualWeld', 'ManualGlue', 'Motor', 'Motor6D' };
function SearchJoints(Haystack, Part, Whitelist)
-- Searches for and returns manual joints in `Haystack` involving `Part` and other parts in `Whitelist`
local Joi... |
-- Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local PhysicsService = game:GetService("PhysicsService")
|
--------------------)
i = true
script.Parent[ZoneModelName]:MoveTo(Vector3.new(0,10000,0))
script.Parent[ZoneModelName]:Clone().Parent = game.ServerStorage
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr,X,Y,Z)
if i then i = false
local zone = game.ServerStorage:WaitForChild(ZoneModelName):Clone()
z... |
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
runService.RenderStepped:connect(function()
if running then
updatechar()
CamPos = CamPos + (TargetCamPos - CamPos) *0.28
AngleX = AngleX + (TargetAngleX - AngleX) *0.35
local dist = TargetA... |
--[[
[Whether rotation follows the camera or the mouse.]
[Useful with tools if true, but camera tracking runs smoother.]
--]]
local MseGuide = false |
--// Extras
WalkAnimEnabled = true; -- Set to false to disable walking animation, true to enable
SwayEnabled = true; -- Set to false to disable sway, true to enable
TacticalModeEnabled = true; -- SET THIS TO TRUE TO TURN ON TACTICAL MODEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
|
--Required Modules
local modules = script.Parent
local status = require(modules.Status)
local core = require(modules.CoreModule)
local marine = script.Parent.Parent.Parent
local myHuman = marine.Humanoid
local myRoot = marine.HumanoidRootPart
local m4 = marine.M4
local reloadSound = m4.Reload
local magazine = marine... |
-- tu dois assigner la bonne couleur
local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name
local normalBorderColor = script.Parent.Border.ImageColor3
function Click(mouse)
if game.Players[plr].TeamColor ~= game.Teams:FindFirstChild(script.Parent.Name).TeamColor then
game.Players[plr].TeamColo... |
--/////////// CONFIGURATIONS \\\\\\\\\\\\\\\\\
local sensitivity = 1 -- how quick/snappy the sway movements are. Don't go above 2
local swaysize = 1 -- how large/powerful the sway is. Don't go above 2
local includestrafe = true -- if true the fps arms will sway when the character is strafing
local includewalksway =... |
-- CONNECTIONS
local iconCreationCount = 0
IconController.iconAdded:Connect(function(icon)
topbarIcons[icon] = true
if IconController.gameTheme then
icon:setTheme(IconController.gameTheme)
end
icon.updated:Connect(function()
IconController.updateTopbar()
end)
-- When this icon is selected, deselect other ic... |
--// skeleton script for the actual health charger module
--// i could make this even more modular but idk
local SSS = game:GetService("ServerScriptService")
local HealthChargerMain = require(SSS.HealthCharger)
local MainPart = script.Parent
local ProxPrompt = MainPart.healthPrompt
local Beam = MainPart.Beam
local Pa... |
--------- MODULE BEGIN ---------
local richText = {}
local textService = game:GetService("TextService")
local runService = game:GetService("RunService")
local animationCount = 0
function getLayerCollector(frame)
if not frame then
return nil
elseif frame:IsA("LayerCollector") then
return frame
elseif frame an... |
-- find player's head pos
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local head = vCharacter:findFirstChild("Head")
if head == nil then return end
local launch = head.Position + 10 * v
local missile = Pellet:clone()
Tool.Handle.Mesh:clone().Pa... |
--[[Brakes]]
Tune.ABSEnabled = true -- Implements ABS
Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS)
Tune.FBrakeForce = 3500 -- Front brake force
Tune.RBrakeForce = 2800 -- Rear brake force
Tune.PBrakeForce = 13000 -- Handbrake force
Tune.FLgcyBForce = 41000 -- Front ... |
--------------------[ MOUSE FUNCTIONS ]-----------------------------------------------
function onMB1Down()
MB1Down = true
firstShot = true
if fireFunction then
fireFunction()
end
end
function onMB1Up()
MB1Down = false
lowerSpread()
end
function onMB2Down()
if S.aimSettings.holdToADS then
if (not Aiming... |
--[=[
Utility functions involving sets, which are tables with the key as an index, and the value as a
truthy value.
@class Set
]=]
local Set = {}
|
--[[Transmission]]
Tune.TransModes = {"Auto", "Semi"} --[[
[Modes]
"Auto" : Automatic shifting
"Semi" : Clutchless manual shifting, dual clutch transmission
"Manual" : Manual shifting with clutch
>Include within brackets
eg: {"Semi"} or {"Auto", "Manual"}
>First mode is default mod... |
--Update Checker
if _Tune.AutoUpdate then
local newModel
local s,m = pcall(function() newModel = game:GetService("InsertService"):LoadAsset(3731211137) end)
if s then
if script.Parent["Interface"].Version.Value < newModel["NCT: M Beta"]["Tuner"]["Interface"].Version.Value then
if newModel["NCT: M Beta"]["Tu... |
--[[Weight and CG]]
Tune.Weight = 3029 -- Total weight (in pounds)
Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable)
--[[Width]] 6 ,
--[[Height]] 3.5 ,
--[[Length]] 14 }
Tune.WeightDist = 50 -- Weight distribution (0 - on rear wheels, 100 - on front wheel... |
-- DONT TOUCH ANYTHING
function ChangeMe(hit)
if hit.Parent == nil then return end
if (hit.Parent:findFirstChild("Humanoid") == nil) then return end
local human = hit.Parent:findFirstChild("Humanoid")
local char = hit.Parent
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if (human ~= nil) and ... |
-- Listeners
SpawnSegway.OnServerEvent:connect(function(Player,Color)
Functions.SpawnSegway(Player,Color)
end)
ConfigTool.OnServerEvent:connect(function(Player,Transparency,ShouldColor,Color)
Functions.ConfigTool(Transparency,ShouldColor,Color)
end)
DestroySegway.OnServerEvent:connect(function(Player)
Functions.... |
--// Special Variables
return function(Vargs, GetEnv)
local env = GetEnv(nil, {script = script})
setfenv(1, env)
local server = Vargs.Server
local service = Vargs.Service
local Functions, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Settings
local function Init()
Functions = server.Functions
... |
-- Set both mobile touch gui and control
function UserInputController:setMobileTouchGuiEnabled(mobileTouchGuiEnabled: boolean)
self.UserInputService.ModalEnabled = not mobileTouchGuiEnabled
-- Update player controls since ModalEnabled doesn't update player control
self:setPlayerControlsEnabled(mobileTouchGuiEnabl... |
--// All global vars will be wiped/replaced except script
--// All guis are autonamed client.Variables.CodeName..gui.Name
--// Be sure to update the console gui's code if you change stuff
return function(data, env)
if env then
setfenv(1, env)
end
local Title,Message = data.Title,data.Message
if not Title or n... |
-- JamieWallace_RBLX
-- 19/05/2019
local Door = script.Parent.Parent.Door
local Click = script.Parent.ClickDetector
Click.MouseClick:Connect(function(Player)
local PlayerTeam = Player.Team.Name
if PlayerTeam == "Police" then
Door.CanCollide = false
Door.Transparency = 1
wait(2)
Door.CanCollide = true
Do... |
--[[
Evercyan @ March 2023
HumanoidAttributes
One important thing about this kit, is that you should never set a player's MaxHealth,
WalkSpeed, and JumpPower manually through Humanoid properties.
The kit uses a feature known as Humanoid "Attributes", which is a Configuration under the Humanoid
(Humanoid.Attri... |
-- Called when character is added
function Poppercam:CharacterAdded(char, player)
self.playerCharacters[player] = char
end
|
-- This function keeps the held weapon from bouncing up and down too much when you move
function ShoulderCamera:applyRootJointFix()
if self.rootJoint then
local translationScale = self.zoomState and Vector3.new(0.25, 0.25, 0.25) or Vector3.new(0.5, 0.5, 0.5)
local rotationScale = self.zoomState and 0.15 or 0.2
... |
--// # key, Traffic Director
mouse.KeyDown:connect(function(key)
if key=="b" then
veh.Lightbar.middle.Beep:Play()
veh.Lightbar.Remotes.TDEvent:FireServer(true)
end
end)
|
---[[ Misc Settings ]]
module.WhisperCommandAutoCompletePlayerNames = true
local ChangedEvent = Instance.new("BindableEvent")
local proxyTable = setmetatable({},
{
__index = function(tbl, index)
return module[index]
end,
__newindex = function(tbl, index, value)
module[index] = value
ChangedEvent:Fire(index... |
--[[**
<description>
Unmark the data store as a backup data store and tell :Get() and reset values to nil.
</description>
**--]]
function DataStore:ClearBackup()
self.backup = nil
self.haveValue = false
self.value = nil
end
|
--[[Weld functions]]
local JS = game:GetService("JointsService")
local PGS_ON = workspace:PGSIsEnabled()
function MakeWeld(x,y,type,s)
if type==nil then type="Weld" end
local W=Instance.new(type,JS)
W.Part0=x W.Part1=y
W.C0=x.CFrame:inverse()*x.CFrame
W.C1=y.CFrame:inverse()*x.CFrame
if type=="... |
-- Services
local RunService = game:GetService('RunService')
local TweenService = game:GetService('TweenService')
local Debris = game:GetService('Debris')
|
---
local Paint = false
script.Parent.MouseButton1Click:connect(function()
Paint = not Paint
handler:FireServer("Burlap",Paint)
end)
|
-- When supplied, legacyCameraType is used and cameraMovementMode is ignored (should be nil anyways)
-- Next, if userCameraCreator is passed in, that is used as the cameraCreator
function CameraModule:ActivateCameraController(cameraMovementMode, legacyCameraType)
local newCameraCreator = nil
if legacyCameraType~=n... |
--local v1 = require(script.Parent);
local v2 = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls();
local v3 = game["Run Service"];
local l__UserInputService__4 = game:GetService("UserInputService");
local l__ProximityPromptService__5 = game:GetService("Proximit... |
-- Creates the collision function to attach to the object
local function setupFallingObjectCollisions(object, damage)
-- The collision function; must be declared in this scope as it needs reference to "object" and "damage" params
local function onTouch(otherObject)
local character = otherObject.Paren... |
--[=[
Constructs a Trove object.
]=]
function Trove.new()
local self = setmetatable({}, Trove)
self._objects = {}
return self
end
|
----- NO EDITING BELOW -----
local weldedParts = {}
table.insert(weldedParts,mainPart)
function Weld(x, y)
local weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local CJ = CFrame.new(x.Position)
weld.C0 = x.CFrame:inverse() * CJ
weld.C1 = y.CFrame:inverse() * CJ
weld.Parent = x
table.insert(... |
-- functions
local function GetSquad(player)
for _, squad in pairs(SQUADS:GetChildren()) do
if squad.Players:FindFirstChild(player.Name) then
return squad
end
end
end
|
-- if EnabledCamera and EnabledCamera:GetShiftLock() and not EnabledCamera:IsInFirstPerson() then
-- if EnabledCamera:GetCameraActualZoom() < 1 then
-- local subjectPosition = EnabledCamera.lastSubjectPosition
-- if subjectPosition then
-- Camera.Focus = CFrame_new(subjectPosition)
-- Camera.CFrame = ... |
--[=[
Constructs a new Brio.
```lua
local brio = Brio.new("a", "b")
print(brio:GetValue()) --> a b
```
@param ... any -- Brio values
@return Brio
]=]
function Brio.new(...) -- Wrap
return setmetatable({
_values = table.pack(...);
}, Brio)
end
|
-- 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) and (not character:GetAttribute("Ragdoll")) then
enableviewmodel()
end
elseif ((camera.focus.p - camera.CFrame.p).magni... |
--Kills users even if they have a shield
function module:ExecuteBehaviour(brickTouched, character)
if character:FindFirstChild("Humanoid") ~= nil then
if character.Humanoid.Health > 0 then
character.Humanoid.Health = 0
character:BreakJoints()
end
end
end
return module
|
--------------------
--| Script Logic |--
--------------------
Tool.Equipped:connect(OnEquipped)
Tool.Changed:connect(OnChanged)
Tool.Unequipped:connect(OnUnequipped)
|
-- --if Health < ultimavida - configuracao.KODamage then
-- -- ACS_Client:SetAttribute("Collapsed",true)
-- --end
|
--// All global vars will be wiped/replaced except script
--// All guis are autonamed client.Variables.CodeName..gui.Name
return function(data)
local gui = script.Parent.Parent
local playergui = service.PlayerGui
local str = data.Message
local time = data.Time or 15
local log = {
Type = "Hint";
Title = "... |
----------------------------------------------------------------------------------------------------
------------------=[ Status UI ]=-------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
,EnableStatusU... |
-- [[ SCRIPT ENUMS ]]
local BubbleColor = { WHITE = "dub",
BLUE = "blu",
GREEN = "gre",
RED = "red" }
|
-- Keyboard controller is really keyboard and mouse controller
local computerInputTypeToModuleMap = {
[Enum.UserInputType.Keyboard] = Keyboard,
[Enum.UserInputType.MouseButton1] = Keyboard,
[Enum.UserInputType.MouseButton2] = Keyboard,
[Enum.UserInputType.MouseButton3] = Keyboard,
[Enum.UserInputType.MouseWheel]... |
--For Omega Rainbow Katana thumbnail to display a lot of particles.
for i, v in pairs(Handle:GetChildren()) do
if v:IsA("ParticleEmitter") then
v.Rate = 20
end
end
Tool.Grip = Grips.Up
Tool.Enabled = true
function IsTeamMate(Player1, Player2)
return (Player1 and Player2 and not Player1.Neutral and not Player2.... |
----------------
--[[SETTINGS]]--
----------------
local Color = Color3.new(0.9, 0.95, 1) -- Color of the rain.
local DropWidth = 0.05 -- The width of the long shape used for the rain part
local DropLength = 2.6 -- The length of the long shape used for the rain part.
local EffectRadius = 50 -- Distan... |
-- The version of a package is controlled by a StringValue included as a child
-- of the package. This constant controls the name of that StringValue.
--
-- Initially we wanted to use Attributes for the version, however Rojo does not
-- support syncing Attributes yet. As such, we've opted to go the old fashioned
-- way... |
-- Do not edit these values, they are not the developer-set limits, they are limits
-- to the values the camera system equations can correctly handle
local MIN_ALLOWED_ELEVATION_DEG = -80
local MAX_ALLOWED_ELEVATION_DEG = 80
local externalProperties = {}
externalProperties["InitialDistance"] = 25
externalProperties... |
--bp.Position = shelly.PrimaryPart.Position
if not shellyGood then bp.Parent,bg.Parent= nil,nil return end
bp.Parent = nil
wait(math.random(3,8))
end
local soundBank = game.ReplicatedStorage.Sounds.NPC.Shelly:GetChildren()
shelly.Health.Changed:connect(function()
if shellyGood then
bp.Parent,bg.Parent= nil,nil
she... |
--- FUNCTIONS
Fire = function(Player, Key, Data, Client)
local CharacterName = Player.Name
if Client then
Remote:FireClient(Client, CharacterName, Key, Data)
else
Remote:FireAllClients(CharacterName, Key, Data)
end
end
PlayerAdded = function(Player)
for _,GuiItem in pairs(StarterGui:GetChildren()) ... |
-- ================================================================================
-- VARIABLES
-- ================================================================================
-- Services
local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedStorage = game:GetService("ReplicatedStora... |
--[[*
* Create the message for a syntax error
]]
local function syntaxError(type, char)
return ('Missing %s: "%s" - use "\\%s" to match literal characters'):format(type, char, char)
end
|
--Deadzone Adjust
local _PPH = _Tune.Peripherals
for i,v in pairs(_PPH) do
local a = Instance.new("IntValue",Controls)
a.Name = i
a.Value = v
a.Changed:Connect(function()
a.Value=math.min(100,math.max(0,a.Value))
_PPH[i] = a.Value
end)
end
|
--[[
script.Parent.Text = "Text"
TweenService:Create(script.Parent, Info, {TextTransparency = 0}):Play()
wait(5)
TweenService:Create(script.Parent, Info, {TextTransparency = 1}):Play()
wait(0.5)
Use this to add more cycles.
]]
|
--[[
Enjin | Novena
RikOne2 | Avxnturador
Bike Chassis
*We assume you know what you're doing if you're gonna change something here.* ]]
--
|
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
local path
local waypoint
local chaseName = nil
function GetTorso(part)
local chars = game.Workspace:GetChildren()
local chaseRoot = nil
local chaseTorso = nil
local chasePlr = nil
local chaseHuman = nil
local mag = SearchDistance
... |
--[[*
* Constants
]]
local MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS =
constants.MAX_LENGTH,
constants.POSIX_REGEX_SOURCE,
constants.REGEX_NON_SPECIAL_CHARS,
constants.REGEX_SPECIAL_CHARS_BACKREF,
constants.REPLACEMENTS
|
----------------------------------------------------------------------------------------------------
--------------------=[ OUTROS ]=--------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
,FastReload = ... |
-- Function to preload audio assets
AudioPlayer.preloadAudio = function(assetArray)
ContentProvider:PreloadAsync(assetArray)
end
|
----------------------------------------------------------------------------
-------- cleans up the opponent's stuff if the player leaves
game.Players.ChildRemoved:connect(function(p)
if p == script.Challenger.Value then
script.Cleanup.Value:remove()
script:remove()
end
end)
|
-- This ones for 0celot.
on = 0
Tool = script.Parent
welds = {}
sh = {}
arms = nil
torso = nil
f = nil
function Crouch(ison)
if arms == nil and torso == nil then
arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
torso = Tool.Parent:FindFirstChild("Torso")
end
if arms ~= nil and ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.