Advertisement
YoungAoS

VisualiseSource0.1

Jul 7th, 2024 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.89 KB | None | 0 0
  1. -- [[ Visualise Recode - A new start - by DevAos
  2. -- The Visualise Script has been recoded & improved.
  3. -- Fixed autoparry, resolved fixparryremote & others.
  4. -- Made the code more organized, making bugs more easy to fix
  5. -- Tevfnn / DevTrav, lol
  6. -- ]]
  7.  
  8. -- [[ Console Interference ]] --
  9. print("Visualise BETA - by DevAos")
  10. local version = '0.1'
  11. print(version)
  12.  
  13. -- [[ UI Assets ]] --
  14. local Stats = game:GetService('Stats')
  15. local Players = game:GetService('Players')
  16. local RunService = game:GetService('RunService')
  17. local ReplicatedStorage = game:GetService('ReplicatedStorage')
  18.  
  19. local Nurysium_Util = loadstring(game:HttpGet("https://raw.githubusercontent.com/flezzpe/Nurysium/main/nurysium_helper.lua"))()
  20.  
  21. local local_player = Players.LocalPlayer
  22. local camera = workspace.CurrentCamera
  23.  
  24. local nurysium_Data = nil
  25. local hit_Sound = nil
  26.  
  27. local closest_Entity = nil
  28. local parry_remote = nil
  29.  
  30. getgenv().aura_Enabled = false
  31. getgenv().hit_sound_Enabled = false
  32. getgenv().hit_effect_Enabled = false
  33. getgenv().night_mode_Enabled = false
  34. getgenv().trail_Enabled = false
  35. getgenv().self_effect_Enabled = false
  36. getgenv().kill_effect_Enabled = false
  37. getgenv().shaders_effect_Enabled = false
  38. getgenv().spectate_Enabled = false
  39.  
  40. local Services = {
  41. game:GetService('AdService'),
  42. game:GetService('SocialService')
  43. }
  44.  
  45. local library = loadstring(game:HttpGet("https://pastebin.com/raw/3WPH9WzC"))()
  46. task.wait(0.5)
  47.  
  48. library:init("Visualise 0.1", game:GetService("UserInputService").TouchEnabled, game:GetService("CoreGui"))
  49.  
  50. library:create_section("Combat", 17440545793)
  51. library:create_section("Misc", 17440868530)
  52. -- [[ Initialization Functions ]] --
  53. function initializate(dataFolder_name: string)
  54. local nurysium_Data = Instance.new('Folder', game:GetService('CoreGui'))
  55. nurysium_Data.Name = dataFolder_name
  56.  
  57. hit_Sound = Instance.new('Sound', nurysium_Data)
  58. -- Sound
  59. hit_Sound.SoundId = 'rbxassetid://6607204501'
  60. hit_Sound.Volume = 6
  61. end
  62.  
  63. local function get_closest_entity(Object: Part)
  64. task.spawn(function()
  65. local closest
  66. local max_distance = math.huge
  67.  
  68. for index, entity in workspace.Alive:GetChildren() do
  69. if entity.Name ~= Players.LocalPlayer.Name then
  70. local distance = (Object.Position - entity.HumanoidRootPart.Position).Magnitude
  71.  
  72. if distance < max_distance then
  73. closest_Entity = entity
  74. max_distance = distance
  75. end
  76.  
  77. end
  78. end
  79.  
  80. return closest_Entity
  81. end)
  82. end
  83. -- // Resolve Parry Remote
  84. function resolve_parry_Remote()
  85. for _, value in Services do
  86. local temp_remote = value:FindFirstChildOfClass('RemoteEvent')
  87.  
  88. if not temp_remote then
  89. continue
  90. end
  91.  
  92. if not temp_remote.Name:find('\n') then
  93. continue
  94. end
  95.  
  96. parry_remote = temp_remote
  97. end
  98. end
  99.  
  100. local aura_table = {
  101. canParry = true,
  102. is_Spamming = false,
  103.  
  104. parry_Range = 0,
  105. spam_Range = 0,
  106. hit_Count = 0,
  107.  
  108. hit_Time = tick(),
  109. ball_Warping = tick(),
  110. is_ball_Warping = false
  111. }
  112.  
  113. ReplicatedStorage.Remotes.ParrySuccess.OnClientEvent:Connect(function()
  114. if getgenv().hit_sound_Enabled then
  115. hit_Sound:Play()
  116. end
  117.  
  118. if getgenv().hit_effect_Enabled then
  119. local hit_effect = game:GetObjects("rbxassetid://17407244385")[1]
  120.  
  121. hit_effect.Parent = Nurysium_Util.getBall()
  122. hit_effect:Emit(3)
  123.  
  124. task.delay(5, function()
  125. hit_effect:Destroy()
  126. end)
  127.  
  128. end
  129. end)
  130.  
  131. ReplicatedStorage.Remotes.ParrySuccessAll.OnClientEvent:Connect(function()
  132. aura_table.hit_Count += 1
  133.  
  134. task.delay(0.15, function()
  135. aura_table.hit_Count -= 1
  136. end)
  137. end)
  138.  
  139. workspace:WaitForChild("Balls").ChildRemoved:Connect(function(child)
  140. aura_table.hit_Count = 0
  141. aura_table.is_ball_Warping = false
  142. aura_table.is_Spamming = false
  143. end)
  144.  
  145. -- [[ 1st Tab - Combat ]] --
  146. library:create_toggle("Auto Parry", "Combat", function(toggled)
  147. resolve_parry_Remote()
  148. getgenv().aura_Enabled = toggled
  149. end)
  150.  
  151. -- [[ 2nd Tab - Miscellenaus ]] --
  152. library:create_toggle("Night Mode", "Misc", function(toggled)
  153. getgenv().night_mode_Enabled = toggled
  154. end)
  155.  
  156. library:create_toggle("Hit Effect", "Misc", function(toggled)
  157. getgenv().hit_effect_Enabled = toggled
  158. end)
  159.  
  160. library:create_toggle("Trail", "Misc", function(toggled)
  161. getgenv().trail_Enabled = toggled
  162. end)
  163.  
  164. library:create_toggle("Kill Effect", "Misc", function(toggled)
  165. getgenv().kill_effect_Enabled = toggled
  166. end)
  167. -- [[ Final Assets ]] --
  168. --// kill effect
  169.  
  170. function play_kill_effect(Part)
  171. task.defer(function()
  172. local bell = game:GetObjects("rbxassetid://17519762269")[1]
  173.  
  174. bell.Name = 'Yeat_BELL'
  175. bell.Parent = workspace
  176.  
  177. bell.Position = Part.Position - Vector3.new(0, 20, 0)
  178. bell:WaitForChild('Sound'):Play()
  179.  
  180. game:GetService("TweenService"):Create(bell, TweenInfo.new(0.85, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  181. Position = Part.Position + Vector3.new(0, 10, 0)
  182. }):Play()
  183.  
  184. task.delay(5, function()
  185. game:GetService("TweenService"):Create(bell, TweenInfo.new(1.45, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut), {
  186. Position = Part.Position + Vector3.new(0, 100, 0)
  187. }):Play()
  188. end)
  189.  
  190. task.delay(6, function()
  191. bell:Destroy()
  192. end)
  193. end)
  194. end
  195.  
  196. task.defer(function()
  197. workspace.Alive.ChildRemoved:Connect(function(child)
  198. if not workspace.Dead:FindFirstChild(child.Name) then
  199. return
  200. end
  201.  
  202. if getgenv().kill_effect_Enabled then
  203. play_kill_effect(child.HumanoidRootPart)
  204. end
  205. end)
  206. end)
  207.  
  208. --// self effect
  209.  
  210. task.defer(function()
  211. game:GetService("RunService").Heartbeat:Connect(function()
  212.  
  213. if not local_player.Character then
  214. return
  215. end
  216.  
  217. if getgenv().self_effect_Enabled then
  218. local effect = game:GetObjects("rbxassetid://17519530107")[1]
  219.  
  220. effect.Name = 'nurysium_efx'
  221.  
  222. if local_player.Character.PrimaryPart:FindFirstChild('nurysium_efx') then
  223. return
  224. end
  225.  
  226. effect.Parent = local_player.Character.PrimaryPart
  227. else
  228.  
  229. if local_player.Character.PrimaryPart:FindFirstChild('nurysium_efx') then
  230. local_player.Character.PrimaryPart['nurysium_efx']:Destroy()
  231. end
  232. end
  233.  
  234. end)
  235. end)
  236.  
  237. --// trail
  238.  
  239. task.defer(function()
  240. game:GetService("RunService").Heartbeat:Connect(function()
  241.  
  242. if not local_player.Character then
  243. return
  244. end
  245.  
  246. if getgenv().trail_Enabled then
  247. local trail = game:GetObjects("rbxassetid://17483658369")[1]
  248.  
  249. trail.Name = 'nurysium_fx'
  250.  
  251. if local_player.Character.PrimaryPart:FindFirstChild('nurysium_fx') then
  252. return
  253. end
  254.  
  255. local Attachment0 = Instance.new("Attachment", local_player.Character.PrimaryPart)
  256. local Attachment1 = Instance.new("Attachment", local_player.Character.PrimaryPart)
  257.  
  258. Attachment0.Position = Vector3.new(0, -2.411, 0)
  259. Attachment1.Position = Vector3.new(0, 2.504, 0)
  260.  
  261. trail.Parent = local_player.Character.PrimaryPart
  262. trail.Attachment0 = Attachment0
  263. trail.Attachment1 = Attachment1
  264. else
  265.  
  266. if local_player.Character.PrimaryPart:FindFirstChild('nurysium_fx') then
  267. local_player.Character.PrimaryPart['nurysium_fx']:Destroy()
  268. end
  269. end
  270.  
  271. end)
  272. end)
  273.  
  274. --// Night/Day
  275.  
  276. task.defer(function()
  277. local TweenService = game:GetService("TweenService")
  278. local Lighting = game:GetService("Lighting")
  279. local tweenInfo = TweenInfo.new(3)
  280.  
  281. while task.wait(1) do
  282. if getgenv().night_mode_Enabled then
  283. local nightTween = TweenService:Create(Lighting, tweenInfo, {ClockTime = 1.9})
  284. nightTween:Play()
  285. else
  286. local dayTween = TweenService:Create(Lighting, tweenInfo, {ClockTime = 13.5})
  287. dayTween:Play()
  288. end
  289. end
  290. end)
  291.  
  292.  
  293. --// spectate ball
  294.  
  295. task.defer(function()
  296. RunService.RenderStepped:Connect(function()
  297. if getgenv().spectate_Enabled then
  298.  
  299. local self = Nurysium_Util.getBall()
  300.  
  301. if not self then
  302. return
  303. end
  304.  
  305. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(CFrame.new(workspace.CurrentCamera.CFrame.Position, self.Position), 0.1)
  306. end
  307. end)
  308. end)
  309.  
  310. --// shaders.gsl 🌠🤫
  311.  
  312. task.defer(function()
  313. while task.wait(1) do
  314. if getgenv().shaders_effect_Enabled then
  315. game:GetService("TweenService"):Create(game:GetService("Lighting").Bloom, TweenInfo.new(4), {
  316. Size = 100,
  317. Intensity = 2.1
  318. }):Play()
  319. else
  320. game:GetService("TweenService"):Create(game:GetService("Lighting").Bloom, TweenInfo.new(3), {
  321. Size = 3,
  322. Intensity = 1
  323. }):Play()
  324. end
  325. end
  326. end)
  327.  
  328. --// aura
  329.  
  330. task.spawn(function()
  331. RunService.PreRender:Connect(function()
  332. if not getgenv().aura_Enabled then
  333. return
  334. end
  335.  
  336. if closest_Entity then
  337. if workspace.Alive:FindFirstChild(closest_Entity.Name) and workspace.Alive:FindFirstChild(closest_Entity.Name).Humanoid.Health > 0 then
  338. if aura_table.is_Spamming then
  339. if local_player:DistanceFromCharacter(closest_Entity.HumanoidRootPart.Position) <= aura_table.spam_Range then
  340.  
  341. parry_remote:FireServer(
  342. 0.5,
  343. CFrame.new(camera.CFrame.Position, Vector3.zero),
  344. {[closest_Entity.Name] = closest_Entity.HumanoidRootPart.Position},
  345. {closest_Entity.HumanoidRootPart.Position.X, closest_Entity.HumanoidRootPart.Position.Y},
  346. false
  347. )
  348.  
  349. end
  350. end
  351. end
  352. end
  353. end)
  354.  
  355. RunService.PreRender:Connect(function()
  356. if not getgenv().aura_Enabled then
  357. return
  358. end
  359.  
  360. local ping = Stats.Network.ServerStatsItem['Data Ping']:GetValue() / 10
  361. local self = Nurysium_Util.getBall()
  362.  
  363. if not self then
  364. return
  365. end
  366.  
  367. self:GetAttributeChangedSignal('target'):Once(function()
  368. aura_table.canParry = true
  369. end)
  370.  
  371. if self:GetAttribute('target') ~= local_player.Name or not aura_table.canParry then
  372. return
  373. end
  374.  
  375. get_closest_entity(local_player.Character.PrimaryPart)
  376.  
  377. local player_Position = local_player.Character.PrimaryPart.Position
  378.  
  379. local ball_Position = self.Position
  380. local ball_Velocity = self.AssemblyLinearVelocity
  381.  
  382. if self:FindFirstChild('zoomies') then
  383. ball_Velocity = self.zoomies.VectorVelocity
  384. end
  385.  
  386. local ball_Direction = (local_player.Character.PrimaryPart.Position - ball_Position).Unit
  387. local ball_Distance = local_player:DistanceFromCharacter(ball_Position)
  388. local ball_Dot = ball_Direction:Dot(ball_Velocity.Unit)
  389. local ball_Speed = ball_Velocity.Magnitude
  390. local ball_speed_Limited = math.min(ball_Speed / 1000, 0.1)
  391.  
  392. local ball_predicted_Distance = (ball_Distance - ping / 15.5) - (ball_Speed / 3.5)
  393.  
  394. local target_Position = closest_Entity.HumanoidRootPart.Position
  395. local target_Distance = local_player:DistanceFromCharacter(target_Position)
  396. local target_distance_Limited = math.min(target_Distance / 10000, 0.1)
  397. local target_Direction = (local_player.Character.PrimaryPart.Position - closest_Entity.HumanoidRootPart.Position).Unit
  398. local target_Velocity = closest_Entity.HumanoidRootPart.AssemblyLinearVelocity
  399. local target_isMoving = target_Velocity.Magnitude > 0
  400. local target_Dot = target_isMoving and math.max(target_Direction:Dot(target_Velocity.Unit), 0)
  401.  
  402. aura_table.spam_Range = math.max(ping / 10, 15) + ball_Speed / 7
  403. aura_table.parry_Range = math.max(math.max(ping, 4) + ball_Speed / 3.5, 9.5)
  404. aura_table.is_Spamming = aura_table.hit_Count > 1 or ball_Distance < 13.5
  405.  
  406. if ball_Dot < 0 then
  407. aura_table.ball_Warping = tick()
  408. end
  409.  
  410. task.spawn(function()
  411. if (tick() - aura_table.ball_Warping) >= 0.25 + target_distance_Limited - ball_speed_Limited or ball_Distance <= 12 then
  412. aura_table.is_ball_Warping = false
  413.  
  414. return
  415. end
  416.  
  417. aura_table.is_ball_Warping = true
  418. end)
  419.  
  420. if ball_Distance <= aura_table.parry_Range and not aura_table.is_Spamming and not aura_table.is_ball_Warping then
  421. parry_remote:FireServer(
  422. 0.5,
  423. CFrame.new(camera.CFrame.Position, Vector3.new(math.random(-1000, 1000), math.random(0, 1000), math.random(-1000, 100))),
  424. {[closest_Entity.Name] = target_Position},
  425. {target_Position.X, target_Position.Y},
  426. false
  427. )
  428.  
  429. aura_table.canParry = false
  430. aura_table.hit_Time = tick()
  431. aura_table.hit_Count += 1
  432.  
  433. task.delay(0.15, function()
  434. aura_table.hit_Count -= 1
  435. end)
  436. end
  437.  
  438. task.spawn(function()
  439. repeat
  440. RunService.PreRender:Wait()
  441. until (tick() - aura_table.hit_Time) >= 1
  442. aura_table.canParry = true
  443. end)
  444. end)
  445. end)
  446.  
  447.  
  448. initializate('nurysium_temp')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement