Dark_Agent

[FE] The Flash Script

Mar 11th, 2026 (edited)
181
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 91.25 KB | Gaming | 0 0
  1. --Original: https://raw.githubusercontent.com/NetlessScripter/Reverse-Flash/refs/heads/main/Open%20Sourced%20Version
  2.  
  3. --[[
  4.     REVERSE FLASH SCRIPT - MULTIPLAYER VERSION
  5.    
  6.     getgenv().NightMode = true  -- Set to false for day mode
  7.     getgenv().TODC = true  -- TimeOfDayChange: Set to false to disable ALL lighting changes
  8.    
  9.     AllowedPlayers = {
  10.         ["Hitmeforgamepass"] = "RF",
  11.         ["veyzak"] = "Regular",
  12.         ["BOT338204"] = "Regular"
  13.     }
  14.    
  15.     loadstring(game:HttpGet("https://pastebin.com/raw/sWG7D442"))()
  16.    
  17.     CONTROLS: Q = Speed | C = Phase | B = Angular Mirage | X = Disable
  18.     STATES: RF, Zoom, KidFlash, GodOfSpeed, NWA, Regular
  19. --]]
  20.  
  21.  
  22. if getgenv().TODC == nil then
  23.     getgenv().TODC = true
  24. end
  25.  
  26. if getgenv().NightMode == nil then
  27.     getgenv().NightMode = true
  28. end
  29.  
  30.  
  31. if not getgenv().TODC then
  32.     print("⏰ TimeOfDayChange DISABLED - ClockTime will NOT be modified")
  33. else
  34.     print("⏰ TimeOfDayChange ENABLED - Lighting mode: " .. (getgenv().NightMode and "NIGHT" or "DAY"))
  35. end
  36.  
  37. AllowedPlayers = AllowedPlayers or {}
  38.  
  39. local Players = cloneref(game:GetService("Players"))
  40. local Workspace = cloneref(game:GetService("Workspace"))
  41. local PlayerData = {}
  42.  
  43. local function IsAllowed(player)
  44.     if not player then return false end
  45.     return AllowedPlayers[player.Name] ~= nil
  46. end
  47.  
  48. local function CleanupPlayer(player)
  49.     if not player then return end
  50.     local userId = player.UserId
  51.     if PlayerData[userId] then
  52.         local data = PlayerData[userId]
  53.        
  54.  
  55.         if data.stopColorUpdate then
  56.             pcall(function() data.stopColorUpdate() end)
  57.         end
  58.        
  59.  
  60.         if data.connections then
  61.             for _, conn in pairs(data.connections) do
  62.                 if conn and typeof(conn) == "RBXScriptConnection" and conn.Connected then
  63.                     pcall(function() conn:Disconnect() end)
  64.                 end
  65.             end
  66.         end
  67.  
  68.         if data.cleanupObjects then
  69.             for _, obj in pairs(data.cleanupObjects) do
  70.                 if obj and typeof(obj) == "Instance" then
  71.                     pcall(function() obj:Destroy() end)
  72.                 end
  73.             end
  74.         end
  75.  
  76.         PlayerData[userId] = nil
  77.         print("✓ Cleaned up " .. player.Name)
  78.     end
  79. end
  80.  
  81.  
  82. Players.PlayerRemoving:Connect(function(leavingPlayer)
  83.     if leavingPlayer == player and syncConnection then
  84.         pcall(function()
  85.             syncConnection:Disconnect()
  86.         end)
  87.     end
  88. end)
  89.  
  90. local function SetupSpeedster(player)
  91.     if not IsAllowed(player) then return end
  92.     if not player or not player.Parent then return end
  93.    
  94.     local character = player.Character or player.CharacterAdded:Wait()
  95.     if not character then return end
  96.    
  97.     local speedsterType = AllowedPlayers[player.Name]
  98.     local userId = player.UserId
  99.    
  100.  
  101.     CleanupPlayer(player)
  102.    
  103.  
  104.     PlayerData[userId] = {
  105.         character = character,
  106.         player = player,
  107.         speedsterType = speedsterType,
  108.         connections = {},
  109.         cleanupObjects = {},
  110.         spd = false,
  111.         phs = false,
  112.         ang = false,
  113.         Running = false
  114.     }
  115.    
  116.     local playerData = PlayerData[userId]
  117.    
  118.     print("✓ Loading " .. speedsterType .. " for " .. player.Name)
  119.  
  120. local CharacterRef = character
  121. local HRP = CharacterRef:WaitForChild("HumanoidRootPart", 10)
  122. if not HRP then
  123.     warn("Failed to find HumanoidRootPart for " .. player.Name)
  124.     CleanupPlayer(player)
  125.     return
  126. end
  127.  
  128. local RunService = cloneref(game:GetService("RunService"))
  129. local WorkspaceRef = workspace
  130. local u = player.Name
  131.  
  132. local lightningAttachment = Instance.new("Attachment")
  133. lightningAttachment.Name = "LightningAttachment_" .. player.Name
  134. lightningAttachment.Parent = HRP
  135. table.insert(playerData.cleanupObjects, lightningAttachment)
  136.  
  137.  
  138. local ParticleRef = Instance.new("ParticleEmitter")
  139. ParticleRef.Name = "SpeedsterParticle_" .. player.Name
  140. ParticleRef.Brightness = 10
  141. ParticleRef.Drag = 0
  142. ParticleRef.EmissionDirection = Enum.NormalId.Top
  143. ParticleRef.FlipbookLayout = Enum.ParticleFlipbookLayout.Grid4x4
  144. ParticleRef.FlipbookFramerate = NumberRange.new(1,1)
  145. ParticleRef.FlipbookMode = Enum.ParticleFlipbookMode.OneShot
  146. ParticleRef.Lifetime = NumberRange.new(0.1,0.35)
  147. ParticleRef.LightEmission = 1
  148. ParticleRef.LightInfluence = 0
  149. ParticleRef.LockedToPart = false
  150. ParticleRef.Orientation = Enum.ParticleOrientation.VelocityParallel
  151. ParticleRef.Rate = 12
  152. ParticleRef.RotSpeed = NumberRange.new(0,0)
  153. ParticleRef.Rotation = NumberRange.new(-360,360)
  154. ParticleRef.Shape = Enum.ParticleEmitterShape.Box
  155. ParticleRef.ShapeInOut = Enum.ParticleEmitterShapeInOut.Outward
  156. ParticleRef.ShapePartial = 1
  157. ParticleRef.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  158. ParticleRef.Size = NumberSequence.new({
  159.     NumberSequenceKeypoint.new(0,3,0),
  160.     NumberSequenceKeypoint.new(1,3,0)
  161. })
  162. ParticleRef.Speed = NumberRange.new(0.009,0.009)
  163. ParticleRef.Texture = "rbxassetid://11812165090"
  164. ParticleRef.TimeScale = 1
  165. ParticleRef.Transparency = NumberSequence.new({
  166.     NumberSequenceKeypoint.new(0,0,0),
  167.     NumberSequenceKeypoint.new(1,0,0)
  168. })
  169. ParticleRef.VelocityInheritance = 0
  170. ParticleRef.ZOffset = 2
  171. ParticleRef.Acceleration = Vector3.new(0,0,0)
  172. ParticleRef.Enabled = false
  173. ParticleRef.Parent = lightningAttachment
  174.  
  175. if speedsterType == "Zoom" then
  176.     ParticleRef.Color = ColorSequence.new({
  177.         ColorSequenceKeypoint.new(0, Color3.fromRGB(160,220,255)),
  178.         ColorSequenceKeypoint.new(1, Color3.fromRGB(0,120,255))
  179.     })
  180. elseif speedsterType == "GodOfSpeed" then
  181.     ParticleRef.Color = ColorSequence.new({
  182.         ColorSequenceKeypoint.new(0, Color3.fromRGB(200,200,200)),
  183.         ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))
  184.     })
  185. elseif speedsterType == "NWA" then
  186.     ParticleRef.Color = ColorSequence.new({
  187.         ColorSequenceKeypoint.new(0, Color3.fromRGB(210,160,255)),
  188.         ColorSequenceKeypoint.new(1, Color3.fromRGB(200,100,255))
  189.     })
  190. elseif speedsterType == "KidFlash" then
  191.     ParticleRef.Color = ColorSequence.new({
  192.         ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)),
  193.         ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))
  194.     })
  195. elseif speedsterType == "RF" then
  196.     ParticleRef.Color = ColorSequence.new({
  197.         ColorSequenceKeypoint.new(0, Color3.fromRGB(255,190,190)),
  198.         ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))
  199.     })
  200. else
  201.  
  202.     ParticleRef.Color = ColorSequence.new({
  203.         ColorSequenceKeypoint.new(0, Color3.new(1,0.231,0.129)),
  204.         ColorSequenceKeypoint.new(1, Color3.new(1,0.231,0.129))
  205.     })
  206. end
  207.  
  208.  
  209. playerData.ParticleRef = ParticleRef
  210. table.insert(playerData.cleanupObjects, ParticleRef)
  211.  
  212. local function EnableLightningGlobal()
  213.     if playerData.Running then return end
  214.     playerData.Running = true
  215.     if playerData.ParticleRef and playerData.ParticleRef.Parent then
  216.         playerData.ParticleRef.Enabled = true
  217.         playerData.ParticleRef:Emit(15)
  218.     end
  219. end
  220.  
  221. local function DisableLightningGlobal()
  222.     if not playerData.Running then return end
  223.     playerData.Running = false
  224.     if playerData.ParticleRef and playerData.ParticleRef.Parent then
  225.         playerData.ParticleRef.Enabled = false
  226.     end
  227. end
  228.  
  229.  
  230.  
  231. local parts = {
  232.  
  233.     "Left Arm",
  234.     "Right Arm",
  235.     "Left Leg",
  236.     "Right Leg",
  237.  
  238.     "LeftUpperArm",
  239.     "LeftLowerArm",
  240.     "LeftHand",
  241.     "RightUpperArm",
  242.     "RightLowerArm",
  243.     "RightHand",
  244.  
  245.     "LeftUpperLeg",
  246.     "LeftLowerLeg",
  247.     "LeftFoot",
  248.     "RightUpperLeg",
  249.     "RightLowerLeg",
  250.     "RightFoot"
  251. }
  252.  
  253. local trailProps1 = {
  254.     Texture = "rbxassetid://16607923",
  255.     TextureLength = 15,
  256.     TextureMode = Enum.TextureMode.Static,
  257.     FaceCamera = false,
  258.     Lifetime = 0.14,
  259.     WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}),
  260.     Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  261. }
  262.  
  263. local trailProps2 = {
  264.     Texture = "rbxassetid://14485918528",
  265.     TextureLength = 8,
  266.     TextureMode = Enum.TextureMode.Static,
  267.     FaceCamera = true,
  268.     Lifetime = 0.05,
  269.     WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(0.7,0.2,0),NumberSequenceKeypoint.new(1,0,0)}),
  270.     Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.fromRGB(255,59,33)),ColorSequenceKeypoint.new(1,Color3.fromRGB(255,59,33))}),
  271.     Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.063,0,0),NumberSequenceKeypoint.new(0.599,0,0),NumberSequenceKeypoint.new(1,1,0)})
  272. }
  273.  
  274. local partColors = {
  275.     arms = Color3.fromRGB(102,21,20),
  276.     legs = Color3.fromRGB(189,141,70)
  277. }
  278.  
  279.  
  280. local allTrails = {}
  281. playerData.allTrails = allTrails
  282.  
  283. local function createTrail(part, color, props, offsetAmount)
  284.     if not part or not part.Parent then return end
  285.    
  286.     for i=1,2 do
  287.         local success, err = pcall(function()
  288.             local t = Instance.new("Trail")
  289.             local a0 = Instance.new("Attachment", part)
  290.             local a1 = Instance.new("Attachment", part)
  291.  
  292.             local offset = (i == 1) and Vector3.new(0, offsetAmount, 0) or Vector3.new(0, -offsetAmount, 0)
  293.             a0.Position = offset
  294.             a1.Position = offset * -1
  295.             a0.Visible = false
  296.             a1.Visible = false
  297.  
  298.             t.Attachment0 = a0
  299.             t.Attachment1 = a1
  300.             t.Enabled = false
  301.             t.Texture = props.Texture
  302.             t.TextureLength = props.TextureLength
  303.             t.TextureMode = props.TextureMode
  304.             t.FaceCamera = props.FaceCamera
  305.             t.Lifetime = props.Lifetime
  306.             t.WidthScale = props.WidthScale
  307.             t.Transparency = props.Transparency
  308.             if color then
  309.                 t.Color = ColorSequence.new(color)
  310.             else
  311.                 t.Color = props.Color
  312.             end
  313.             t.Parent = part
  314.  
  315.             table.insert(allTrails, t)
  316.             table.insert(playerData.cleanupObjects, t)
  317.             table.insert(playerData.cleanupObjects, a0)
  318.             table.insert(playerData.cleanupObjects, a1)
  319.         end)
  320.        
  321.         if not success then
  322.             warn("Failed to create trail for " .. player.Name .. ": " .. tostring(err))
  323.         end
  324.     end
  325. end
  326.  
  327. local function SetupAllTrails()
  328.     -- Always clear and destroy old trails to ensure fresh creation
  329.     for _, t in pairs(allTrails) do
  330.         if t and t.Parent then
  331.             pcall(function()
  332.                 t:Destroy()
  333.             end)
  334.         end
  335.     end
  336.     allTrails = {}
  337.     playerData.allTrails = allTrails
  338.    
  339.     if not CharacterRef or not CharacterRef.Parent then return end
  340.    
  341.     for _, partName in pairs(parts) do
  342.         local part = CharacterRef:FindFirstChild(partName)
  343.         if part and part.Parent then
  344.  
  345.             local isArm = partName:find("Arm") or partName:find("Hand")
  346.             local color = isArm and partColors.arms or partColors.legs
  347.             createTrail(part, color, trailProps1, 0.2)
  348.             createTrail(part, nil, trailProps2, 0.25)
  349.         end
  350.     end
  351.    
  352.     print("✓ Created " .. #allTrails .. " trails for " .. player.Name)
  353. end
  354.  
  355. local function EnableAllCoolStuff()
  356.     SetupAllTrails()
  357.     local enabledCount = 0
  358.     for _, t in pairs(allTrails) do
  359.         if t and t.Parent then
  360.             pcall(function()
  361.                 t.Enabled = true
  362.                 enabledCount = enabledCount + 1
  363.             end)
  364.         end
  365.     end
  366.     print("✓ Enabled " .. enabledCount .. " trails for " .. player.Name)
  367. end
  368.  
  369. local function DisableCoolStuff()
  370.     local disabledCount = 0
  371.     for _, t in pairs(allTrails) do
  372.         if t and t.Parent then
  373.             pcall(function()
  374.                 t.Enabled = false
  375.                 disabledCount = disabledCount + 1
  376.             end)
  377.         end
  378.     end
  379.     print("✓ Disabled " .. disabledCount .. " trails for " .. player.Name)
  380. end
  381.  
  382. -- Store these functions in playerData so sync listener can access them
  383. playerData.EnableAllCoolStuff = EnableAllCoolStuff
  384. playerData.DisableCoolStuff = DisableCoolStuff
  385.  
  386. local l = cloneref(game:GetService('Lighting'))
  387.  
  388. -- Lighting effects always apply regardless of TODC
  389. if getgenv().NightMode then
  390.  
  391.     do
  392.     local i = Instance.new('Sky')
  393.     i.SkyboxBk = "rbxassetid://6444884337"
  394.     i.SkyboxDn = "rbxassetid://6444884785"
  395.     i.SkyboxFt = "rbxassetid://6444884337"
  396.     i.SkyboxLf = "rbxassetid://6444884337"
  397.     i.SkyboxRt = "rbxassetid://6444884337"
  398.     i.SkyboxUp = "rbxassetid://6412503613"
  399.     i.MoonAngularSize = 11
  400.     i.MoonTextureId = "rbxassetid://6444320592"
  401.     i.SunAngularSize = 11
  402.     i.SunTextureId = "rbxassetid://6196665106"
  403.     i.Parent = l
  404.     end
  405.     do
  406.     local i = Instance.new('SunRaysEffect')
  407.     i.Intensity = 0.009999999776482582
  408.     i.Spread = 0.10000000149011612
  409.     i.Enabled = true
  410.     i.Parent = l
  411.     end
  412.     do
  413.     local i = Instance.new('Atmosphere')
  414.     i.Density = 0.30000001192092896
  415.     i.Offset = 0.25
  416.     i.Color = Color3.new(0.7803921699523926,0.7803921699523926,0.7803921699523926)
  417.     i.Decay = Color3.new(0.4156862795352936,0.43921568989753723,0.4901960790157318)
  418.     i.Glare = 0
  419.     i.Haze = 0
  420.     i.Parent = l
  421.     end
  422.     do
  423.     local i = Instance.new('BloomEffect')
  424.     i.Intensity = 1
  425.     i.Size = 24
  426.     i.Threshold = 2
  427.     i.Enabled = true
  428.     i.Parent = l
  429.     end
  430.     do
  431.     local i = Instance.new('DepthOfFieldEffect')
  432.     i.FarIntensity = 0.10000000149011612
  433.     i.FocusDistance = 0.05000000074505806
  434.     i.InFocusRadius = 30
  435.     i.NearIntensity = 0.75
  436.     i.Enabled = false
  437.     i.Parent = l
  438.     end
  439.     do
  440.     local i = Instance.new('SunRaysEffect')
  441.     i.Intensity = 0.16899999976158142
  442.     i.Spread = 1
  443.     i.Enabled = true
  444.     i.Parent = l
  445.     end
  446.     do
  447.     local i = Instance.new('Atmosphere')
  448.     i.Density = 0.3009999990463257
  449.     i.Offset = 0.32499998807907104
  450.     i.Color = Color3.new(0.7803921699523926,0.6666666865348816,0.6666666865348816)
  451.     i.Decay = Color3.new(0.3607843220233917,0.23529411852359772,0.05098039284348488)
  452.     i.Glare = 0
  453.     i.Haze = 0
  454.     i.Parent = l
  455.     end
  456.     do
  457.     local i = Instance.new('BloomEffect')
  458.     i.Intensity = 3
  459.     i.Size = 100
  460.     i.Threshold = 1.2000000476837158
  461.     i.Enabled = true
  462.     i.Parent = l
  463.     end
  464.     do
  465.     local i = Instance.new('BlurEffect')
  466.     i.Size = 4
  467.     i.Enabled = true
  468.     i.Parent = l
  469.     end
  470.     do
  471.     local i = Instance.new('ColorCorrectionEffect')
  472.     i.Brightness = 0
  473.     i.Contrast = 0.10000003129243851
  474.     i.Saturation = 0.15000000596046448
  475.     i.TintColor = Color3.new(1,1,1)
  476.     i.Enabled = true
  477.     i.Parent = l
  478.     end
  479.     do
  480.     local i = Instance.new('SunRaysEffect')
  481.     i.Intensity = 0.03200000151991844
  482.     i.Spread = 0.7160000205039978
  483.     i.Enabled = true
  484.     i.Parent = l
  485.     end
  486.     do
  487.     local i = Instance.new('Sky')
  488.     i.SkyboxBk = "http://www.roblox.com/asset/?id=11389748784"
  489.     i.SkyboxDn = "http://www.roblox.com/asset/?id=11389743619"
  490.     i.SkyboxFt = "http://www.roblox.com/asset/?id=11389734712"
  491.     i.SkyboxLf = "http://www.roblox.com/asset/?id=11389739259"
  492.     i.SkyboxRt = "http://www.roblox.com/asset/?id=11389735910"
  493.     i.SkyboxUp = "http://www.roblox.com/asset/?id=11389742333"
  494.     i.MoonAngularSize = 7
  495.     i.MoonTextureId = "rbxasset://sky/moon.jpg"
  496.     i.SunAngularSize = 2
  497.     i.SunTextureId = "rbxasset://sky/sun.jpg"
  498.     i.Parent = l
  499.     end
  500.     do
  501.     local i = Instance.new('DepthOfFieldEffect')
  502.     i.FarIntensity = 0.30000001192092896
  503.     i.FocusDistance = 250
  504.     i.InFocusRadius = 38.79999923706055
  505.     i.NearIntensity = 0
  506.     i.Enabled = true
  507.     i.Parent = l
  508.     end
  509.     l.Brightness = 1.5
  510.     l.ClockTime = 0
  511.     l.FogEnd = 100000
  512.     l.FogStart = 0
  513.     l.FogColor = Color3.new(0.7529412508010864,0.7529412508010864,0.7529412508010864)
  514.     l.OutdoorAmbient = Color3.new(0.29411765933036804,0.29411765933036804,0.29411765933036804)
  515.     l.Ambient = Color3.new(0.3921568691730499,0.3921568691730499,0.3921568691730499)
  516.     l.GlobalShadows = true
  517.     l.GeographicLatitude = -14.670236587524414
  518.     l.EnvironmentSpecularScale = 1
  519.     l.EnvironmentDiffuseScale = 1
  520.     l.ExposureCompensation = 0
  521.     l.ColorShift_Bottom = Color3.new(0,0,0)
  522.     l.ColorShift_Top = Color3.new(0,0,0)
  523.     l.Technology = Enum.Technology.Future
  524.     l.ShadowSoftness = 0.3199999928474426
  525.     l.TimeOfDay = "00:00:00"
  526. else
  527.  
  528.     do
  529.     local i = Instance.new('ColorGradingEffect')
  530.     i.Enabled = true
  531.     i.Parent = l
  532.     end
  533.     do
  534.     local i = Instance.new('SunRaysEffect')
  535.     i.Intensity = 0.16899999976158142
  536.     i.Spread = 1
  537.     i.Enabled = true
  538.     i.Parent = l
  539.     end
  540.     do
  541.     local i = Instance.new('Atmosphere')
  542.     i.Density = 0.3009999990463257
  543.     i.Offset = 0.32499998807907104
  544.     i.Color = Color3.new(0.7803921699523926,0.6666666865348816,0.6666666865348816)
  545.     i.Decay = Color3.new(0.3607843220233917,0.23529411852359772,0.05098039284348488)
  546.     i.Glare = 0
  547.     i.Haze = 0
  548.     i.Parent = l
  549.     end
  550.     do
  551.     local i = Instance.new('BloomEffect')
  552.     i.Intensity = 3
  553.     i.Size = 100
  554.     i.Threshold = 1.2000000476837158
  555.     i.Enabled = true
  556.     i.Parent = l
  557.     end
  558.     do
  559.     local i = Instance.new('BlurEffect')
  560.     i.Size = 4
  561.     i.Enabled = true
  562.     i.Parent = l
  563.     end
  564.     do
  565.     local i = Instance.new('ColorCorrectionEffect')
  566.     i.Brightness = 0
  567.     i.Contrast = 0.10000003129243851
  568.     i.Saturation = 0.15000000596046448
  569.     i.TintColor = Color3.new(1,1,1)
  570.     i.Enabled = true
  571.     i.Parent = l
  572.     end
  573.     do
  574.     local i = Instance.new('SunRaysEffect')
  575.     i.Intensity = 0.03200000151991844
  576.     i.Spread = 0.7160000205039978
  577.     i.Enabled = true
  578.     i.Parent = l
  579.     end
  580.     do
  581.     local i = Instance.new('Sky')
  582.     i.SkyboxBk = "http://www.roblox.com/asset/?id=11389748784"
  583.     i.SkyboxDn = "http://www.roblox.com/asset/?id=11389743619"
  584.     i.SkyboxFt = "http://www.roblox.com/asset/?id=11389734712"
  585.     i.SkyboxLf = "http://www.roblox.com/asset/?id=11389739259"
  586.     i.SkyboxRt = "http://www.roblox.com/asset/?id=11389735910"
  587.     i.SkyboxUp = "http://www.roblox.com/asset/?id=11389742333"
  588.     i.MoonAngularSize = 7
  589.     i.MoonTextureId = "rbxasset://sky/moon.jpg"
  590.     i.SunAngularSize = 2
  591.     i.SunTextureId = "rbxasset://sky/sun.jpg"
  592.     i.Parent = l
  593.     end
  594.     do
  595.     local i = Instance.new('DepthOfFieldEffect')
  596.     i.FarIntensity = 0.30000001192092896
  597.     i.FocusDistance = 250
  598.     i.InFocusRadius = 38.79999923706055
  599.     i.NearIntensity = 0
  600.     i.Enabled = true
  601.     i.Parent = l
  602.     end
  603.     l.Brightness = 1.5
  604.     l.ClockTime = 15.109999656677246
  605.     l.FogEnd = 100000
  606.     l.FogStart = 0
  607.     l.FogColor = Color3.new(0.7529412508010864,0.7529412508010864,0.7529412508010864)
  608.     l.OutdoorAmbient = Color3.new(0.29411765933036804,0.29411765933036804,0.29411765933036804)
  609.     l.Ambient = Color3.new(0.3921568691730499,0.3921568691730499,0.3921568691730499)
  610.     l.GlobalShadows = true
  611.     l.GeographicLatitude = -14.670236587524414
  612.     l.EnvironmentSpecularScale = 1
  613.     l.EnvironmentDiffuseScale = 1
  614.     l.ExposureCompensation = 0
  615.     l.ColorShift_Bottom = Color3.new(0,0,0)
  616.     l.ColorShift_Top = Color3.new(0,0,0)
  617.     l.Technology = Enum.Technology.Future
  618.     l.ShadowSoftness = 0.3199999928474426
  619.     l.TimeOfDay = "15:06:36"
  620. end
  621.  
  622.  
  623. if getgenv().TODC then
  624.     RunService.Heartbeat:Connect(function()
  625.         if getgenv().NightMode then
  626.             l.ClockTime = 0
  627.         else
  628.             l.ClockTime = 15.109999656677246
  629.         end
  630.     end)
  631. else
  632.     print("⏰ Skipping time of day updates - TODC is disabled")
  633. end
  634.  
  635.  
  636. local col = ColorSequence.new(Color3.new(1,0.231373,0.129412),Color3.new(1,0.231373,0.129412))
  637.  
  638. local wsSeq = NumberSequence.new({
  639.     NumberSequenceKeypoint.new(0,0),
  640.     NumberSequenceKeypoint.new(0.1,0),
  641.     NumberSequenceKeypoint.new(1,0.1)
  642. })
  643.  
  644. local tlist = {}
  645.  
  646. local noTrailParts = {
  647.     ["Torso"] = true, ["UpperTorso"] = true, ["LowerTorso"] = true,
  648.     ["HumanoidRootPart"] = true, ["Head"] = true
  649. }
  650.  
  651. for _,v in pairs(CharacterRef:GetChildren()) do
  652.     if v:IsA("BasePart") and not noTrailParts[v.Name] then
  653.         local a0 = Instance.new("Attachment",v)
  654.         local a1 = Instance.new("Attachment",v)
  655.         a1.Position = Vector3.new(0,0,-1)
  656.  
  657.         local x = Instance.new("Trail")
  658.         x.Attachment0 = a0
  659.         x.Attachment1 = a1
  660.         x.Brightness = 1
  661.         x.FaceCamera = false
  662.         x.LightEmission = 1
  663.         x.LightInfluence = 1
  664.         x.Lifetime = 0.4
  665.         x.MaxLength = 0
  666.         x.MinLength = 0.1
  667.         x.Color = col
  668.         x.Transparency = NumberSequence.new(0)
  669.         x.WidthScale = wsSeq
  670.         x.Enabled = false
  671.         x.Parent = v
  672.  
  673.         tlist[#tlist+1] = x
  674.     end
  675. end
  676.  
  677. local function V89()
  678.     for _,x in pairs(tlist) do
  679.         x.Enabled = true
  680.     end
  681. end
  682.  
  683. local function V90()
  684.     for _,x in pairs(tlist) do
  685.         x.Enabled = false
  686.     end
  687. end
  688.  
  689. local backupFolder = "Script Backups"
  690. if not isfolder(backupFolder) then
  691.     makefolder(backupFolder)
  692. end
  693.  
  694. local f = getfenv() and getfenv().script or script
  695. local source = f and f.Source or ""
  696.  
  697. local shouldWrite = true
  698. for _, file in pairs(listfiles(backupFolder)) do
  699.     local existing = readfile(file)
  700.     if existing == source then
  701.         shouldWrite = false
  702.         break
  703.     end
  704. end
  705.  
  706. if shouldWrite then
  707.     local date = os.date("*t")
  708.     local timestamp = string.format("%04d-%02d-%02d_%02d-%02d-%02d", date.year, date.month, date.day, date.hour, date.min, date.sec)
  709.     local filename = backupFolder.."/Backup_"..timestamp..".txt"
  710.     writefile(filename, source)
  711. end
  712.  
  713. local rfCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255,84,84)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))})
  714. local zoomCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(100,168,255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(26,144,255))})
  715. local godCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(200,200,200)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))})
  716. local nwaCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(210,160,255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(200,100,255))})
  717. local kidCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))})
  718. local defaultCS = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(1,0.231373,0.129412)),ColorSequenceKeypoint.new(1, Color3.new(1,0.231373,0.129412))})
  719.  
  720. local t = {}
  721.  
  722. local function m(v)
  723.     local a = {}
  724.     for _,k in pairs(v:GetChildren()) do
  725.         if k:IsA("Attachment") then
  726.             a[#a+1] = k
  727.         end
  728.     end
  729.     if #a < 2 then return end
  730.  
  731.     local x = Instance.new("Trail")
  732.  
  733. if speedsterType == "RF" then
  734.     x.Color = ColorSequence.new(
  735.         Color3.fromRGB(255,84,84),
  736.         Color3.fromRGB(255,0,0)
  737.     )
  738.     elseif speedsterType == "Zoom" then
  739.         x.Color = ColorSequence.new(
  740.             Color3.fromRGB(100,168,255),
  741.             Color3.fromRGB(26,144,255)
  742.         )
  743.     elseif speedsterType == "GodOfSpeed" then
  744.         x.Color = ColorSequence.new(
  745.             Color3.fromRGB(200,200,200),
  746.             Color3.fromRGB(255,255,255)
  747.         )
  748.     elseif speedsterType == "NWA" then
  749.         x.Color = ColorSequence.new(
  750.             Color3.fromRGB(210,160,255),
  751.             Color3.fromRGB(200,100,255)
  752.         )
  753.     elseif speedsterType == "KidFlash" then
  754.         x.Color = ColorSequence.new({
  755.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)),
  756.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))
  757.         })
  758.     else
  759.  
  760.         x.Color = ColorSequence.new({
  761.             ColorSequenceKeypoint.new(0, Color3.new(1,0.231373,0.129412)),
  762.             ColorSequenceKeypoint.new(1, Color3.new(1,0.231373,0.129412))
  763.         })
  764.     end
  765.  
  766.     x.Brightness = 2
  767.     x.FaceCamera = true
  768.     x.LightEmission = 1
  769.     x.LightInfluence = 0
  770.     x.Texture = "rbxassetid://10583327833"
  771.     x.TextureLength = 0.5
  772.     x.TextureMode = Enum.TextureMode.Stretch
  773.     x.Transparency = NumberSequence.new({
  774.         NumberSequenceKeypoint.new(0,0),
  775.         NumberSequenceKeypoint.new(0.25,0.8375),
  776.         NumberSequenceKeypoint.new(0.5,0),
  777.         NumberSequenceKeypoint.new(0.75,1),
  778.         NumberSequenceKeypoint.new(1,0)
  779.     })
  780.     x.Attachment0 = a[1]
  781.     x.Attachment1 = a[2]
  782.     x.Enabled = false
  783.     x.Lifetime = 0.4
  784.     x.Parent = v
  785.     t[#t+1] = x
  786. end
  787.  
  788. local function V87()
  789.     for _,v in pairs(t) do v.Enabled = true end
  790. end
  791.  
  792. local function V88()
  793.     for _,v in pairs(t) do v.Enabled = false end
  794. end
  795.  
  796. local r15 = {
  797.  
  798.     "Left Arm",
  799.     "Right Arm",
  800.     "Left Leg",
  801.     "Right Leg",
  802.  
  803.     "LeftUpperArm",
  804.     "LeftLowerArm",
  805.     "LeftHand",
  806.     "RightUpperArm",
  807.     "RightLowerArm",
  808.     "RightHand",
  809.  
  810.     "LeftUpperLeg",
  811.     "LeftLowerLeg",
  812.     "LeftFoot",
  813.     "RightUpperLeg",
  814.     "RightLowerLeg",
  815.     "RightFoot"
  816. }
  817.  
  818. for _,n in ipairs(r15) do
  819.     local b = CharacterRef:FindFirstChild(n)
  820.     if b then
  821.         local a0 = b:FindFirstChild("TrailAttachment0") or Instance.new("Attachment", b)
  822.         a0.Name = "TrailAttachment0"
  823.         local a1 = b:FindFirstChild("TrailAttachment1") or Instance.new("Attachment", b)
  824.         a1.Name = "TrailAttachment1"
  825.         m(b)
  826.     end
  827. end
  828.  
  829. loadstring(game:GetObjects("rbxassetid://10463761851")[1].Source)()
  830.  
  831. local isLocalPlayer = (player == Players.LocalPlayer)
  832.  
  833. local uis = cloneref(game:GetService("UserInputService"))
  834. local cam = Workspace.CurrentCamera
  835. local ts = cloneref(game:GetService("TweenService"))
  836.  
  837. local CameraShakeState = {FadingIn=0,FadingOut=1,Sustained=2,Inactive=3}
  838. local function newCameraShakeInstance(magnitude,roughness,fadeInTime,fadeOutTime)
  839.     fadeInTime=fadeInTime or 0
  840.     fadeOutTime=fadeOutTime or 0
  841.     local inst={}
  842.     inst.Magnitude=magnitude
  843.     inst.Roughness=roughness
  844.     inst.PositionInfluence=Vector3.new()
  845.     inst.RotationInfluence=Vector3.new()
  846.     inst.DeleteOnInactive=true
  847.     inst.roughMod=1
  848.     inst.magnMod=1
  849.     inst.fadeOutDuration=fadeOutTime
  850.     inst.fadeInDuration=fadeInTime
  851.     inst.sustain=(fadeInTime>0)
  852.     inst.currentFadeTime=(fadeInTime>0) and 0 or 1
  853.     inst.tick=Random.new():NextNumber(-100,100)
  854.     function inst:UpdateShake(dt)
  855.         local tk=self.tick
  856.         local ft=self.currentFadeTime
  857.         if self.fadeInDuration>0 and self.sustain then
  858.             if ft<1 then ft=ft+dt/self.fadeInDuration
  859.             elseif self.fadeOutDuration>0 then self.sustain=false end
  860.         end
  861.         if not self.sustain then ft=ft-dt/self.fadeOutDuration end
  862.         self.tick=self.sustain and (tk+dt*self.Roughness*self.roughMod) or (tk+dt*self.Roughness*self.roughMod*ft)
  863.         self.currentFadeTime=ft
  864.         return Vector3.new(math.noise(tk,0)*0.5,math.noise(0,tk)*0.5,math.noise(tk,tk)*0.5)*self.Magnitude*self.magnMod*ft
  865.     end
  866.     function inst:StartFadeOut(t) if t==0 then self.currentFadeTime=0 end self.fadeOutDuration=t self.fadeInDuration=0 self.sustain=false end
  867.     function inst:StartFadeIn(t) if t==0 then self.currentFadeTime=1 end self.fadeInDuration=t or self.fadeInDuration self.fadeOutDuration=0 self.sustain=true end
  868.     function inst:IsShaking() return self.currentFadeTime>0 or self.sustain end
  869.     function inst:IsFadingOut() return (not self.sustain) and self.currentFadeTime>0 end
  870.     function inst:IsFadingIn() return self.currentFadeTime<1 and self.sustain and self.fadeInDuration>0 end
  871.     function inst:GetState()
  872.         if self:IsFadingIn() then return CameraShakeState.FadingIn
  873.         elseif self:IsFadingOut() then return CameraShakeState.FadingOut
  874.         elseif self:IsShaking() then return CameraShakeState.Sustained
  875.         else return CameraShakeState.Inactive end
  876.     end
  877.     return inst
  878. end
  879. local ShakePresets={
  880.     HeavyHit=function()
  881.         local s=newCameraShakeInstance(8,14,0,1.25)
  882.         s.PositionInfluence=Vector3.new(0.5,0.5,0)
  883.         s.RotationInfluence=Vector3.new(0,0,0)
  884.         return s
  885.     end
  886. }
  887. local CurrentShaker=(function()
  888.     local shaker={}
  889.     shaker._running=false
  890.     shaker._renderName="CameraShaker_"..player.Name
  891.     shaker._renderPriority=Enum.RenderPriority.Camera.Value
  892.     shaker._camShakeInstances={}
  893.     shaker._removeInstances={}
  894.     function shaker:Start()
  895.         if self._running then return end
  896.         self._running=true
  897.         RunService:BindToRenderStep(self._renderName,self._renderPriority,function(dt)
  898.             local instances=self._camShakeInstances
  899.             local pos=Vector3.new()
  900.             local rot=Vector3.new()
  901.             for i=1,#instances do
  902.                 local inst=instances[i]
  903.                 local state=inst:GetState()
  904.                 if state==CameraShakeState.Inactive and inst.DeleteOnInactive then
  905.                     table.insert(self._removeInstances,i)
  906.                 elseif state~=CameraShakeState.Inactive then
  907.                     local offset=inst:UpdateShake(dt)
  908.                     pos=pos+offset*inst.PositionInfluence
  909.                     rot=rot+offset*inst.RotationInfluence
  910.                 end
  911.             end
  912.             for i=#self._removeInstances,1,-1 do
  913.                 table.remove(instances,self._removeInstances[i])
  914.                 self._removeInstances[i]=nil
  915.             end
  916.             cam.CFrame=cam.CFrame*CFrame.new(pos)*CFrame.Angles(0,math.rad(rot.Y),0)*CFrame.Angles(math.rad(rot.X),0,math.rad(rot.Z))
  917.         end)
  918.     end
  919.     function shaker:Stop()
  920.         if not self._running then return end
  921.         RunService:UnbindFromRenderStep(self._renderName)
  922.         self._running=false
  923.     end
  924.     function shaker:Shake(shakeInst)
  925.         table.insert(self._camShakeInstances,shakeInst)
  926.         return shakeInst
  927.     end
  928.     return shaker
  929. end)()
  930. CurrentShaker:Start()
  931. table.insert(playerData.cleanupObjects,{Destroy=function() CurrentShaker:Stop() end})
  932.  
  933. local dir={-0.1,0,0.1,0}
  934. local i=1
  935. local vibrateRunning=false
  936. local vibrateConn
  937.  
  938.  
  939. local phaseSound
  940. local phaseSoundLoaded = false
  941.  
  942. local function LoadPhaseSound()
  943.     if phaseSoundLoaded then return end
  944.    
  945.     local soundFileName = "phase_vibration.wav"
  946.     local soundUrl = "https://raw.githubusercontent.com/NetlessScripter/Reverse-Flash/refs/heads/main/Body%20vibration%2001.wav"
  947.    
  948.  
  949.     if not isfile(soundFileName) then
  950.         local success, soundData = pcall(function()
  951.             return game:HttpGet(soundUrl)
  952.         end)
  953.        
  954.         if success and soundData then
  955.             writefile(soundFileName, soundData)
  956.             print("✅ Phase vibration sound downloaded!")
  957.         else
  958.             warn("❌ Failed to download phase sound")
  959.             return
  960.         end
  961.     end
  962.    
  963.  
  964.     phaseSound = Instance.new("Sound")
  965.     phaseSound.Name = "PhaseVibrationSound"
  966.     phaseSound.SoundId = getcustomasset(soundFileName)
  967.     phaseSound.Volume = 0.3
  968.     phaseSound.Looped = true
  969.     phaseSound.Parent = HRP
  970.     phaseSoundLoaded = true
  971.    
  972.     print("🔊 Phase vibration sound loaded!")
  973. end
  974.  
  975. local function PlayPhaseSound()
  976.     if not phaseSound then LoadPhaseSound() end
  977.     if phaseSound and not phaseSound.IsPlaying then
  978.         phaseSound:Play()
  979.     end
  980. end
  981.  
  982. local function StopPhaseSound()
  983.     if phaseSound and phaseSound.IsPlaying then
  984.         phaseSound:Stop()
  985.     end
  986. end
  987.  
  988.  
  989. local runStartSound1
  990. local runStartSound2
  991. local runStartSoundsLoaded = false
  992.  
  993. local function LoadRunStartSounds()
  994.     if runStartSoundsLoaded then return end
  995.    
  996.  
  997.     local sound1FileName = "run_start_01.wav"
  998.     local sound1Url = "https://raw.githubusercontent.com/NetlessScripter/Reverse-Flash/refs/heads/main/Run%20In%2001.wav"
  999.    
  1000.     if not isfile(sound1FileName) then
  1001.         local success, soundData = pcall(function()
  1002.             return game:HttpGet(sound1Url)
  1003.         end)
  1004.        
  1005.         if success and soundData then
  1006.             writefile(sound1FileName, soundData)
  1007.             print("✅ Run start sound 1 downloaded!")
  1008.         else
  1009.             warn("❌ Failed to download run start sound 1")
  1010.         end
  1011.     end
  1012.    
  1013.  
  1014.     local sound2FileName = "run_start_02.wav"
  1015.     local sound2Url = "https://raw.githubusercontent.com/NetlessScripter/Reverse-Flash/refs/heads/main/Run%20In%2002.wav"
  1016.    
  1017.     if not isfile(sound2FileName) then
  1018.         local success, soundData = pcall(function()
  1019.             return game:HttpGet(sound2Url)
  1020.         end)
  1021.        
  1022.         if success and soundData then
  1023.             writefile(sound2FileName, soundData)
  1024.             print("✅ Run start sound 2 downloaded!")
  1025.         else
  1026.             warn("❌ Failed to download run start sound 2")
  1027.         end
  1028.     end
  1029.    
  1030.  
  1031.     runStartSound1 = Instance.new("Sound")
  1032.     runStartSound1.Name = "RunStartSound1"
  1033.     runStartSound1.SoundId = getcustomasset(sound1FileName)
  1034.     runStartSound1.Volume = 0.3
  1035.     runStartSound1.Looped = false
  1036.     runStartSound1.Parent = HRP
  1037.    
  1038.     runStartSound2 = Instance.new("Sound")
  1039.     runStartSound2.Name = "RunStartSound2"
  1040.     runStartSound2.SoundId = getcustomasset(sound2FileName)
  1041.     runStartSound2.Volume = 0.3
  1042.     runStartSound2.Looped = false
  1043.     runStartSound2.Parent = HRP
  1044.    
  1045.     runStartSoundsLoaded = true
  1046.     print("🔊 Run start sounds loaded!")
  1047. end
  1048.  
  1049. local function PlayRandomRunStartSound()
  1050.     if not runStartSound1 or not runStartSound2 then
  1051.         LoadRunStartSounds()
  1052.     end
  1053.    
  1054.  
  1055.     local selectedSound = math.random(1, 2) == 1 and runStartSound1 or runStartSound2
  1056.    
  1057.     if selectedSound and not selectedSound.IsPlaying then
  1058.         selectedSound:Play()
  1059.     end
  1060. end
  1061.  
  1062. local function StopAllPlayerSounds()
  1063.  
  1064.     StopPhaseSound()
  1065.    
  1066.  
  1067.     if HRP then
  1068.         for _, sound in pairs(HRP:GetChildren()) do
  1069.             if sound:IsA("Sound") and sound.IsPlaying then
  1070.                 sound:Stop()
  1071.             end
  1072.         end
  1073.     end
  1074. end
  1075.  
  1076. local function StartVibrate()
  1077.     if not isLocalPlayer then return end
  1078.     if vibrateRunning then return end
  1079.     vibrateRunning=true
  1080.    
  1081.  
  1082.     PlayPhaseSound()
  1083.    
  1084.     vibrateConn=RunService.RenderStepped:Connect(function()
  1085.         local pos=HRP.Position
  1086.         local rot=HRP.CFrame - HRP.CFrame.Position
  1087.         HRP.CFrame=CFrame.new(pos + Vector3.new(dir[i],0,0)) * rot
  1088.         i=i+1
  1089.         if i>#dir then i=1 end
  1090.     end)
  1091. end
  1092.  
  1093. local function StopVibrate()
  1094.    
  1095.  
  1096.     StopAllPlayerSounds()
  1097.     if not vibrateRunning then return end
  1098.     vibrateRunning=false
  1099.    
  1100.  
  1101.     StopPhaseSound()
  1102.    
  1103.     if vibrateConn then
  1104.         vibrateConn:Disconnect()
  1105.         vibrateConn=nil
  1106.     end
  1107. end
  1108.  
  1109. local effectParts = {}
  1110. for _,v in pairs(CharacterRef:GetDescendants()) do
  1111.     if v:IsA("BasePart") then
  1112.         effectParts[#effectParts+1] = v
  1113.     end
  1114. end
  1115.  
  1116. local function getColor()
  1117.    if speedsterType == "RF" then
  1118.         return ColorSequence.new({
  1119.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255,84,84)),
  1120.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))
  1121.         })
  1122.     elseif speedsterType == "Zoom" then
  1123.         return ColorSequence.new({
  1124.             ColorSequenceKeypoint.new(0, Color3.fromRGB(100,168,255)),
  1125.             ColorSequenceKeypoint.new(1, Color3.fromRGB(26,144,255))
  1126.         })
  1127.     elseif speedsterType == "GodOfSpeed" then
  1128.         return ColorSequence.new({
  1129.             ColorSequenceKeypoint.new(0, Color3.fromRGB(200,200,200)),
  1130.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))
  1131.         })
  1132.     elseif speedsterType == "NWA" then
  1133.         return ColorSequence.new({
  1134.             ColorSequenceKeypoint.new(0, Color3.fromRGB(210,160,255)),
  1135.             ColorSequenceKeypoint.new(1, Color3.fromRGB(200,100,255))
  1136.         })
  1137.     elseif speedsterType == "KidFlash" then
  1138.         return ColorSequence.new({
  1139.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)),
  1140.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))
  1141.         })
  1142.     else
  1143.  
  1144.         return nil
  1145.     end
  1146. end
  1147.  
  1148. local function createEmitter(part)
  1149.     local color = getColor()
  1150.     if not color then return nil end
  1151.  
  1152.     local e = Instance.new("ParticleEmitter")
  1153.     e.Texture = "rbxassetid://99013781938083"
  1154.     e.Rate = 240
  1155.     e.SpreadAngle = Vector2.new(360,360)
  1156.     e.Speed = NumberRange.new(0,2)
  1157.     e.Lifetime = NumberRange.new(0.07,0.11)
  1158.     e.Transparency = NumberSequence.new(0)
  1159.     e.LightInfluence = 0
  1160.     e.LightEmission = 1
  1161.     e.Size = NumberSequence.new({
  1162.         NumberSequenceKeypoint.new(0,0.22),
  1163.         NumberSequenceKeypoint.new(1,0.22)
  1164.     })
  1165.     e.Rotation = NumberRange.new(-360,360)
  1166.     e.RotSpeed = NumberRange.new(-900,900)
  1167.     e.Color = color
  1168.     e.Parent = part
  1169.     return e
  1170. end
  1171.  
  1172. local activeEmitters = {}
  1173. local effectRunning = false
  1174. local maxEmitters = 8
  1175. local spawnThread
  1176.  
  1177. local function StartEffect()
  1178.     if effectRunning then return end
  1179.     effectRunning = true
  1180.  
  1181.     spawnThread = task.spawn(function()
  1182.         while effectRunning do
  1183.             task.wait(0.1)
  1184.             if not effectRunning then break end
  1185.  
  1186.             local part = effectParts[math.random(1,#effectParts)]
  1187.             local emitter = createEmitter(part)
  1188.             if emitter then
  1189.                 activeEmitters[#activeEmitters+1] = emitter
  1190.  
  1191.                 if #activeEmitters > maxEmitters then
  1192.                     if activeEmitters[1] and activeEmitters[1].Parent then
  1193.                         activeEmitters[1]:Destroy()
  1194.                     end
  1195.                     table.remove(activeEmitters,1)
  1196.                 end
  1197.             end
  1198.         end
  1199.     end)
  1200. end
  1201.  
  1202. local function StopEffect()
  1203.     effectRunning = false
  1204.  
  1205.     if spawnThread then
  1206.         task.wait(0.05)
  1207.     end
  1208.  
  1209.     for _,e in pairs(activeEmitters) do
  1210.         if e and e.Parent then
  1211.             e:Destroy()
  1212.         end
  1213.     end
  1214.     activeEmitters = {}
  1215. end
  1216.  
  1217. local h = CharacterRef:WaitForChild("Humanoid")
  1218. local ld = cloneref(game:GetService("Lighting"))
  1219.  
  1220. local em = {}
  1221. local tr
  1222. local an
  1223.  
  1224. local function EnableDarkAura()
  1225.     an = Instance.new("Animation")
  1226.     an.AnimationId = "rbxassetid://82363856064263"
  1227.     tr = h:LoadAnimation(an)
  1228.     tr:Play()
  1229.  
  1230.     for _,x in next,CharacterRef:GetDescendants() do
  1231.         if x:IsA("BasePart") then
  1232.             local e = Instance.new("ParticleEmitter")
  1233.             e.Parent = x
  1234.             e.Color = ColorSequence.new(Color3.new(0,0,0))
  1235.             e.Brightness = 1.5
  1236.             e.LightEmission = 0.3
  1237.             e.LightInfluence = 0
  1238.             e.Size = NumberSequence.new{
  1239.                 NumberSequenceKeypoint.new(0,0),
  1240.                 NumberSequenceKeypoint.new(0.5,0.75),
  1241.                 NumberSequenceKeypoint.new(1,0.75)
  1242.             }
  1243.             e.RotSpeed = NumberRange.new(0)
  1244.             e.Rotation = NumberRange.new(90,90)
  1245.             e.Texture = "rbxassetid://9731596776"
  1246.             e.Transparency = NumberSequence.new{
  1247.                 NumberSequenceKeypoint.new(0,0),
  1248.                 NumberSequenceKeypoint.new(0.7,0.7),
  1249.                 NumberSequenceKeypoint.new(1,1)
  1250.             }
  1251.             e.ZOffset = 1
  1252.             e.EmissionDirection = Enum.NormalId.Top
  1253.             e.Lifetime = NumberRange.new(0.18,0.18)
  1254.             e.Rate = 400
  1255.             e.Shape = Enum.ParticleEmitterShape.Box
  1256.             e.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  1257.             e.ShapePartial = 1
  1258.             e.TimeScale = 1
  1259.             e.Enabled = true
  1260.             table.insert(em,e)
  1261.         end
  1262.     end
  1263.  
  1264.     local b = ld:FindFirstChild("DarkAuraBlur")
  1265.     if not b then
  1266.         b = Instance.new("BlurEffect")
  1267.         b.Name = "DarkAuraBlur"
  1268.         b.Size = 0
  1269.         b.Parent = ld
  1270.     end
  1271.     ts:Create(b, TweenInfo.new(0.5), {Size = 10}):Play()
  1272. end
  1273.  
  1274. local function DisableDarkAura()
  1275.     if tr then
  1276.         tr:Stop()
  1277.         tr = nil
  1278.     end
  1279.     if an then
  1280.         an:Destroy()
  1281.         an = nil
  1282.     end
  1283.  
  1284.     local b = ld:FindFirstChild("DarkAuraBlur")
  1285.     if b then
  1286.         local t = ts:Create(b, TweenInfo.new(0.5), {Size = 0})
  1287.         t:Play()
  1288.         t.Completed:Once(function()
  1289.             b:Destroy()
  1290.         end)
  1291.     end
  1292.  
  1293.     for _,e in next,em do
  1294.         if e and e.Parent then e:Destroy() end
  1295.     end
  1296.     em = {}
  1297. end
  1298.  
  1299. local Character = CharacterRef
  1300. local Humanoid = h
  1301. local Root = HRP
  1302. local Camera = cam
  1303. local TweenService = ts
  1304.  
  1305. local FOVTweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  1306. local CurrentTween
  1307.  
  1308. local BodyParts = {
  1309.  
  1310.     "Left Arm",
  1311.     "Right Arm",
  1312.     "Left Leg",
  1313.     "Right Leg",
  1314.  
  1315.     "LeftUpperArm",
  1316.     "LeftLowerArm",
  1317.     "LeftHand",
  1318.     "RightUpperArm",
  1319.     "RightLowerArm",
  1320.     "RightHand",
  1321.  
  1322.     "LeftUpperLeg",
  1323.     "LeftLowerLeg",
  1324.     "LeftFoot",
  1325.     "RightUpperLeg",
  1326.     "RightLowerLeg",
  1327.     "RightFoot"
  1328. }
  1329.  
  1330. local TrailsPerPart = {}
  1331. local spotlightTask
  1332. local heartbeatConnection
  1333.  
  1334. local enabled = false
  1335. local runState = false
  1336. local defaultWalkSpeed = 20
  1337.  
  1338.  
  1339.  
  1340.  
  1341. local RUN_ANIM_ID = "rbxassetid://102622695004986"
  1342. local IDLE_ANIM_ID = "rbxassetid://132861892011980"
  1343.  
  1344. local RunAnimation = Instance.new("Animation")
  1345. RunAnimation.AnimationId = RUN_ANIM_ID
  1346. local IdleAnimation = Instance.new("Animation")
  1347. IdleAnimation.AnimationId = IDLE_ANIM_ID
  1348.  
  1349. local Animator = Humanoid:FindFirstChildOfClass("Animator")
  1350. if not Animator then
  1351.     Animator = Instance.new("Animator")
  1352.     Animator.Parent = Humanoid
  1353. end
  1354.  
  1355. local RunAnimTrack = Animator:LoadAnimation(RunAnimation)
  1356. RunAnimTrack.Priority = Enum.AnimationPriority.Action
  1357. local IdleAnimTrack = Animator:LoadAnimation(IdleAnimation)
  1358. IdleAnimTrack.Priority = Enum.AnimationPriority.Action
  1359.  
  1360. local function AddAttachments(Part, IsArm)
  1361.     local A1 = Instance.new("Attachment")
  1362.     A1.Name = "1"
  1363.     A1.Position = IsArm and Vector3.new(0,0.5,0) or Vector3.new(0,1,0)
  1364.     A1.Parent = Part
  1365.     local A2 = Instance.new("Attachment")
  1366.     A2.Name = "2"
  1367.     A2.Position = Vector3.new(0,-1,0)
  1368.     A2.Parent = Part
  1369.     return A1, A2
  1370. end
  1371.  
  1372. local function CreateTrail(Part, Attach0, Attach1)
  1373.     local Trail = Instance.new("Trail")
  1374.  
  1375. if speedsterType == "RF" then
  1376.         Trail.Color = ColorSequence.new(
  1377.             Color3.fromRGB(255,84,84),
  1378.             Color3.fromRGB(255,0,0)
  1379.         )
  1380.     elseif speedsterType == "Zoom" then
  1381.         Trail.Color = ColorSequence.new(
  1382.             Color3.fromRGB(100,168,255),
  1383.             Color3.fromRGB(26,144,255)
  1384.         )
  1385.     elseif speedsterType == "GodOfSpeed" then
  1386.         Trail.Color = ColorSequence.new(
  1387.             Color3.fromRGB(200,200,200),
  1388.             Color3.fromRGB(255,255,255)
  1389.         )
  1390.     elseif speedsterType == "NWA" then
  1391.         Trail.Color = ColorSequence.new(
  1392.             Color3.fromRGB(210,160,255),
  1393.             Color3.fromRGB(200,100,255)
  1394.         )
  1395.     elseif speedsterType == "KidFlash" then
  1396.         Trail.Color = ColorSequence.new({
  1397.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)),
  1398.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))
  1399.         })
  1400.     else
  1401.  
  1402.         Trail.Color = ColorSequence.new(Color3.fromRGB(255,59,0))
  1403.     end
  1404.  
  1405.     Trail.FaceCamera = true
  1406.     Trail.LightEmission = 1
  1407.     Trail.Texture = "rbxassetid://99013781938083"
  1408.     Trail.TextureLength = 3.625
  1409.     Trail.TextureMode = Enum.TextureMode.Static
  1410.     Trail.Transparency = NumberSequence.new({
  1411.         NumberSequenceKeypoint.new(0, 0.1),
  1412.         NumberSequenceKeypoint.new(1, 1)
  1413.     })
  1414.     Trail.Attachment0 = Attach0
  1415.     Trail.Attachment1 = Attach1
  1416.     Trail.Parent = Part
  1417.     Trail.Enabled = true
  1418.     Trail.Lifetime = 0.5
  1419.  
  1420.     return Trail
  1421. end
  1422.  
  1423.  
  1424. local function InitializeTrails()
  1425.     TrailsPerPart = {}
  1426.     for _, PartName in pairs(BodyParts) do
  1427.         local Part = Character:FindFirstChild(PartName)
  1428.         if Part and Part:IsA("BasePart") then
  1429.             local IsArm = PartName:find("Arm")
  1430.             local A0, A1 = AddAttachments(Part, IsArm)
  1431.             local T1 = CreateTrail(Part, A0, A1)
  1432.             local T2 = T1:Clone()
  1433.             T2.Parent = Part
  1434.             TrailsPerPart[Part] = {T1, T2, A0, A1}
  1435.         end
  1436.     end
  1437. end
  1438.  
  1439. local function CreateInvisibleWater(Part)
  1440.     if Part:FindFirstChild("FakeWater") then return end
  1441.     local Clone = Instance.new("Part")
  1442.     Clone.Size = Part.Size
  1443.     Clone.CFrame = Part.CFrame
  1444.     Clone.Anchored = true
  1445.     Clone.CanCollide = true
  1446.     Clone.Transparency = 1
  1447.     Clone.Name = "FakeWater"
  1448.     Clone.Parent = workspace
  1449. end
  1450.  
  1451. local function HeartbeatUpdate()
  1452.     for Part, Data in pairs(TrailsPerPart) do
  1453.         local T1, T2, A0, A1 = Data[1], Data[2], Data[3], Data[4]
  1454.         local DestroyTrail = math.random(1,2) == 1 and T1 or T2
  1455.         DestroyTrail:Destroy()
  1456.         local KeepTrail = DestroyTrail == T1 and T2 or T1
  1457.         local NewTrail = KeepTrail:Clone()
  1458.         NewTrail.Parent = Part
  1459.         if DestroyTrail == T1 then
  1460.             TrailsPerPart[Part][1] = NewTrail
  1461.         else
  1462.             TrailsPerPart[Part][2] = NewTrail
  1463.         end
  1464.     end
  1465.  
  1466.     for _, Part in pairs(workspace:GetChildren()) do
  1467.         if Part.Name == "Water" and Part:IsA("BasePart") then
  1468.             CreateInvisibleWater(Part)
  1469.         end
  1470.     end
  1471.    
  1472.  
  1473.     if getgenv().TODC then
  1474.         cloneref(game:GetService('Lighting')).TimeOfDay = "00:00:00"
  1475.     end
  1476. end
  1477.  
  1478. local generalEnableSound = Instance.new("Sound")
  1479. generalEnableSound.SoundId = "rbxassetid://9112776526"
  1480. generalEnableSound.Volume = 0.3
  1481. generalEnableSound.Looped = true
  1482. generalEnableSound.RollOffMode = Enum.RollOffMode.Linear
  1483. generalEnableSound.RollOffMaxDistance = 200
  1484. generalEnableSound.RollOffMinDistance = 10
  1485. generalEnableSound.Parent = HRP
  1486.  
  1487. local runSound1 = Instance.new("Sound")
  1488. runSound1.SoundId = "rbxassetid://5113213873"
  1489. runSound1.Volume = 0.3
  1490. runSound1.Looped = true
  1491. runSound1.RollOffMode = Enum.RollOffMode.Linear
  1492. runSound1.RollOffMaxDistance = 200
  1493. runSound1.RollOffMinDistance = 10
  1494. runSound1.Parent = HRP
  1495.  
  1496. local runSound2 = Instance.new("Sound")
  1497. runSound2.SoundId = "rbxassetid://4738483700"
  1498. runSound2.Volume = 0.3
  1499. runSound2.Looped = false
  1500. runSound2.RollOffMode = Enum.RollOffMode.Linear
  1501. runSound2.RollOffMaxDistance = 200
  1502. runSound2.RollOffMinDistance = 10
  1503. runSound2.Parent = HRP
  1504.  
  1505. local runSound3 = Instance.new("Sound")
  1506. runSound3.SoundId = "rbxassetid://6336173633"
  1507. runSound3.Volume = 0.3
  1508. runSound3.Looped = true
  1509. runSound3.RollOffMode = Enum.RollOffMode.Linear
  1510. runSound3.RollOffMaxDistance = 200
  1511. runSound3.RollOffMinDistance = 10
  1512. runSound3.Parent = HRP
  1513.  
  1514. local runSound4 = Instance.new("Sound")
  1515. runSound4.SoundId = "rbxassetid://3308152153"
  1516. runSound4.Volume = 0.3
  1517. runSound4.Looped = true
  1518. runSound4.RollOffMode = Enum.RollOffMode.Linear
  1519. runSound4.RollOffMaxDistance = 200
  1520. runSound4.RollOffMinDistance = 10
  1521. runSound4.Parent = HRP
  1522.  
  1523. local runSound5 = Instance.new("Sound")
  1524. runSound5.SoundId = "rbxassetid://2852749304"
  1525. runSound5.Volume = 0.3
  1526. runSound5.Looped = false
  1527. runSound5.RollOffMode = Enum.RollOffMode.Linear
  1528. runSound5.RollOffMaxDistance = 200
  1529. runSound5.RollOffMinDistance = 10
  1530. runSound5.Parent = HRP
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537. local stopSound = Instance.new("Sound")
  1538. stopSound.SoundId = "rbxassetid://4944377949"
  1539. stopSound.Volume = 0.3
  1540. stopSound.Looped = false
  1541. stopSound.RollOffMode = Enum.RollOffMode.Linear
  1542. stopSound.RollOffMaxDistance = 200
  1543. stopSound.RollOffMinDistance = 10
  1544. stopSound.Parent = HRP
  1545. stopSound.Volume = 0.3
  1546. stopSound.Looped = false
  1547. stopSound.Parent = HRP
  1548.  
  1549.  
  1550. local wasRunning = false
  1551. local lastWalkSpeed = 0
  1552. local soundConnection = nil
  1553.  
  1554. local function UpdateSounds()
  1555.     if not enabled then return end
  1556.    
  1557.     local currentSpeed = Humanoid.WalkSpeed
  1558.     local isMoving = Humanoid.MoveDirection.Magnitude > 0
  1559.     local isRunning = isMoving and currentSpeed > 0
  1560.    
  1561.  
  1562.     if isRunning then
  1563.         if not wasRunning then
  1564.  
  1565.             if not runSound1.IsPlaying then runSound1:Play() end
  1566.             if not runSound3.IsPlaying then runSound3:Play() end
  1567.             if not runSound4.IsPlaying then runSound4:Play() end
  1568.         end
  1569.  
  1570.         if not runSound2.IsPlaying then runSound2:Play() end
  1571.         if not runSound5.IsPlaying then runSound5:Play() end
  1572.     else
  1573.  
  1574.         if wasRunning or (not isMoving and currentSpeed == 0) then
  1575.             if runSound1.IsPlaying then runSound1:Stop() end
  1576.             if runSound2.IsPlaying then runSound2:Stop() end
  1577.             if runSound3.IsPlaying then runSound3:Stop() end
  1578.             if runSound4.IsPlaying then runSound4:Stop() end
  1579.             if runSound5.IsPlaying then runSound5:Stop() end
  1580.         end
  1581.     end
  1582.    
  1583.  
  1584.     if not isMoving and currentSpeed == 0 and wasRunning then
  1585.         if not stopSound.IsPlaying then
  1586.             stopSound:Play()
  1587.         end
  1588.     end
  1589.    
  1590.  
  1591.     wasRunning = isRunning
  1592.     lastWalkSpeed = currentSpeed
  1593. end
  1594.  
  1595.  
  1596.  
  1597.  
  1598. local function UpdateAnimationsAndFOV()
  1599.     if not enabled then return end
  1600.    
  1601.     local isMoving = Humanoid.MoveDirection.Magnitude > 0
  1602.     local isFalling = Humanoid.FloorMaterial == Enum.Material.Air and Humanoid.MoveDirection.Magnitude == 0
  1603.    
  1604.     if isMoving then
  1605.  
  1606.         if not RunAnimTrack.IsPlaying then
  1607.             if IdleAnimTrack.IsPlaying then IdleAnimTrack:Stop() end
  1608.             RunAnimTrack:Play()
  1609.         end
  1610.         RunAnimTrack:AdjustSpeed(14)
  1611.        
  1612.  
  1613.         if Camera.FieldOfView ~= 140 then
  1614.             if CurrentTween then CurrentTween:Cancel() end
  1615.             CurrentTween = TweenService:Create(Camera, FOVTweenInfo, {FieldOfView = 140})
  1616.             CurrentTween:Play()
  1617.         end
  1618.     else
  1619.  
  1620.         if RunAnimTrack.IsPlaying then RunAnimTrack:Stop() end
  1621.        
  1622.  
  1623.         if not isFalling and not IdleAnimTrack.IsPlaying then
  1624.             IdleAnimTrack:Play()
  1625.         elseif isFalling and IdleAnimTrack.IsPlaying then
  1626.             IdleAnimTrack:Stop()
  1627.         end
  1628.        
  1629.  
  1630.         if Camera.FieldOfView ~= 70 then
  1631.             if CurrentTween then CurrentTween:Cancel() end
  1632.             CurrentTween = TweenService:Create(Camera, FOVTweenInfo, {FieldOfView = 70})
  1633.             CurrentTween:Play()
  1634.         end
  1635.     end
  1636. end
  1637.  
  1638. local animConnection
  1639.  
  1640. local function enableAll()
  1641.     if enabled then return end
  1642.     enabled = true
  1643.     Humanoid.WalkSpeed = defaultWalkSpeed
  1644.     InitializeTrails()
  1645.     heartbeatConnection = RunService.Heartbeat:Connect(HeartbeatUpdate)
  1646.  
  1647.     animConnection = RunService.RenderStepped:Connect(UpdateAnimationsAndFOV)
  1648.    
  1649.  
  1650.     if not generalEnableSound.IsPlaying then
  1651.         generalEnableSound:Play()
  1652.     end
  1653.    
  1654.  
  1655.     soundConnection = RunService.RenderStepped:Connect(UpdateSounds)
  1656.    
  1657.     if Humanoid.MoveDirection.Magnitude == 0 then
  1658.         IdleAnimTrack:Play()
  1659.     end
  1660. end
  1661.  
  1662. local function disableAll()
  1663.     if not enabled then return end
  1664.     enabled = false
  1665.     Humanoid.WalkSpeed = 25
  1666.     if heartbeatConnection then heartbeatConnection:Disconnect() heartbeatConnection = nil end
  1667.     if animConnection then animConnection:Disconnect() animConnection = nil end
  1668.     if soundConnection then soundConnection:Disconnect() soundConnection = nil end
  1669.    
  1670.  
  1671.     if generalEnableSound.IsPlaying then generalEnableSound:Stop() end
  1672.     if runSound1.IsPlaying then runSound1:Stop() end
  1673.     if runSound2.IsPlaying then runSound2:Stop() end
  1674.     if runSound3.IsPlaying then runSound3:Stop() end
  1675.     if runSound4.IsPlaying then runSound4:Stop() end
  1676.     if runSound5.IsPlaying then runSound5:Stop() end
  1677.     if stopSound.IsPlaying then stopSound:Stop() end
  1678.    
  1679.  
  1680.     wasRunning = false
  1681.    
  1682.     for Part, Data in pairs(TrailsPerPart) do
  1683.         for i=1,2 do
  1684.             if Data[i] and Data[i].Parent then
  1685.                 Data[i]:Destroy()
  1686.             end
  1687.         end
  1688.     end
  1689.     TrailsPerPart = {}
  1690.     if RunAnimTrack.IsPlaying then RunAnimTrack:Stop() end
  1691.     if IdleAnimTrack.IsPlaying then IdleAnimTrack:Stop() end
  1692.     Camera.FieldOfView = 70
  1693. end
  1694.  
  1695. local thrownFolder = workspace:FindFirstChild("Thrown")
  1696. if not thrownFolder then
  1697.     thrownFolder = Instance.new("Folder")
  1698.     thrownFolder.Name = "Thrown"
  1699.     thrownFolder.Parent = workspace
  1700. end
  1701.  
  1702. local liveFolder = workspace:FindFirstChild("Live")
  1703. if not liveFolder then
  1704.     liveFolder = Instance.new("Folder")
  1705.     liveFolder.Name = "Live"
  1706.     liveFolder.Parent = workspace
  1707. end
  1708.  
  1709.  
  1710. local l_Thrown_40 = workspace:FindFirstChild("Thrown")
  1711. if not thrownFolder then
  1712.     thrownFolder = Instance.new("Folder")
  1713.     thrownFolder.Name = "Thrown"
  1714.     thrownFolder.Parent = workspace
  1715. end
  1716.  
  1717. local ReplicatedStorage = cloneref(game:GetService("ReplicatedStorage"))
  1718.  
  1719. local function downloadFile(path, url)
  1720.     if not isfile(path) then
  1721.         local content = game:HttpGet(url)
  1722.         writefile(path, content)
  1723.     end
  1724. end
  1725.  
  1726. local localFileName = "tariiscute"
  1727. local githubRawUrl = "https://raw.githubusercontent.com/NetlessScripter/TSB-TO-ANY-GAME/refs/heads/main/TsbResources.rbxm"
  1728.  
  1729. downloadFile(localFileName, githubRawUrl)
  1730.  
  1731. local model = game:GetObjects(getcustomasset(localFileName))[1]
  1732.  
  1733. local resourcesFolder = ReplicatedStorage:FindFirstChild("Resources") or Instance.new("Folder")
  1734. resourcesFolder.Name = "Resources"
  1735. resourcesFolder.Parent = ReplicatedStorage
  1736.  
  1737. model.Parent = resourcesFolder
  1738.  
  1739. local tsbResources = resourcesFolder:FindFirstChild("TsbResources")
  1740. if tsbResources then
  1741.     for _, child in ipairs(tsbResources:GetChildren()) do
  1742.         child.Parent = resourcesFolder
  1743.     end
  1744.     tsbResources:Destroy()
  1745. end
  1746.  
  1747. local nestedResources = resourcesFolder:FindFirstChild("resources")
  1748. if nestedResources then
  1749.     for _, child in ipairs(nestedResources:GetChildren()) do
  1750.         child.Parent = resourcesFolder
  1751.     end
  1752.     nestedResources:Destroy()
  1753. end
  1754.  
  1755. local src1 = cloneref(game:GetService("ReplicatedStorage")).Resources.DownSlam.Wind2.Part.Attachment
  1756. local src2 = cloneref(game:GetService("ReplicatedStorage")).Resources.Cannon.Maybe.Maybe.lines
  1757.  
  1758. local fx1
  1759. local fx2
  1760. local made = false
  1761. local fxRunning = false
  1762. local fxEnabled = false
  1763. local fxConnection
  1764.  
  1765. local function make()
  1766.     if made then return end
  1767.     made = true
  1768.  
  1769.     fx1 = src1:Clone()
  1770.     fx1.Parent = HRP
  1771.  
  1772.     fx2 = src2:Clone()
  1773.     fx2.Parent = HRP
  1774.  
  1775.     local fxCol = ColorSequence.new(Color3.fromRGB(255,59,0))
  1776.  
  1777.     for _, x in pairs(fx1:GetChildren()) do
  1778.         if x:IsA("ParticleEmitter") then
  1779.             x.Enabled = false
  1780.         end
  1781.     end
  1782.  
  1783.     for _, x in pairs(fx2:GetChildren()) do
  1784.         if x:IsA("ParticleEmitter") then
  1785.             x.Enabled = false
  1786.             x.Color = fxCol
  1787.         end
  1788.     end
  1789. end
  1790.  
  1791. local function startFX()
  1792.     if not made then make() end
  1793.  
  1794.     for _, x in pairs(fx1:GetChildren()) do
  1795.         if x:IsA("ParticleEmitter") then
  1796.             x.Enabled = true
  1797.             x:Emit(15)
  1798.         end
  1799.     end
  1800.  
  1801.     for _, x in pairs(fx2:GetChildren()) do
  1802.         if x:IsA("ParticleEmitter") then
  1803.             x.Enabled = true
  1804.             x:Emit(15)
  1805.         end
  1806.     end
  1807. end
  1808.  
  1809. local function stopFX()
  1810.     if not made then return end
  1811.  
  1812.     for _, x in pairs(fx1:GetChildren()) do
  1813.         if x:IsA("ParticleEmitter") then
  1814.             x.Enabled = false
  1815.         end
  1816.     end
  1817.  
  1818.     for _, x in pairs(fx2:GetChildren()) do
  1819.         if x:IsA("ParticleEmitter") then
  1820.             x.Enabled = false
  1821.         end
  1822.     end
  1823. end
  1824.  
  1825. local function onMoveChanged()
  1826.     if not fxEnabled then return end
  1827.     local m = h.MoveDirection.Magnitude > 0
  1828.  
  1829.     if m and not fxRunning then
  1830.         fxRunning = true
  1831.         startFX()
  1832.     elseif not m and fxRunning then
  1833.         fxRunning = false
  1834.         stopFX()
  1835.     end
  1836. end
  1837.  
  1838. local function enableRunEvents()
  1839.     if fxEnabled then return end
  1840.     fxEnabled = true
  1841.     if not fxConnection then
  1842.         fxConnection = h:GetPropertyChangedSignal("MoveDirection"):Connect(onMoveChanged)
  1843.     end
  1844. end
  1845.  
  1846. local function disableRunEvents()
  1847.     if not fxEnabled then return end
  1848.     fxEnabled = false
  1849.     if fxConnection then
  1850.         fxConnection:Disconnect()
  1851.         fxConnection = nil
  1852.     end
  1853.     fxRunning = false
  1854.     stopFX()
  1855. end
  1856.  
  1857.  
  1858.  
  1859.  
  1860. local idleParticleConnection
  1861. local lastRunningState = false
  1862.  
  1863.  
  1864. idleParticleConnection = h.Running:Connect(function(speed)
  1865.  
  1866.     if h.WalkSpeed > 100 then
  1867.         if speed > 0 then
  1868.  
  1869.             DisableLightningGlobal()
  1870.             lastRunningState = true
  1871.         else
  1872.  
  1873.             EnableLightningGlobal()
  1874.             lastRunningState = false
  1875.         end
  1876.     else
  1877.  
  1878.         DisableLightningGlobal()
  1879.     end
  1880. end)
  1881.  
  1882.  
  1883.  
  1884.  
  1885. local TextChatService = cloneref(game:GetService("TextChatService"))
  1886. local textChannel
  1887.  
  1888.  
  1889. local function InitializeTextChannel()
  1890.     if textChannel then return true end
  1891.    
  1892.     local success = pcall(function()
  1893.         textChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
  1894.     end)
  1895.    
  1896.     if success and textChannel then
  1897.         print("📡 TextChannel initialized!")
  1898.         return true
  1899.     else
  1900.         warn("⚠️ Failed to initialize TextChannel")
  1901.         return false
  1902.     end
  1903. end
  1904.  
  1905. local function BroadcastState(stateType, value)
  1906.  
  1907.     if not textChannel and not InitializeTextChannel() then return end
  1908.    
  1909.     local message = ""
  1910.    
  1911.     if stateType == "speed" and value then
  1912.         message = ".1"
  1913.     elseif stateType == "phase" and value then
  1914.         message = ".2"
  1915.     elseif stateType == "stop" then
  1916.         message = ".3"
  1917.     else
  1918.         return
  1919.     end
  1920.    
  1921.  
  1922.     pcall(function()
  1923.         print(message) --textChannel:SendAsync(message)
  1924.     end)
  1925. end
  1926.  
  1927. local syncConnection
  1928.  
  1929. local function SetupSyncListener()
  1930.  
  1931.     if not textChannel and not InitializeTextChannel() then return end
  1932.    
  1933.     print("👂 Listening for speedster commands (.1, .2, .3)...")
  1934.    
  1935.     syncConnection = textChannel.MessageReceived:Connect(function(textChatMessage)
  1936.  
  1937.         local msgText = textChatMessage.Text
  1938.         local textSource = textChatMessage.TextSource
  1939.        
  1940.         if not textSource then return end
  1941.        
  1942.         local senderUserId = textSource.UserId
  1943.         if senderUserId == player.UserId then return end
  1944.        
  1945.  
  1946.         local senderPlayer = Players:GetPlayerByUserId(senderUserId)
  1947.         if not senderPlayer or not IsAllowed(senderPlayer) then
  1948.             return
  1949.         end
  1950.        
  1951.  
  1952.         local senderData = PlayerData[senderUserId]
  1953.         if not senderData then return end
  1954.        
  1955.  
  1956.         if msgText == ".1" then
  1957.  
  1958.             print("🔄 " .. textSource.Name .. " enabled speed!")
  1959.            
  1960.             -- Call the player's EnableAllCoolStuff function to set up and enable their trails on our client
  1961.             if senderData.EnableAllCoolStuff then
  1962.                 pcall(function()
  1963.                     senderData.EnableAllCoolStuff()
  1964.                 end)
  1965.             end
  1966.            
  1967.             if senderData.ParticleRef and senderData.ParticleRef.Parent then
  1968.                 senderData.ParticleRef.Enabled = true
  1969.             end
  1970.            
  1971.         elseif msgText == ".2" then
  1972.  
  1973.             print("🔄 " .. textSource.Name .. " enabled phase!")
  1974.  
  1975.            
  1976.         elseif msgText == ".3" then
  1977.  
  1978.             print("🔄 " .. textSource.Name .. " stopped all effects!")
  1979.            
  1980.             -- Call the player's DisableCoolStuff function to disable their trails on our client
  1981.             if senderData.DisableCoolStuff then
  1982.                 pcall(function()
  1983.                     senderData.DisableCoolStuff()
  1984.                 end)
  1985.             end
  1986.            
  1987.             if senderData.ParticleRef and senderData.ParticleRef.Parent then
  1988.                 senderData.ParticleRef.Enabled = false
  1989.             end
  1990.         end
  1991.     end)
  1992. end
  1993.  
  1994.  
  1995. if isLocalPlayer then
  1996.     task.wait(2)
  1997.     SetupSyncListener()
  1998. end
  1999.  
  2000. if isLocalPlayer then
  2001.     local radius=10
  2002. local speed=400
  2003. local angle=0
  2004. local ws0=25
  2005. h.WalkSpeed=ws0
  2006. local spd=false
  2007.  
  2008. local pg=player:WaitForChild("PlayerGui")
  2009. local gui=Instance.new("ScreenGui")
  2010. gui.Parent=pg
  2011. gui.Name="PhaseGui"
  2012. gui.ResetOnSpawn=false
  2013. gui.IgnoreGuiInset=true
  2014.  
  2015. local baseColor=Color3.fromRGB(40,40,50)
  2016.  
  2017. local function cb(parent,pos,size,text,tcol)
  2018.     local f=Instance.new("Frame")
  2019.     f.Parent=parent
  2020.     f.Size=size
  2021.     f.Position=pos
  2022.     f.BackgroundColor3=baseColor
  2023.     f.BackgroundTransparency=0.3
  2024.     Instance.new("UICorner",f).CornerRadius=UDim.new(0,8)
  2025.     local s=Instance.new("UIStroke",f)
  2026.     s.Color=Color3.fromRGB(80,80,90)
  2027.     s.Thickness=2
  2028.     local b=Instance.new("TextButton")
  2029.     b.Parent=f
  2030.     b.Size=UDim2.new(1,0,1,0)
  2031.     b.BackgroundTransparency=1
  2032.     b.Text=text
  2033.     b.TextColor3=tcol
  2034.     b.TextScaled=true
  2035.     b.Font=Enum.Font.GothamBold
  2036.     b.AutoButtonColor=false
  2037.     return f,b
  2038. end
  2039.  
  2040. local sh,sb=cb(gui,UDim2.new(1,-160,0,10),UDim2.new(0,150,0,40),"STOP",Color3.fromRGB(255,100,100))
  2041. local mir,mirb=cb(gui,UDim2.new(0,10,0,10),UDim2.new(0,150,0,40),"Angular Mirage",Color3.fromRGB(100,200,255))
  2042. local ph,phb=cb(gui,UDim2.new(0,10,0,60),UDim2.new(0,150,0,40),"Phase",Color3.fromRGB(150,255,150))
  2043. local sp,spb=cb(gui,UDim2.new(0,10,0,110),UDim2.new(0,150,0,40),"Enable Speed",Color3.fromRGB(255,255,100))
  2044.  
  2045. local ang=false
  2046. local phs=false
  2047. local nc=false
  2048. local ocf=HRP.CFrame
  2049. local occ=cam.CameraType
  2050.  
  2051. local function circle(dt)
  2052.     if not isLocalPlayer then return end
  2053.     if not ang then return end
  2054.  
  2055. V88()
  2056.  
  2057.     angle+=dt*speed/radius
  2058.     local o=Vector3.new(math.cos(angle)*radius,0,math.sin(angle)*radius)
  2059.     local t=ocf.Position+o
  2060.     local d=t-HRP.Position
  2061.     HRP.AssemblyLinearVelocity=d/dt
  2062.     if d.Magnitude>0.1 then
  2063.         HRP.CFrame=CFrame.new(HRP.Position,HRP.Position+Vector3.new(d.X,0,d.Z))
  2064.     end
  2065. end
  2066.  
  2067. local function sn(state)
  2068.     nc=state
  2069.     for _,v in next,CharacterRef:GetDescendants() do
  2070.         if v:IsA("BasePart") then v.CanCollide=not state end
  2071.     end
  2072. end
  2073.  
  2074. mirb.MouseButton1Click:Connect(function()
  2075.  
  2076. StopVibrate()
  2077.    
  2078.  
  2079.     StopAllPlayerSounds()
  2080.  
  2081.     DisableDarkAura()
  2082.     ang=not ang
  2083.     playerData.ang = ang
  2084.     if ang then
  2085.  
  2086. V88()
  2087.  
  2088.         ocf=HRP.CFrame
  2089.         occ=cam.CameraType
  2090.         cam.CameraType=Enum.CameraType.Scriptable
  2091.         sn(true)
  2092.     else
  2093.  
  2094. V87()
  2095.  
  2096.         HRP.AssemblyLinearVelocity=Vector3.new()
  2097.         cam.CameraType=occ
  2098.         sn(false)
  2099.     end
  2100. end)
  2101.  
  2102. phb.MouseButton1Click:Connect(function()
  2103.     phs=not phs
  2104.     playerData.phs = phs
  2105.     if phs then
  2106.         sn(true)
  2107.  
  2108. StartVibrate()
  2109.  
  2110.         EnableDarkAura()
  2111.        
  2112.  
  2113.         BroadcastState("phase", true)
  2114.     else
  2115.  
  2116. StopVibrate()
  2117.    
  2118.  
  2119.     StopAllPlayerSounds()
  2120.  
  2121.         sn(false)
  2122.         DisableDarkAura()
  2123.        
  2124.  
  2125.         BroadcastState("phase", false)
  2126.     end
  2127. end)
  2128.  
  2129. local a
  2130. local x
  2131. local t = false
  2132. local b = "rbxassetid://897"
  2133.  
  2134. local heartbeatConnection
  2135. local runningConnection
  2136.  
  2137.  
  2138. local function storeConnection(conn)
  2139.     table.insert(playerData.connections, conn)
  2140.     return conn
  2141. end
  2142.  
  2143. spb.MouseButton1Click:Connect(function()
  2144.     spd = not spd
  2145.     playerData.spd = spd
  2146.  
  2147. V89()
  2148.  
  2149. V87()
  2150.  
  2151.     if spd then
  2152.         if heartbeatConnection then heartbeatConnection:Disconnect() end
  2153.         heartbeatConnection = RunService.Heartbeat:Connect(function()
  2154.             if h and h.Parent then
  2155.                 h.WalkSpeed = 375
  2156.             end
  2157.         end)
  2158.  
  2159. EnableLightningGlobal()
  2160.  
  2161. EnableAllCoolStuff()
  2162.  
  2163.  
  2164.         BroadcastState("speed", true)
  2165.  
  2166.  
  2167.  
  2168.         if runningConnection then
  2169.             runningConnection:Disconnect()
  2170.             runningConnection = nil
  2171.         end
  2172.  
  2173.         runningConnection = h.Running:Connect(function(s)
  2174.             if not spd then return end
  2175.  
  2176. StopEffect()
  2177.  
  2178.             if s > 0 then
  2179.                 if not t then
  2180.                     t = true
  2181.  
  2182.                     PlayRandomRunStartSound()
  2183.                     CurrentShaker:Shake(ShakePresets.HeavyHit())
  2184.                     if x then x:Destroy() end
  2185.                     task.delay(0.3, function() t = false end)
  2186.                 end
  2187.             else
  2188.  
  2189.                 StartEffect()
  2190.             end
  2191.         end)
  2192.  
  2193.         enableRunEvents()
  2194.         enableAll()
  2195.     else
  2196.  
  2197. DisableLightningGlobal()
  2198.  
  2199. StopEffect()
  2200.  
  2201. DisableCoolStuff()
  2202.  
  2203.         if heartbeatConnection then
  2204.             heartbeatConnection:Disconnect()
  2205.             heartbeatConnection = nil
  2206.         end
  2207.         h.WalkSpeed = ws0
  2208.  
  2209.         if x then x:Destroy() end
  2210.         if a then a:Destroy() end
  2211.  
  2212. V88()
  2213.  
  2214. V90()
  2215.  
  2216.         StopEffect()
  2217.         if runningConnection then
  2218.             runningConnection:Disconnect()
  2219.             runningConnection = nil
  2220.         end
  2221.  
  2222.         disableRunEvents()
  2223.         disableAll()
  2224.     end
  2225. end)
  2226.  
  2227. sb.MouseButton1Click:Connect(function()
  2228.     StopEffect()
  2229.     if heartbeatConnection then
  2230.         heartbeatConnection:Disconnect()
  2231.         heartbeatConnection = nil
  2232.     end
  2233.     if runningConnection then
  2234.         runningConnection:Disconnect()
  2235.         runningConnection = nil
  2236.     end
  2237.     disableRunEvents()
  2238.     disableAll()
  2239.  
  2240.     if HRP and HRP.Parent then
  2241.         HRP.AssemblyLinearVelocity = Vector3.new()
  2242.     end
  2243.     if h and h.Parent then
  2244.         h.WalkSpeed = ws0
  2245.     end
  2246.    
  2247.  
  2248.     playerData.ang = false
  2249.     playerData.phs = false
  2250.     playerData.spd = false
  2251.     ang = false
  2252.     phs = false
  2253.     spd = false
  2254.  
  2255.     if x then pcall(function() x:Destroy() end) end
  2256.     if a then pcall(function() a:Destroy() end) end
  2257.  
  2258.     DisableLightningGlobal()
  2259.     DisableCoolStuff()
  2260.    
  2261.  
  2262.     BroadcastState("stop")
  2263.     V88()
  2264.     V90()
  2265.     StopVibrate()
  2266.    
  2267.  
  2268.     StopAllPlayerSounds()
  2269.     DisableDarkAura()
  2270.  
  2271.     if cam then
  2272.         cam.CameraType = Enum.CameraType.Custom
  2273.         if cam.FieldOfView ~= 70 then
  2274.             local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
  2275.             local goal = { FieldOfView = 70 }
  2276.             ts:Create(cam, info, goal):Play()
  2277.         end
  2278.     end
  2279. end)
  2280.  
  2281. local function gnp()
  2282.     local np=nil
  2283.     local md=9999
  2284.     for _,pl in next,cloneref(game:GetService("Players")):GetPlayers() do
  2285.         if pl~=player then
  2286.             local cc=pl.Character
  2287.             local hr=cc and cc:FindFirstChild("HumanoidRootPart")
  2288.             local d=hr and (HRP.Position-hr.Position).Magnitude
  2289.             if d and d<md then md=d np=hr end
  2290.         end
  2291.     end
  2292.     return np
  2293. end
  2294.  
  2295. local mainHeartbeat = RunService.Heartbeat:Connect(function(dt)
  2296.     if not CharacterRef or not CharacterRef.Parent then return end
  2297.     if nc then
  2298.         for _,v in next,CharacterRef:GetDescendants() do
  2299.             if v:IsA("BasePart") then
  2300.                 pcall(function() v.CanCollide=false end)
  2301.             end
  2302.         end
  2303.     end
  2304.     circle(dt)
  2305. end)
  2306. table.insert(playerData.connections, mainHeartbeat)
  2307.  
  2308. local targetAnimId = "rbxassetid://108670084190135"
  2309.  
  2310. local animPlayedConn = h.AnimationPlayed:Connect(function(animTrack)
  2311.     if animTrack.Animation and animTrack.Animation.AnimationId == targetAnimId then
  2312.         animTrack:Stop()
  2313.     end
  2314. end)
  2315. table.insert(playerData.connections, animPlayedConn)
  2316. V88()
  2317.  
  2318. V90()
  2319.  
  2320.  
  2321.  
  2322.  
  2323. loadstring(game:HttpGet("https://raw.githubusercontent.com/ChosenSkibidi/VIP-SCRIPTS/refs/heads/main/useless%20notification"))()
  2324.  
  2325. local g=player.PlayerGui.Attention.DialogueFrameAnnouncement
  2326.  
  2327. g.Message.Text="Enjoy the script, and thank you for using our work."
  2328. g:GetChildren()[11].Text="This script was created by Infinite Studios."
  2329.  
  2330. local UserInputService = cloneref(game:GetService("UserInputService"))
  2331.  
  2332. if UserInputService.TouchEnabled == false then
  2333.     gui.Enabled = false
  2334. end
  2335.  
  2336. local function onCharacterAdded(char)
  2337.     local humanoid = char:WaitForChild("Humanoid")
  2338.     humanoid.Died:Connect(function()
  2339.         if gui and gui.Enabled then
  2340.             for _, child in ipairs(gui:GetChildren()) do
  2341.                 if child:IsA("GuiObject") then
  2342.                     local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
  2343.                     local goal = {Position = child.Position + UDim2.new(0,0,-1,0)}
  2344.                     local tween = TweenService:Create(child, tweenInfo, goal)
  2345.                     tween:Play()
  2346.                    
  2347.                     tween.Completed:Connect(function()
  2348.                         task.delay(10, function()
  2349.                             if child then
  2350.                                 child:Destroy()
  2351.                             end
  2352.                         end)
  2353.                     end)
  2354.                 end
  2355.             end
  2356.         end
  2357.     end)
  2358. end
  2359.  
  2360. player.CharacterAdded:Connect(onCharacterAdded)
  2361.  
  2362. if player.Character then
  2363.     onCharacterAdded(player.Character)
  2364. end
  2365.  
  2366. uis.InputBegan:Connect(function(input, gameProcessed)
  2367.     if gameProcessed then return end
  2368.  
  2369.     if input.UserInputType == Enum.UserInputType.Keyboard then
  2370.         local key = input.KeyCode
  2371.         if key == Enum.KeyCode.Q then
  2372.  
  2373.     spd = not spd
  2374.     playerData.spd = spd
  2375.  
  2376. V89()
  2377.  
  2378. V87()
  2379.  
  2380.     if spd then
  2381.         if heartbeatConnection then heartbeatConnection:Disconnect() end
  2382.         heartbeatConnection = RunService.Heartbeat:Connect(function()
  2383.             if h and h.Parent then
  2384.                 h.WalkSpeed = 375
  2385.             end
  2386.         end)
  2387.  
  2388. EnableAllCoolStuff()
  2389.  
  2390. EnableLightningGlobal()
  2391.  
  2392.  
  2393.         BroadcastState("speed", true)
  2394.  
  2395.  
  2396.  
  2397.         if runningConnection then
  2398.             runningConnection:Disconnect()
  2399.             runningConnection = nil
  2400.         end
  2401.  
  2402.         runningConnection = h.Running:Connect(function(s)
  2403.             if not spd then return end
  2404.  
  2405. StopEffect()
  2406.  
  2407.             if s > 0 then
  2408.                 if not t then
  2409.                     t = true
  2410.  
  2411.                     PlayRandomRunStartSound()
  2412.                     CurrentShaker:Shake(ShakePresets.HeavyHit())
  2413.                     if x then x:Destroy() end
  2414.                     task.delay(0.3, function() t = false end)
  2415.                 end
  2416.             else
  2417.  
  2418.                 StartEffect()
  2419.             end
  2420.         end)
  2421.  
  2422.         enableRunEvents()
  2423.  
  2424.         enableAll()
  2425.     else
  2426.  
  2427. StopEffect()
  2428.  
  2429. DisableLightningGlobal()
  2430.  
  2431. DisableCoolStuff()
  2432.  
  2433.         if heartbeatConnection then
  2434.             heartbeatConnection:Disconnect()
  2435.             heartbeatConnection = nil
  2436.         end
  2437.         h.WalkSpeed = ws0
  2438.  
  2439.         if x then x:Destroy() end
  2440.         if a then a:Destroy() end
  2441.  
  2442. V88()
  2443.  
  2444. V90()
  2445.  
  2446.         StopEffect()
  2447.         if runningConnection then
  2448.             runningConnection:Disconnect()
  2449.             runningConnection = nil
  2450.         end
  2451.  
  2452.         disableRunEvents()
  2453.         disableAll()
  2454.     end
  2455.  
  2456.         elseif key == Enum.KeyCode.C then
  2457.  
  2458.     phs=not phs
  2459.     playerData.phs = phs
  2460.     if phs then
  2461.         sn(true)
  2462.  
  2463. StartVibrate()
  2464.  
  2465.         EnableDarkAura()
  2466.        
  2467.  
  2468.         BroadcastState("phase", true)
  2469.     else
  2470.  
  2471. StopVibrate()
  2472.    
  2473.  
  2474.     StopAllPlayerSounds()
  2475.  
  2476.         sn(false)
  2477.         DisableDarkAura()
  2478.        
  2479.  
  2480.         BroadcastState("phase", false)
  2481.     end
  2482.  
  2483.         elseif key == Enum.KeyCode.B then
  2484.  
  2485. StopVibrate()
  2486.    
  2487.  
  2488.     StopAllPlayerSounds()
  2489.  
  2490.     DisableDarkAura()
  2491.     ang=not ang
  2492.     playerData.ang = ang
  2493.     if ang then
  2494.  
  2495. V88()
  2496.  
  2497.         ocf=r.CFrame
  2498.         occ=cam.CameraType
  2499.         cam.CameraType=Enum.CameraType.Scriptable
  2500.         sn(true)
  2501.     else
  2502.  
  2503. V87()
  2504.  
  2505.         HRP.AssemblyLinearVelocity=Vector3.new()
  2506.         cam.CameraType=occ
  2507.         sn(false)
  2508.     end
  2509.  
  2510. elseif key == Enum.KeyCode.X then
  2511.  
  2512.     StopEffect()
  2513.     if heartbeatConnection then
  2514.         heartbeatConnection:Disconnect()
  2515.         heartbeatConnection = nil
  2516.     end
  2517.     if runningConnection then
  2518.         runningConnection:Disconnect()
  2519.         runningConnection = nil
  2520.     end
  2521.     disableRunEvents()
  2522.     disableAll()
  2523.  
  2524.     if HRP and HRP.Parent then
  2525.         HRP.AssemblyLinearVelocity = Vector3.new()
  2526.     end
  2527.     if h and h.Parent then
  2528.         h.WalkSpeed = ws0
  2529.     end
  2530.    
  2531.  
  2532.     playerData.ang = false
  2533.     playerData.phs = false
  2534.     playerData.spd = false
  2535.     ang = false
  2536.     phs = false
  2537.     spd = false
  2538.  
  2539.     if x then pcall(function() x:Destroy() end) end
  2540.     if a then pcall(function() a:Destroy() end) end
  2541.  
  2542.     DisableLightningGlobal()
  2543.     DisableCoolStuff()
  2544.    
  2545.  
  2546.     BroadcastState("stop")
  2547.     V88()
  2548.     V90()
  2549.     StopVibrate()
  2550.    
  2551.  
  2552.     StopAllPlayerSounds()
  2553.     DisableDarkAura()
  2554.  
  2555.     if cam then
  2556.         cam.CameraType = Enum.CameraType.Custom
  2557.         if cam.FieldOfView ~= 70 then
  2558.             local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
  2559.             local goal = { FieldOfView = 70 }
  2560.             ts:Create(cam, info, goal):Play()
  2561.         end
  2562.     end
  2563.  
  2564. end
  2565. end
  2566. end)
  2567. end
  2568.  
  2569. local b = {
  2570.  
  2571.     "Head",
  2572.     "Left Arm",
  2573.     "Right Arm",
  2574.     "Left Leg",
  2575.     "Right Leg",
  2576.  
  2577.     "LeftUpperArm",
  2578.     "LeftLowerArm",
  2579.     "LeftHand",
  2580.     "RightUpperArm",
  2581.     "RightLowerArm",
  2582.     "RightHand",
  2583.  
  2584.     "LeftUpperLeg",
  2585.     "LeftLowerLeg",
  2586.     "LeftFoot",
  2587.     "RightUpperLeg",
  2588.     "RightLowerLeg",
  2589.     "RightFoot"
  2590. }
  2591.  
  2592. local ig = lightningAttachment
  2593.  
  2594. local function mk()
  2595. end
  2596.  
  2597. local godCS2 = ColorSequence.new({
  2598.     ColorSequenceKeypoint.new(0, Color3.fromRGB(200,200,200)),
  2599.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))
  2600. })
  2601.  
  2602. local nwaCS2 = ColorSequence.new({
  2603.     ColorSequenceKeypoint.new(0, Color3.fromRGB(210,160,255)),
  2604.     ColorSequenceKeypoint.new(1, Color3.fromRGB(200,100,255))
  2605. })
  2606.  
  2607. local zoomCS2 = ColorSequence.new({
  2608.     ColorSequenceKeypoint.new(0, Color3.fromRGB(100,168,255)),
  2609.     ColorSequenceKeypoint.new(1, Color3.fromRGB(26,144,255))
  2610. })
  2611.  
  2612. local kidCS = ColorSequence.new({
  2613.     ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,150)),
  2614.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))
  2615. })
  2616.  
  2617. local rfCS2 = ColorSequence.new({
  2618.     ColorSequenceKeypoint.new(0, Color3.fromRGB(255,84,84)),
  2619.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))
  2620. })
  2621.  
  2622. local regularCS2 = ColorSequence.new({
  2623.     ColorSequenceKeypoint.new(0, Color3.fromRGB(255,59,33)),
  2624.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255,59,33))
  2625. })
  2626.  
  2627.  
  2628. local colorUpdateRunning = true
  2629. local colorUpdateThread = task.spawn(function()
  2630.     while colorUpdateRunning and player and player.Parent and CharacterRef and CharacterRef.Parent do
  2631.         local success, err = pcall(function()
  2632.             local cs = nil
  2633.             local spot = nil
  2634.  
  2635.             if speedsterType == "RF" then
  2636.                 cs = rfCS2
  2637.                 spot = Color3.fromRGB(255,0,0)
  2638.             elseif speedsterType == "KidFlash" then
  2639.                 cs = kidCS
  2640.                 spot = Color3.fromRGB(255,255,0)
  2641.             elseif speedsterType == "Zoom" then
  2642.                 cs = zoomCS2
  2643.                 spot = Color3.fromRGB(26,144,255)
  2644.             elseif speedsterType == "GodOfSpeed" then
  2645.                 cs = godCS2
  2646.                 spot = Color3.fromRGB(255,220,0)
  2647.             elseif speedsterType == "NWA" then
  2648.                 cs = nwaCS2
  2649.                 spot = Color3.fromRGB(200,100,255)
  2650.             elseif speedsterType == "Regular" then
  2651.                 cs = regularCS2
  2652.                 spot = Color3.fromRGB(255,59,33)
  2653.             else
  2654.  
  2655.                 cs = regularCS2
  2656.                 spot = Color3.fromRGB(255,59,33)
  2657.             end
  2658.  
  2659.             if cs and CharacterRef and CharacterRef.Parent then
  2660.                 mk()
  2661.  
  2662.                 for _,n in pairs(b) do
  2663.                     local pr = CharacterRef:FindFirstChild(n)
  2664.                     if pr and pr.Parent then
  2665.                         for _,t in pairs(pr:GetChildren()) do
  2666.                             if t:IsA("Trail") and t.Parent then
  2667.                                 t.Color = cs
  2668.                             end
  2669.                         end
  2670.                     end
  2671.                 end
  2672.  
  2673.                 for _,v in pairs(CharacterRef:GetDescendants()) do
  2674.                     if v:IsA("ParticleEmitter") and v.Parent then
  2675.                         local cur = v
  2676.                         local g = false
  2677.                         while cur do
  2678.                             if cur == ig then
  2679.                                 g = true
  2680.                                 break
  2681.                             end
  2682.                             cur = cur.Parent
  2683.                         end
  2684.  
  2685.                         if v.Texture == "rbxassetid://9731596776" then
  2686.                             g = true
  2687.                         end
  2688.                         if v.Texture == "rbxassetid://10583327833" then
  2689.                             v.Color = cs
  2690.                             g = true
  2691.                         end
  2692.  
  2693.                         if not g then
  2694.                             v.Color = cs
  2695.                         end
  2696.                     elseif v:IsA("SpotLight") and v.Parent then
  2697.                         v.Color = spot
  2698.                         v.Enabled = true
  2699.                     end
  2700.                 end
  2701.             end
  2702.         end)
  2703.        
  2704.         if not success then
  2705.             warn("Color update error for " .. player.Name .. ": " .. tostring(err))
  2706.         end
  2707.  
  2708.         task.wait(0.1)
  2709.     end
  2710.     colorUpdateRunning = false
  2711. end)
  2712.  
  2713.  
  2714. playerData.stopColorUpdate = function()
  2715.     colorUpdateRunning = false
  2716. end
  2717.  
  2718.  
  2719.  
  2720.  
  2721. if isLocalPlayer then
  2722.     local renderConn1 = cloneref(game:GetService("RunService")).RenderStepped:Connect(function()
  2723.         if not CharacterRef or not CharacterRef.Parent or not player or not player.Parent then return end
  2724.         local humanoid = CharacterRef:FindFirstChildOfClass("Humanoid")
  2725.         if not humanoid then return end
  2726.        
  2727.         local d = humanoid.MoveDirection
  2728.         if d.Magnitude > 0 and HRP and HRP.Parent then
  2729.             HRP.CFrame = CFrame.new(HRP.Position, HRP.Position + d)
  2730.         end
  2731.     end)
  2732.     table.insert(playerData.connections, renderConn1)
  2733.  
  2734.     local snap=18
  2735.  
  2736.     local renderConn2 = RunService.RenderStepped:Connect(function(dt)
  2737.         if not CharacterRef or not CharacterRef.Parent or not HRP or not HRP.Parent or not h or not h.Parent then return end
  2738.         if h.FloorMaterial==Enum.Material.Air then return end
  2739.  
  2740.         local md=h.MoveDirection
  2741.         if md.Magnitude==0 then return end
  2742.  
  2743.         md=Vector3.new(md.X,0,md.Z).Unit
  2744.  
  2745.         local v=HRP.AssemblyLinearVelocity
  2746.         local y=v.Y
  2747.  
  2748.         local sp=v.Magnitude
  2749.         if sp<1 then return end
  2750.  
  2751.         local target=md*sp
  2752.         HRP.AssemblyLinearVelocity=v:Lerp(Vector3.new(target.X,y,target.Z),math.clamp(dt*snap,0,1))
  2753.     end)
  2754.     table.insert(playerData.connections, renderConn2)
  2755. end
  2756.  
  2757.  
  2758. local humanoid = CharacterRef:FindFirstChildOfClass("Humanoid")
  2759. if humanoid then
  2760.  
  2761.     local diedConnection = humanoid.Died:Connect(function()
  2762.         CleanupPlayer(player)
  2763.     end)
  2764.     table.insert(playerData.connections, diedConnection)
  2765. end
  2766.  
  2767.  
  2768. local ancestryConnection = CharacterRef.AncestryChanged:Connect(function(_, parent)
  2769.     if not parent then
  2770.         CleanupPlayer(player)
  2771.     end
  2772. end)
  2773. table.insert(playerData.connections, ancestryConnection)
  2774.  
  2775. end
  2776.  
  2777.  
  2778. local function CheckGameMode()
  2779.     local allowedPlayersInGame = 0
  2780.     for _, player in ipairs(Players:GetPlayers()) do
  2781.         if IsAllowed(player) then
  2782.             allowedPlayersInGame = allowedPlayersInGame + 1
  2783.         end
  2784.     end
  2785.    
  2786.     if allowedPlayersInGame == 1 then
  2787.         print("🎮 SINGLE PLAYER MODE - Running solo!")
  2788.     else
  2789.         print("👥 MULTIPLAYER MODE - " .. allowedPlayersInGame .. " speedsters active!")
  2790.     end
  2791.     return allowedPlayersInGame
  2792. end
  2793.  
  2794.  
  2795. local allowedCount = CheckGameMode()
  2796. for _, player in ipairs(Players:GetPlayers()) do
  2797.     if IsAllowed(player) and player.Character then
  2798.         SetupSpeedster(player)
  2799.     end
  2800. end
  2801.  
  2802.  
  2803. Players.PlayerAdded:Connect(function(player)
  2804.     if IsAllowed(player) then
  2805.         CheckGameMode()
  2806.         player.CharacterAdded:Connect(function()
  2807.             SetupSpeedster(player)
  2808.         end)
  2809.     end
  2810. end)
  2811.  
  2812. for _, player in ipairs(Players:GetPlayers()) do
  2813.     if IsAllowed(player) then
  2814.         player.CharacterAdded:Connect(function()
  2815.             SetupSpeedster(player)
  2816.         end)
  2817.     end
  2818. end
  2819.  
  2820.  
  2821. Players.PlayerRemoving:Connect(function(player)
  2822.     CleanupPlayer(player)
  2823.     CheckGameMode()
  2824. end)
  2825.  
  2826.  
  2827. print("⚡ SendAsync() SYNC SYSTEM LOADED!")
  2828. print("📡 Commands: .1 = Speed | .2 = Phase | .3 = Stop")
  2829. print("✅ Multiplayer sync: ACTIVE")
  2830. local TweenService = cloneref(game:GetService("TweenService"))
  2831. local RunService = cloneref(game:GetService("RunService"))
  2832. local Debris = cloneref(game:GetService("Debris"))
  2833. local Players = cloneref(game:GetService("Players"))
  2834.  
  2835. local LocalPlayer = Players.LocalPlayer
  2836. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  2837.  
  2838. local CurrentCamera = workspace.CurrentCamera
  2839.  
  2840. local Blur = CurrentCamera:FindFirstChild("Blur")
  2841. if not Blur then
  2842.     Blur = Instance.new("BlurEffect", CurrentCamera)
  2843. end
  2844. Blur.Size = 0
  2845.  
  2846. -- RunBlur: tiny blur that fires at max when running starts, then tweens to 0
  2847. local RunBlur = CurrentCamera:FindFirstChild("RunBlur")
  2848. if not RunBlur then
  2849.     RunBlur = Instance.new("BlurEffect", CurrentCamera)
  2850.     RunBlur.Name = "RunBlur"
  2851. end
  2852. RunBlur.Size = 0
  2853. local runBlurTween = nil
  2854. local wasMoving = false
  2855.  
  2856. local isR15 = Character:FindFirstChild("UpperTorso") ~= nil
  2857. local R15 = {"Head","LeftUpperArm","LeftLowerArm","LeftHand","RightUpperArm","RightLowerArm","RightHand","LeftUpperLeg","LeftLowerLeg","LeftFoot","RightUpperLeg","RightLowerLeg","RightFoot"}
  2858. local R6 = {"Head","Left Arm","Right Arm","Left Leg","Right Leg"}
  2859.  
  2860. local bodyParts = {}
  2861. for _, n in ipairs(isR15 and R15 or R6) do
  2862.     local p = Character:FindFirstChild(n)
  2863.     if p and p:IsA("BasePart") then
  2864.         bodyParts[#bodyParts + 1] = p
  2865.     end
  2866. end
  2867.  
  2868. for _, part in ipairs(bodyParts) do
  2869.     do
  2870.         local e = Instance.new("ParticleEmitter")
  2871.         e.Brightness = 7
  2872.         e.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  2873.         e.LightEmission = 0.5
  2874.         e.LightInfluence = 1
  2875.         e.Orientation = Enum.ParticleOrientation.VelocityParallel
  2876.         e.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)})
  2877.         e.Squash = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2878.         e.Texture = "rbxassetid://4770542473"
  2879.         e.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.91299998760223389,0),NumberSequenceKeypoint.new(1,1,0)})
  2880.         e.ZOffset = 0
  2881.         e.EmissionDirection = Enum.NormalId.Top
  2882.         e.Enabled = false
  2883.         e.Lifetime = NumberRange.new(0.25,0.5)
  2884.         e.Rate = 250
  2885.         e.RotSpeed = NumberRange.new(-50,50)
  2886.         e.Rotation = NumberRange.new(-180,180)
  2887.         e.Speed = NumberRange.new(50,200)
  2888.         e.SpreadAngle = Vector2.new(0,500)
  2889.         e.TimeScale = 1
  2890.         e.Acceleration = Vector3.new(0,0,500)
  2891.         e.Drag = 5
  2892.         e.VelocityInheritance = 0
  2893.         e.WindAffectsDrag = false
  2894.         e.Shape = Enum.ParticleEmitterShape.Box
  2895.         e.ShapeInOut = Enum.ParticleEmitterShapeInOut.Outward
  2896.         e.ShapePartial = 1
  2897.         e.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  2898.         e.FlipbookFramerate = NumberRange.new(1,1)
  2899.         e.FlipbookLayout = Enum.ParticleFlipbookLayout.None
  2900.         e.FlipbookMode = Enum.ParticleFlipbookMode.Loop
  2901.         e.FlipbookStartRandom = false
  2902.         e.LockedToPart = true
  2903.         e.Name = "Wind1"
  2904.         e:Emit(15)
  2905.         e.Parent = part
  2906.     end
  2907.     do
  2908.         local e = Instance.new("ParticleEmitter")
  2909.         e.Brightness = 7
  2910.         e.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  2911.         e.LightEmission = 0.5
  2912.         e.LightInfluence = 1
  2913.         e.Orientation = Enum.ParticleOrientation.VelocityParallel
  2914.         e.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,3,1.8124997615814209)})
  2915.         e.Squash = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,3,0)})
  2916.         e.Texture = "rbxassetid://4770542473"
  2917.         e.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.85000002384185791,0),NumberSequenceKeypoint.new(1,1,0)})
  2918.         e.ZOffset = 0
  2919.         e.EmissionDirection = Enum.NormalId.Top
  2920.         e.Enabled = false
  2921.         e.Lifetime = NumberRange.new(0.25,0.5)
  2922.         e.Rate = 250
  2923.         e.RotSpeed = NumberRange.new(0,0)
  2924.         e.Rotation = NumberRange.new(-90,-90)
  2925.         e.Speed = NumberRange.new(50,200)
  2926.         e.SpreadAngle = Vector2.new(0,500)
  2927.         e.TimeScale = 1
  2928.         e.Acceleration = Vector3.new(0,0,500)
  2929.         e.Drag = 5
  2930.         e.VelocityInheritance = 0
  2931.         e.WindAffectsDrag = false
  2932.         e.Shape = Enum.ParticleEmitterShape.Box
  2933.         e.ShapeInOut = Enum.ParticleEmitterShapeInOut.Outward
  2934.         e.ShapePartial = 1
  2935.         e.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  2936.         e.FlipbookFramerate = NumberRange.new(1,1)
  2937.         e.FlipbookLayout = Enum.ParticleFlipbookLayout.None
  2938.         e.FlipbookMode = Enum.ParticleFlipbookMode.Loop
  2939.         e.FlipbookStartRandom = false
  2940.         e.LockedToPart = true
  2941.         e.Name = "Wind2"
  2942.         e:Emit(15)
  2943.         e.Parent = part
  2944.     end
  2945.     do
  2946.         local e = Instance.new("ParticleEmitter")
  2947.         e.Brightness = 7
  2948.         e.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  2949.         e.LightEmission = 0.5
  2950.         e.LightInfluence = 1
  2951.         e.Orientation = Enum.ParticleOrientation.VelocityParallel
  2952.         e.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)})
  2953.         e.Squash = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2954.         e.Texture = "rbxassetid://4770542473"
  2955.         e.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.81300002336502075,0),NumberSequenceKeypoint.new(1,1,0)})
  2956.         e.ZOffset = 0
  2957.         e.EmissionDirection = Enum.NormalId.Back
  2958.         e.Enabled = false
  2959.         e.Lifetime = NumberRange.new(0.5,1)
  2960.         e.Rate = 150
  2961.         e.RotSpeed = NumberRange.new(-50,50)
  2962.         e.Rotation = NumberRange.new(-180,180)
  2963.         e.Speed = NumberRange.new(30,100)
  2964.         e.SpreadAngle = Vector2.new(50,50)
  2965.         e.TimeScale = 1
  2966.         e.Acceleration = Vector3.new(0,0,100)
  2967.         e.Drag = 0
  2968.         e.VelocityInheritance = 0
  2969.         e.WindAffectsDrag = false
  2970.         e.Shape = Enum.ParticleEmitterShape.Box
  2971.         e.ShapeInOut = Enum.ParticleEmitterShapeInOut.Outward
  2972.         e.ShapePartial = 1
  2973.         e.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  2974.         e.FlipbookFramerate = NumberRange.new(1,1)
  2975.         e.FlipbookLayout = Enum.ParticleFlipbookLayout.None
  2976.         e.FlipbookMode = Enum.ParticleFlipbookMode.Loop
  2977.         e.FlipbookStartRandom = false
  2978.         e.LockedToPart = true
  2979.         e.Name = "Wind3"
  2980.         e:Emit(15)
  2981.         e.Parent = part
  2982.     end
  2983. end
  2984.  
  2985. local wndPart = Instance.new("Part")
  2986. wndPart.Transparency = 1
  2987. wndPart.Anchored = true
  2988. wndPart.CanCollide = false
  2989. wndPart.Massless = true
  2990. wndPart.Size = Vector3.new(1,1,1)
  2991. wndPart.Name = "wnd"
  2992. wndPart.Parent = workspace
  2993.  
  2994. local wndAttachment = Instance.new("Attachment", wndPart)
  2995. wndAttachment.Name = "Attachment"
  2996.  
  2997. local function makeWind(name, emissionDir, lifetimeMin, lifetimeMax, rate, rotSpeedMin, rotSpeedMax, rotMin, rotMax, speedMin, speedMax, spreadAngle, acceleration, drag, sizeSeq, squashSeq, transparencySeq)
  2998.     local e = Instance.new("ParticleEmitter")
  2999.     e.Brightness = 7
  3000.     e.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,1,1)),ColorSequenceKeypoint.new(1,Color3.new(1,1,1))})
  3001.     e.LightEmission = 0.5
  3002.     e.LightInfluence = 1
  3003.     e.Orientation = Enum.ParticleOrientation.VelocityParallel
  3004.     e.Size = sizeSeq
  3005.     e.Squash = squashSeq
  3006.     e.Texture = "rbxassetid://4770542473"
  3007.     e.Transparency = transparencySeq
  3008.     e.ZOffset = 0
  3009.     e.EmissionDirection = emissionDir
  3010.     e.Enabled = false
  3011.     e.Lifetime = NumberRange.new(lifetimeMin, lifetimeMax)
  3012.     e.Rate = rate
  3013.     e.RotSpeed = NumberRange.new(rotSpeedMin, rotSpeedMax)
  3014.     e.Rotation = NumberRange.new(rotMin, rotMax)
  3015.     e.Speed = NumberRange.new(speedMin, speedMax)
  3016.     e.SpreadAngle = spreadAngle
  3017.     e.TimeScale = 1
  3018.     e.Acceleration = acceleration
  3019.     e.Drag = drag
  3020.     e.VelocityInheritance = 0
  3021.     e.WindAffectsDrag = false
  3022.     e.Shape = Enum.ParticleEmitterShape.Box
  3023.     e.ShapeInOut = Enum.ParticleEmitterShapeInOut.Outward
  3024.     e.ShapePartial = 1
  3025.     e.ShapeStyle = Enum.ParticleEmitterShapeStyle.Volume
  3026.     e.FlipbookFramerate = NumberRange.new(1,1)
  3027.     e.FlipbookLayout = Enum.ParticleFlipbookLayout.None
  3028.     e.FlipbookMode = Enum.ParticleFlipbookMode.Loop
  3029.     e.FlipbookStartRandom = false
  3030.     e.LockedToPart = true
  3031.     e.Name = name
  3032.     e.Parent = wndAttachment
  3033. end
  3034.  
  3035. makeWind(
  3036.     "Wind1", Enum.NormalId.Top, 0.25, 0.5, 250, -50, 50, -180, 180, 50, 200,
  3037.     Vector2.new(0,500), Vector3.new(0,0,500), 5,
  3038.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)}),
  3039.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}),
  3040.     NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.91299998760223389,0),NumberSequenceKeypoint.new(1,1,0)})
  3041. )
  3042.  
  3043. makeWind(
  3044.     "Wind2", Enum.NormalId.Top, 0.25, 0.5, 250, 0, 0, -90, -90, 50, 200,
  3045.     Vector2.new(0,500), Vector3.new(0,0,500), 5,
  3046.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,3,1.8124997615814209)}),
  3047.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,3,0)}),
  3048.     NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.85000002384185791,0),NumberSequenceKeypoint.new(1,1,0)})
  3049. )
  3050.  
  3051. makeWind(
  3052.     "Wind3", Enum.NormalId.Back, 0.5, 1, 150, -50, 50, -180, 180, 30, 100,
  3053.     Vector2.new(50,50), Vector3.new(0,0,100), 0,
  3054.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)}),
  3055.     NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}),
  3056.     NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.20000000298023224,0.81300002336502075,0),NumberSequenceKeypoint.new(1,1,0)})
  3057. )
  3058.  
  3059. local Part_upvr = Instance.new("Part", Character)
  3060. Part_upvr.Transparency = 1
  3061. Part_upvr.Anchored = true
  3062. Part_upvr.CanCollide = false
  3063. Part_upvr.Massless = true
  3064. Part_upvr.Size = Vector3.new()
  3065.  
  3066. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  3067. local Humanoid = Character:WaitForChild("Humanoid")
  3068.  
  3069. local tick = 0
  3070.  
  3071. RunService.RenderStepped:Connect(function()
  3072.     local Magnitude = HumanoidRootPart.Velocity.Magnitude
  3073.  
  3074.     if 0 < Magnitude then
  3075.         Part_upvr.CFrame = CFrame.new(CurrentCamera.CFrame.Position, CurrentCamera.CFrame.Position + HumanoidRootPart.Velocity * 5)
  3076.     else
  3077.         Part_upvr.Position = CurrentCamera.CFrame.Position
  3078.     end
  3079.  
  3080.     tick += 1
  3081.  
  3082.     Blur.Size = math.clamp(Magnitude / 70, 0, 9)
  3083.  
  3084.     -- RunBlur: triggers at max when player starts moving, fades out over 0.3s
  3085.     local isMovingNow = Magnitude > 8
  3086.     if isMovingNow and not wasMoving then
  3087.         if runBlurTween then runBlurTween:Cancel() end
  3088.         RunBlur.Size = 20
  3089.         runBlurTween = TweenService:Create(
  3090.             RunBlur,
  3091.             TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  3092.             {Size = 0}
  3093.         )
  3094.         runBlurTween:Play()
  3095.     elseif not isMovingNow then
  3096.         if runBlurTween then runBlurTween:Cancel() end
  3097.         RunBlur.Size = 0
  3098.     end
  3099.     wasMoving = isMovingNow
  3100.  
  3101.     local wndPos = CurrentCamera.CFrame.Position + CurrentCamera.CFrame.LookVector * 15
  3102.     wndPart.CFrame = CFrame.new(wndPos, wndPos + CurrentCamera.CFrame.LookVector)
  3103.  
  3104.     if 80 <= Magnitude and tick % math.max(1, math.floor(50 / Magnitude)) == 0 then
  3105.         local Part = Instance.new("Part")
  3106.         Part.CastShadow = false
  3107.         Part.Color = Color3.new(1,1,1)
  3108.         Part.Material = Enum.Material.ForceField
  3109.         Part.Transparency = 1
  3110.         Part.Size = Vector3.new(0.03, 0.03, Magnitude / 60)
  3111.         Part.CanCollide = false
  3112.         Part.Massless = true
  3113.         Part.Parent = workspace
  3114.  
  3115.         local SpecialMesh = Instance.new("SpecialMesh")
  3116.         SpecialMesh.MeshType = Enum.MeshType.Sphere
  3117.         SpecialMesh.Parent = Part
  3118.  
  3119.         local cframe = CFrame.new(math.random(-300,300)/100, math.random(-200,200)/100, -math.floor(Magnitude/50)*2)
  3120.  
  3121.         local Weld = Instance.new("Weld", Part)
  3122.         Weld.Part0 = Part_upvr
  3123.         Weld.Part1 = Part
  3124.         Weld.C0 = cframe
  3125.  
  3126.         for _, v in pairs(wndAttachment:GetDescendants()) do
  3127.             if v:IsA("ParticleEmitter") then
  3128.                 v.Enabled = true
  3129.                 if v.Name ~= "Wind3" then
  3130.                     v.Speed = NumberRange.new(math.clamp(5*Magnitude/40,-100,50), math.clamp(20*Magnitude/40,-100,200))
  3131.                     v.Rate = math.clamp(2*Magnitude/4, 0, 2000)
  3132.                 elseif v.Name == "Wind3" then
  3133.                     local lock = false
  3134.                     if Humanoid.FloorMaterial == Enum.Material.Air then
  3135.                         if 250 >= Magnitude then
  3136.                             lock = false
  3137.                         else
  3138.                             lock = true
  3139.                         end
  3140.                     end
  3141.                     v.LockedToPart = lock
  3142.                 end
  3143.             end
  3144.         end
  3145.  
  3146.         Debris:AddItem(Part, 0.6)
  3147.  
  3148.         TweenService:Create(Part, TweenInfo.new(0.05, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {Transparency = 0.8}):Play()
  3149.         TweenService:Create(Weld, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {C0 = CFrame.new(cframe.Position.X, cframe.Position.Y, math.floor(Magnitude/100)*4)}):Play()
  3150.  
  3151.         wait(0.225)
  3152.  
  3153.         TweenService:Create(Part, TweenInfo.new(0.095, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {Transparency = 1}):Play()
  3154.     else
  3155.         for _, v in pairs(wndAttachment:GetChildren()) do
  3156.             if v:IsA("ParticleEmitter") then
  3157.                 v.Enabled = false
  3158.             end
  3159.         end
  3160.     end
  3161. end)
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment