Advertisement
YoungAoS

VisualiseSource0.2

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