Advertisement
MyNewName

Untitled

Mar 13th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.49 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. LocalScript0 = Instance.new("LocalScript")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Sound2 = Instance.new("Sound")
  22. ParticleEmitter3 = Instance.new("ParticleEmitter")
  23. PointLight4 = Instance.new("PointLight")
  24. LocalScript5 = Instance.new("LocalScript")
  25. Sound6 = Instance.new("Sound")
  26. ParticleEmitter7 = Instance.new("ParticleEmitter")
  27. PointLight8 = Instance.new("PointLight")
  28. BillboardGui9 = Instance.new("BillboardGui")
  29. TextBox10 = Instance.new("TextBox")
  30. Accessory11 = Instance.new("Accessory")
  31. Part12 = Instance.new("Part")
  32. SpecialMesh13 = Instance.new("SpecialMesh")
  33. Attachment14 = Instance.new("Attachment")
  34. Vector3Value15 = Instance.new("Vector3Value")
  35. Weld16 = Instance.new("Weld")
  36. Accessory17 = Instance.new("Accessory")
  37. Part18 = Instance.new("Part")
  38. SpecialMesh19 = Instance.new("SpecialMesh")
  39. Attachment20 = Instance.new("Attachment")
  40. Weld21 = Instance.new("Weld")
  41. LocalScript22 = Instance.new("LocalScript")
  42. ForceField23 = Instance.new("ForceField")
  43. Sound24 = Instance.new("Sound")
  44. LocalScript25 = Instance.new("LocalScript")
  45. ForceField26 = Instance.new("ForceField")
  46. LocalScript27 = Instance.new("LocalScript")
  47. LocalScript0.Name = "Aqua0"
  48. LocalScript0.Parent = mas
  49. table.insert(cors,sandbox(LocalScript0,function()
  50. --[[ Script By reeces44 ]]--
  51. --[[ Thanks For Using ]]--
  52. ------------------------------------
  53. ----------------------------
  54. --------------------
  55.  
  56. ------------------------------------
  57. ------------------------------------
  58. --[[ Instructions ]]--
  59. ------------------------------------
  60. --[[
  61. Press F to start flying
  62. When Flying holding W will speed up.
  63. When Flying Holding S will speed down.
  64.  
  65. Put in StarterPack for everyone to fly.
  66. Alternatively, place the script in any players
  67. backpack to allow them to fly.
  68.  
  69. Have Fun,
  70. reeces44.
  71. --]]
  72. -------------------------------------
  73.  
  74. local player = game.Players.LocalPlayer
  75. local mouse = player:GetMouse()
  76.  
  77. function GetMassRecursive(p)
  78. local mass = 0
  79. for i,v in pairs(p:GetChildren())do
  80. if #v:GetChildren() > 0 then
  81. mass = mass + GetMassRecursive(v)
  82. end
  83. if v:IsA("Part") then
  84. print(v.Name)
  85. mass = mass + v:GetMass()
  86. end
  87. end
  88. return mass
  89. end
  90.  
  91. local wDown = false
  92. local sDown = false
  93. local isFlying = false
  94. local speed = 10
  95. mouse.KeyDown:connect(function(key)
  96. if key == "f" then
  97. if isFlying then
  98. speed = 0
  99. wait()
  100. player.Character.Torso["Anti-Grav"]:Destroy()
  101. player.Character.Torso["FlyingVelocity"]:Destroy()
  102. player.Character.Humanoid.PlatformStand = false
  103. isFlying = false
  104. else
  105. speed = 10
  106. local f = Instance.new("BodyForce")
  107. f.Name = "Anti-Grav"
  108. f.Force = Vector3.new(0,196.2,0) * (GetMassRecursive(player.Character))
  109. f.Parent = player.Character.Torso
  110. local v = Instance.new("BodyVelocity")
  111. v.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * 10
  112. v.P = 100
  113. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  114. v.Name = "FlyingVelocity"
  115. v.Parent = player.Character.Torso
  116. player.Character.Humanoid.PlatformStand = true
  117. isFlying = true
  118. end
  119. end
  120. if key == "w" then
  121. wDown = true
  122. end
  123. if key == "s" then
  124. sDown = true
  125. end
  126. end)
  127. mouse.KeyUp:connect(function(key)
  128. if key == "w" then
  129. wDown = false
  130. end
  131. if key == "s" then
  132. sDown = false
  133. end
  134. end)
  135. local MAX_SPEED = 200
  136. local MIN_SPEED = 0
  137. spawn(function()
  138. while player.Character.Humanoid.Health > 0 do
  139. if isFlying then
  140. local r = 1+(speed/500)
  141. player.Character:SetPrimaryPartCFrame(CFrame.new(player.Character.PrimaryPart.Position,mouse.Hit.p)*CFrame.Angles(math.pi/r,math.pi,math.pi))
  142. player.Character.Torso.FlyingVelocity.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * speed
  143. if wDown then
  144. speed = speed + 5
  145. if speed > MAX_SPEED then
  146. speed = MAX_SPEED
  147. end
  148. elseif sDown then
  149. speed = speed - 5
  150. if speed < MIN_SPEED then
  151. speed = MIN_SPEED
  152. end
  153. end
  154. end
  155.  
  156. game:GetService("RunService").RenderStepped:wait()
  157. end
  158. end)
  159. end))
  160. LocalScript1.Name = "Aqua1"
  161. LocalScript1.Parent = mas
  162. table.insert(cors,sandbox(LocalScript1,function()
  163. local mouse = game.Players.LocalPlayer:GetMouse()
  164. local Character = game.Players.LocalPlayer.Character
  165. local aa = false
  166. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  167. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  168. if v:IsA("BasePart") then
  169. local Sound = script.FatSound:Clone()
  170. Sound.Parent = game.Players.LocalPlayer.Character.Head
  171. local AquaLight = script.AquaLight:Clone()
  172. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  173. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  174. Particles.Parent = v
  175. Sound:Play()
  176. end
  177. end
  178. end
  179.  
  180. function ParticlesDestroy() -- To remove the Particles again.
  181. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  182. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  183. v.TestParticles.Enabled = false
  184. v.TestParticles:Destroy()
  185. end
  186. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  187. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  188. end
  189. end
  190. end
  191.  
  192. function particles(a,b) -- Key Function, just don't touch this.
  193. if a == ("p") then
  194. if aa == true then
  195. aa = false
  196. ParticlesDestroy()
  197. else
  198.  
  199. if aa == false then
  200. aa = true
  201. Particles()
  202. end
  203. end
  204. end
  205. end
  206.  
  207.  
  208. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  209.  
  210. end))
  211. Sound2.Name = "FatSound"
  212. Sound2.Parent = LocalScript1
  213. Sound2.SoundId = "rbxassetid://782722084"
  214. Sound2.Volume = 2
  215. ParticleEmitter3.Name = "TestParticles"
  216. ParticleEmitter3.Parent = LocalScript1
  217. ParticleEmitter3.Transparency = NumberSequence.new(1,0.63749998807907,1)
  218. ParticleEmitter3.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  219. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  220. ParticleEmitter3.LightEmission = 2
  221. ParticleEmitter3.Texture = "rbxassetid://337127439"
  222. ParticleEmitter3.Lifetime = NumberRange.new(4, 4)
  223. ParticleEmitter3.Speed = NumberRange.new(4, 4)
  224. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  225. PointLight4.Name = "AquaLight"
  226. PointLight4.Parent = LocalScript1
  227. PointLight4.Color = Color3.new(0, 0.984314, 1)
  228. PointLight4.Brightness = 5
  229. PointLight4.Range = 5
  230. PointLight4.Color = Color3.new(0, 0.984314, 1)
  231. LocalScript5.Name = "Aqua2"
  232. LocalScript5.Parent = mas
  233. table.insert(cors,sandbox(LocalScript5,function()
  234. local mouse = game.Players.LocalPlayer:GetMouse()
  235. local Character = game.Players.LocalPlayer.Character
  236. local aa = false
  237. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  238. local AquaLight = script.AquaLight:Clone()
  239. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  240. local Particles = script.BillboardGui:Clone() -- Name TestParticles to your Particles name.
  241. Particles.Parent = game.Players.LocalPlayer.Character.Head
  242. end
  243. function ColorHair()
  244. if Character:findFirstChild("BoyAnimeHair_Blue") == nil and Character:findFirstChild("moonWings") == nil then
  245. local hair = script.BoyAnimeHair_Blue:Clone()
  246. hair.Parent = Character
  247. local wings = script.moonWings:Clone()
  248. wings.Parent = Character
  249. end
  250. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  251. if Character:findFirstChild("BoyAnimeHair_Blue") then
  252. Character.BoyAnimeHair_Blue.Handle.Mesh.TextureId = ""
  253. Character.BoyAnimeHair_Blue.Handle.Color = Color3.fromRGB(0, 178, 240)
  254. end
  255. if Character:findFirstChild("moonWings") then
  256. Character.moonWings.Handle.Mesh.TextureId = ""
  257. Character.moonWings.Handle.Color = Color3.fromRGB(89, 178, 240)
  258. Character.moonWings.Handle.Mesh.Offset = Vector3.new(0, 0.5, 0.5)
  259. Character.moonWings.Handle.Mesh.Scale = Vector3.new(7,7,7)
  260. Character.moonWings.Handle.Transparency = 0.4
  261. end
  262. end
  263. end
  264. function ParticlesDestroy() -- To remove the Particles again.
  265. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  266. if game.Players.LocalPlayer.Character.Head:FindFirstChild("BillboardGui") then -- Name TestParticles to your Particles name.
  267. game.Players.LocalPlayer.Character.Head.BillboardGui:Destroy()
  268. end
  269. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaLight") then -- Name TestParticles to your Particles name.
  270. game.Players.LocalPlayer.Character.Head.AquaLight:Destroy()
  271. end
  272. end
  273. end
  274.  
  275. function particles(a,b) -- Key Function, just don't touch this.
  276. if a == ("m") then
  277. if aa == true then
  278. aa = false
  279. ParticlesDestroy()
  280. else
  281.  
  282. if aa == false then
  283. aa = true
  284. ColorHair()
  285. Particles()
  286. end
  287. end
  288. end
  289. end
  290.  
  291.  
  292. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  293.  
  294. end))
  295. Sound6.Name = "FatSound"
  296. Sound6.Parent = LocalScript5
  297. Sound6.SoundId = "rbxassetid://782722084"
  298. Sound6.Volume = 2
  299. ParticleEmitter7.Name = "TestParticles"
  300. ParticleEmitter7.Parent = LocalScript5
  301. ParticleEmitter7.Transparency = NumberSequence.new(1,0.63749998807907,1)
  302. ParticleEmitter7.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  303. ParticleEmitter7.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  304. ParticleEmitter7.LightEmission = 2
  305. ParticleEmitter7.Texture = "rbxassetid://337127439"
  306. ParticleEmitter7.Lifetime = NumberRange.new(4, 4)
  307. ParticleEmitter7.Speed = NumberRange.new(4, 4)
  308. ParticleEmitter7.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  309. PointLight8.Name = "AquaLight"
  310. PointLight8.Parent = LocalScript5
  311. PointLight8.Color = Color3.new(0, 0.984314, 1)
  312. PointLight8.Brightness = 5
  313. PointLight8.Range = 5
  314. PointLight8.Color = Color3.new(0, 0.984314, 1)
  315. BillboardGui9.Parent = LocalScript5
  316. BillboardGui9.Size = UDim2.new(40, 40, 1, 1)
  317. BillboardGui9.Active = true
  318. BillboardGui9.StudsOffset = Vector3.new(0, 3, 0)
  319. TextBox10.Name = "Text"
  320. TextBox10.Parent = BillboardGui9
  321. TextBox10.Transparency = 1
  322. TextBox10.Size = UDim2.new(1, 1, 1, 1)
  323. TextBox10.Text = "Aquamarine"
  324. TextBox10.BackgroundColor3 = Color3.new(0, 0, 0)
  325. TextBox10.BackgroundTransparency = 1
  326. TextBox10.BorderColor3 = Color3.new(0, 0, 0)
  327. TextBox10.ClearTextOnFocus = false
  328. TextBox10.MultiLine = true
  329. TextBox10.Font = Enum.Font.Fantasy
  330. TextBox10.FontSize = Enum.FontSize.Size14
  331. TextBox10.TextColor3 = Color3.new(0.164706, 0.960784, 1)
  332. TextBox10.TextScaled = true
  333. TextBox10.TextStrokeColor3 = Color3.new(0.0784314, 0.141176, 0.427451)
  334. TextBox10.TextStrokeTransparency = 0
  335. TextBox10.TextWrapped = true
  336. TextBox10.TextYAlignment = Enum.TextYAlignment.Top
  337. Accessory11.Name = "BoyAnimeHair_Blue"
  338. Accessory11.Parent = LocalScript5
  339. Accessory11.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  340. Part12.Name = "Handle"
  341. Part12.Parent = Accessory11
  342. Part12.CanCollide = false
  343. Part12.Locked = true
  344. Part12.FormFactor = Enum.FormFactor.Symmetric
  345. Part12.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  346. Part12.CFrame = CFrame.new(0.0599999949, 4.44000006, 0.100272246, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  347. Part12.BottomSurface = Enum.SurfaceType.Smooth
  348. Part12.TopSurface = Enum.SurfaceType.Smooth
  349. Part12.Position = Vector3.new(0.0599999949, 4.44000006, 0.100272246)
  350. SpecialMesh13.Parent = Part12
  351. SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=398987591 "
  352. SpecialMesh13.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  353. SpecialMesh13.TextureId = "http://www.roblox.com/asset/?id=398618334"
  354. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  355. SpecialMesh13.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  356. Attachment14.Name = "HairAttachment"
  357. Attachment14.Parent = Part12
  358. Attachment14.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  359. Attachment14.CFrame = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  360. Attachment14.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  361. Attachment14.Axis = Vector3.new(1, -7.87137555e-09, 0)
  362. Attachment14.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  363. Vector3Value15.Name = "OriginalSize"
  364. Vector3Value15.Parent = Part12
  365. Vector3Value15.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  366. Weld16.Name = "AccessoryWeld"
  367. Weld16.Parent = Part12
  368. Weld16.C0 = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  369. Weld16.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  370. Weld16.Part0 = Part12
  371. Accessory17.Name = "moonWings"
  372. Accessory17.Parent = LocalScript5
  373. Accessory17.AttachmentPos = Vector3.new(0, 1.29999995, -1.10000002)
  374. Part18.Name = "Handle"
  375. Part18.Parent = Accessory17
  376. Part18.CanCollide = false
  377. Part18.Locked = true
  378. Part18.FormFactor = Enum.FormFactor.Custom
  379. Part18.Size = Vector3.new(3.80002809, 2.99999952, 1.60000014)
  380. Part18.CFrame = CFrame.new(4.78408427e-31, 3.70000029, 1.10027242, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  381. Part18.BottomSurface = Enum.SurfaceType.Smooth
  382. Part18.TopSurface = Enum.SurfaceType.Smooth
  383. Part18.Position = Vector3.new(4.78408427e-31, 3.70000029, 1.10027242)
  384. SpecialMesh19.Parent = Part18
  385. SpecialMesh19.MeshId = "rbxassetid://147982651"
  386. SpecialMesh19.Scale = Vector3.new(4, 4, 4)
  387. SpecialMesh19.TextureId = "rbxassetid://845817136"
  388. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  389. SpecialMesh19.Scale = Vector3.new(4, 4, 4)
  390. Attachment20.Name = "BodyBackAttachment"
  391. Attachment20.Parent = Part18
  392. Attachment20.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  393. Attachment20.CFrame = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  394. Attachment20.Position = Vector3.new(0, -0.700000286, -0.600272417)
  395. Attachment20.Axis = Vector3.new(1, 6.83440315e-31, 0)
  396. Attachment20.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  397. Weld21.Name = "AccessoryWeld"
  398. Weld21.Parent = Part18
  399. Weld21.C0 = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  400. Weld21.C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  401. Weld21.Part0 = Part18
  402. LocalScript22.Name = "Aqua3"
  403. LocalScript22.Parent = mas
  404. table.insert(cors,sandbox(LocalScript22,function()
  405. local mouse = game.Players.LocalPlayer:GetMouse()
  406. local Character = game.Players.LocalPlayer.Character
  407. local aa = false
  408. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  409. local AquaLight = script.ForceField:Clone()
  410. AquaLight.Parent = game.Players.LocalPlayer.Character
  411. local hum = Character:findFirstChild("Humanoid")
  412. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  413. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  414. local Sound = script.AquaSound:Clone()
  415. Sound.Parent = game.Players.LocalPlayer.Character.Head
  416. Sound:Play()
  417. end
  418.  
  419. function ParticlesDestroy() -- To remove the Particles again.
  420. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  421. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  422. game.Players.LocalPlayer.Character.ForceField:Destroy()
  423. end
  424. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaSound") then -- Name TestParticles to your Particles name.
  425. game.Players.LocalPlayer.Character.Head.AquaSound:Destroy()
  426. end
  427. end
  428. end
  429.  
  430. function particles(a,b) -- Key Function, just don't touch this.
  431. if a == ("k") then
  432. if aa == true then
  433. aa = false
  434. ParticlesDestroy()
  435. else
  436.  
  437. if aa == false then
  438. aa = true
  439. Particles()
  440. end
  441. end
  442. end
  443. end
  444.  
  445.  
  446. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  447.  
  448. end))
  449. ForceField23.Parent = LocalScript22
  450. Sound24.Name = "AquaSound"
  451. Sound24.Parent = LocalScript22
  452. Sound24.SoundId = "rbxassetid://1507235987"
  453. Sound24.Volume = 10
  454. LocalScript25.Name = "Aqua4"
  455. LocalScript25.Parent = mas
  456. table.insert(cors,sandbox(LocalScript25,function()
  457. local mouse = game.Players.LocalPlayer:GetMouse()
  458. local Character = game.Players.LocalPlayer.Character
  459. local aa = false
  460. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  461. local AquaLight = Instance.new("Explosion")
  462. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  463. AquaLight.BlastRadius = 30
  464. AquaLight.DestroyJointRadiusPercent = 99999999999999
  465. AquaLight.Position = Character.Torso.Position
  466. local hum = Character:findFirstChild("Humanoid")
  467. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  468. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  469. end
  470.  
  471. function ParticlesDestroy() -- To remove the Particles again.
  472. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  473. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  474. game.Players.LocalPlayer.Character.ForceField:Destroy()
  475. end
  476. end
  477. end
  478.  
  479. function particles(a,b) -- Key Function, just don't touch this.
  480. if a == ("x") then
  481. if aa == true then
  482. aa = false
  483. --ParticlesDestroy()
  484. else
  485.  
  486. if aa == false then
  487. aa = true
  488. Particles()
  489. end
  490. end
  491. end
  492. end
  493.  
  494.  
  495. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  496.  
  497. end))
  498. ForceField26.Parent = LocalScript25
  499. LocalScript27.Name = "Aqua5"
  500. LocalScript27.Parent = mas
  501. table.insert(cors,sandbox(LocalScript27,function()
  502. scale = 0.75
  503. -------------------------------
  504. p =game.Players.LocalPlayer
  505. c =p.Character
  506. ---------------------------------
  507. p.CharacterAdded:connect(function()
  508. wait(1)
  509. p.CanLoadCharacterAppearance = false
  510. ------------------------------------------------------PHYSICAL SCALING
  511. local joints = c.Torso:GetChildren()
  512. table.insert(joints,c.HumanoidRootPart.RootJoint)
  513. local jointCache = {}
  514.  
  515. for i = 1,#joints do
  516. if joints[i]:IsA("Motor6D") then
  517. joints[i].C0 = CFrame.new(joints[i].C0.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  518. joints[i].C1 = CFrame.new(joints[i].C1.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  519.  
  520. table.insert(jointCache, {joints[i]:Clone(),joints[i].Parent})
  521. joints[i]:Remove()
  522. end
  523. end
  524.  
  525. local children = c:GetChildren()
  526. for i = 1,#children do
  527. if children[i]:IsA("BasePart") then
  528. children[i].FormFactor = "Custom"
  529. children[i].Size = children[i].Size * scale
  530. end
  531. end
  532.  
  533. for i = 1,#jointCache do
  534. jointCache[i][1].Parent = jointCache[i][2]
  535. end
  536.  
  537. --------------------------------------------------------VALUE SCALING
  538. c.Humanoid.WalkSpeed = c.Humanoid.WalkSpeed * scale
  539. c.Humanoid.JumpPower = c.Humanoid.JumpPower * scale/2
  540.  
  541. end)
  542.  
  543. end))
  544. for i,v in pairs(mas:GetChildren()) do
  545. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  546. pcall(function() v:MakeJoints() end)
  547. end
  548. mas:Destroy()
  549. for i,v in pairs(cors) do
  550. spawn(function()
  551. pcall(v)
  552. end)
  553. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement