Advertisement
MyNewName

Untitled

Mar 14th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.50 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. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. LocalScript2 = Instance.new("LocalScript")
  22. Script3 = Instance.new("Script")
  23. LocalScript4 = Instance.new("LocalScript")
  24. LocalScript5 = Instance.new("LocalScript")
  25. Part6 = Instance.new("Part")
  26. LocalScript7 = Instance.new("LocalScript")
  27. LocalScript8 = Instance.new("LocalScript")
  28. Sound9 = Instance.new("Sound")
  29. ParticleEmitter10 = Instance.new("ParticleEmitter")
  30. PointLight11 = Instance.new("PointLight")
  31. LocalScript12 = Instance.new("LocalScript")
  32. Sound13 = Instance.new("Sound")
  33. ParticleEmitter14 = Instance.new("ParticleEmitter")
  34. PointLight15 = Instance.new("PointLight")
  35. BillboardGui16 = Instance.new("BillboardGui")
  36. TextBox17 = Instance.new("TextBox")
  37. Accessory18 = Instance.new("Accessory")
  38. Part19 = Instance.new("Part")
  39. SpecialMesh20 = Instance.new("SpecialMesh")
  40. Attachment21 = Instance.new("Attachment")
  41. Vector3Value22 = Instance.new("Vector3Value")
  42. Weld23 = Instance.new("Weld")
  43. Accessory24 = Instance.new("Accessory")
  44. Part25 = Instance.new("Part")
  45. SpecialMesh26 = Instance.new("SpecialMesh")
  46. Attachment27 = Instance.new("Attachment")
  47. Weld28 = Instance.new("Weld")
  48. Accessory29 = Instance.new("Accessory")
  49. Part30 = Instance.new("Part")
  50. SpecialMesh31 = Instance.new("SpecialMesh")
  51. Attachment32 = Instance.new("Attachment")
  52. Vector3Value33 = Instance.new("Vector3Value")
  53. Weld34 = Instance.new("Weld")
  54. Weld35 = Instance.new("Weld")
  55. LocalScript36 = Instance.new("LocalScript")
  56. ForceField37 = Instance.new("ForceField")
  57. Sound38 = Instance.new("Sound")
  58. LocalScript39 = Instance.new("LocalScript")
  59. ForceField40 = Instance.new("ForceField")
  60. LocalScript41 = Instance.new("LocalScript")
  61. LocalScript42 = Instance.new("LocalScript")
  62. Sound43 = Instance.new("Sound")
  63. ParticleEmitter44 = Instance.new("ParticleEmitter")
  64. PointLight45 = Instance.new("PointLight")
  65. LocalScript46 = Instance.new("LocalScript")
  66. Sound47 = Instance.new("Sound")
  67. ParticleEmitter48 = Instance.new("ParticleEmitter")
  68. PointLight49 = Instance.new("PointLight")
  69. Tool0.Name = "Aquamarine Wand"
  70. Tool0.Parent = mas
  71. Tool0.GripForward = Vector3.new(-0.914366484, 0.380257547, -0.139060885)
  72. Tool0.GripPos = Vector3.new(0.600966454, 0.271429777, 0.0519190952)
  73. Tool0.GripRight = Vector3.new(-0.128400177, 0.0533977672, 0.990283847)
  74. Tool0.GripUp = Vector3.new(-0.38398847, -0.923337817, 0)
  75. Tool0.CanBeDropped = false
  76. Part1.Name = "Handle"
  77. Part1.Parent = Tool0
  78. Part1.Material = Enum.Material.SmoothPlastic
  79. Part1.BrickColor = BrickColor.new("Navy blue")
  80. Part1.Rotation = Vector3.new(-90, -0.00999999978, -90)
  81. Part1.CanCollide = false
  82. Part1.FormFactor = Enum.FormFactor.Custom
  83. Part1.Shape = Enum.PartType.Cylinder
  84. Part1.Size = Vector3.new(2.13999963, 0.170000076, 0.199999973)
  85. Part1.CFrame = CFrame.new(118.000183, 39.6357765, -40.8030701, 0, 1, -9.89999971e-05, 6.60000005e-05, 9.89999971e-05, 1, 1, -6.53400001e-09, -6.60000005e-05)
  86. Part1.BottomSurface = Enum.SurfaceType.Smooth
  87. Part1.TopSurface = Enum.SurfaceType.Smooth
  88. Part1.Color = Color3.new(0.0862745, 0.105882, 0.407843)
  89. Part1.Position = Vector3.new(118.000183, 39.6357765, -40.8030701)
  90. Part1.Orientation = Vector3.new(-90, -90, 0)
  91. Part1.Color = Color3.new(0.0862745, 0.105882, 0.407843)
  92. LocalScript2.Parent = Tool0
  93. table.insert(cors,sandbox(LocalScript2,function()
  94. -- Variables for services
  95. local render = game:GetService("RunService").RenderStepped
  96. local contextActionService = game:GetService("ContextActionService")
  97. local userInputService = game:GetService("UserInputService")
  98.  
  99. local player = game.Players.LocalPlayer
  100. local mouse = player:GetMouse()
  101. local Tool = script.Parent
  102.  
  103. -- Variables for Module Scripts
  104. local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
  105.  
  106. local connection
  107. -- Variables for character joints
  108.  
  109. local neck, shoulder, oldNeckC0, oldShoulderC0
  110.  
  111. local mobileShouldTrack = true
  112.  
  113. -- Thourough check to see if a character is sitting
  114. local function amISitting(character)
  115. local t = character.Torso
  116. for _, part in pairs(t:GetConnectedParts(true)) do
  117. if part:IsA("Seat") or part:IsA("VehicleSeat") then
  118. return true
  119. end
  120. end
  121. end
  122.  
  123. -- Function to call on renderstepped. Orients the character so it is facing towards
  124. -- the player mouse's position in world space. If character is sitting then the torso
  125. -- should not track
  126. local function frame(mousePosition)
  127. -- Special mobile consideration. We don't want to track if the user was touching a ui
  128. -- element such as the movement controls. Just return out of function if so to make sure
  129. -- character doesn't track
  130. if not mobileShouldTrack then return end
  131.  
  132. -- Make sure character isn't swiming. If the character is swimming the following code will
  133. -- not work well; the character will not swim correctly. Besides, who shoots underwater?
  134. if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
  135. local torso = player.Character.Torso
  136. local head = player.Character.Head
  137.  
  138. local toMouse = (mousePosition - head.Position).unit
  139. local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
  140.  
  141. local neckAngle = angle
  142.  
  143. -- Limit how much the head can tilt down. Too far and the head looks unnatural
  144. if math.deg(neckAngle) > 110 then
  145. neckAngle = math.rad(110)
  146. end
  147. neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
  148.  
  149. -- Calculate horizontal rotation
  150. local arm = player.Character:FindFirstChild("Right Arm")
  151. local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
  152. torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
  153. local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
  154. local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
  155. local lateralAngle = math.acos(toMouseArm:Dot(look))
  156.  
  157. -- Check for rogue math
  158. if tostring(lateralAngle) == "-1.#IND" then
  159. lateralAngle = 0
  160. end
  161.  
  162. -- Handle case where character is sitting down
  163. if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
  164.  
  165. local cross = torso.CFrame.lookVector:Cross(toMouseArm)
  166. if lateralAngle > math.pi/2 then
  167. lateralAngle = math.pi/2
  168. end
  169. if cross.Y < 0 then
  170. lateralAngle = -lateralAngle
  171. end
  172. end
  173.  
  174. -- Turn shoulder to point to mouse
  175. shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
  176.  
  177. -- If not sitting then aim torso laterally towards mouse
  178. if not amISitting(player.Character) then
  179. torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
  180. mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
  181. else
  182. --print("sitting")
  183. end
  184. end
  185. end
  186.  
  187. -- Function to bind to render stepped if player is on PC
  188. local function pcFrame()
  189. frame(mouse.Hit.p)
  190. end
  191.  
  192. -- Function to bind to touch moved if player is on mobile
  193. local function mobileFrame(touch, processed)
  194. -- Check to see if the touch was on a UI element. If so, we don't want to update anything
  195. if not processed then
  196. -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
  197. -- to create a ray from the camera.
  198. local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
  199. local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
  200. nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
  201. local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
  202. farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
  203. if farPos.magnitude > 900 then
  204. farPos = farPos.unit * 900
  205. end
  206. local ray = Ray.new(nearPos, farPos)
  207. local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
  208.  
  209. -- if a position was found on the ray then update the character's rotation
  210. if pos then
  211. frame(pos)
  212. end
  213. end
  214. end
  215.  
  216. local oldIcon = nil
  217. -- Function to bind to equip event
  218. local function equip()
  219. local torso = player.Character.Torso
  220.  
  221. -- Setup joint variables
  222. neck = torso.Neck
  223. oldNeckC0 = neck.C0
  224. shoulder = torso:FindFirstChild("Right Shoulder")
  225. oldShoulderC0 = shoulder.C0
  226.  
  227. -- Remember old mouse icon and update current
  228. oldIcon = mouse.Icon
  229. mouse.Icon = "http://www.roblox.com/asset/?id=170477320"
  230.  
  231. -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
  232. if userInputService.TouchEnabled then
  233. connection = userInputService.TouchMoved:connect(mobileFrame)
  234. else
  235. connection = render:connect(pcFrame)
  236. end
  237.  
  238. -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
  239. -- during touch input
  240. userInputService.TouchStarted:connect(function(touch, processed)
  241. mobileShouldTrack = not processed
  242. end)
  243. userInputService.TouchEnded:connect(function(touch, processed)
  244. mobileShouldTrack = false
  245. end)
  246.  
  247. -- Fire server's equip event
  248. game.ReplicatedStorage.ROBLOX_PistolEquipEvent:FireServer()
  249.  
  250. -- Bind event for when mouse is clicked to fire server's fire event
  251. mouse.Button1Down:connect(function()
  252. game.ReplicatedStorage.ROBLOX_PistolFireEvent:FireServer(mouse.Hit.p)
  253. end)
  254.  
  255. -- Bind reload event to mobile button and r key
  256. contextActionService:BindActionToInputTypes("Reload", function()
  257. game.ReplicatedStorage.ROBLOX_PistolReloadEvent:FireServer()
  258. end, true, "")
  259.  
  260. -- If game uses filtering enabled then need to update server while tool is
  261. -- held by character.
  262. if workspace.FilteringEnabled then
  263. while connection do
  264. wait()
  265. game.ReplicatedStorage.ROBLOX_PistolUpdateEvent:FireServer(neck.C0, shoulder.C0)
  266. end
  267. end
  268. end
  269.  
  270. -- Function to bind to Unequip event
  271. local function unequip()
  272. if connection then connection:disconnect() end
  273. contextActionService:UnbindAction("Reload")
  274. game.ReplicatedStorage.ROBLOX_PistolUnequipEvent:FireServer()
  275. mouse.Icon = oldIcon
  276. neck.C0 = oldNeckC0
  277. shoulder.C0 = oldShoulderC0
  278. end
  279.  
  280. -- Bind tool events
  281. Tool.Equipped:connect(equip)
  282. Tool.Unequipped:connect(unequip)
  283. end))
  284. Script3.Name = "qPerfectionWeld"
  285. Script3.Parent = Tool0
  286. table.insert(cors,sandbox(Script3,function()
  287. -- Created by Quenty (@Quenty, follow me on twitter).
  288. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  289. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  290.  
  291. --[[ INSTRUCTIONS
  292. - Place in the model
  293. - Make sure model is anchored
  294. - That's it. It will weld the model and all children.
  295.  
  296. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  297. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  298. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  299. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  300. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  301. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  302. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  303. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  304.  
  305. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  306. ]]
  307.  
  308. --[[ DOCUMENTATION
  309. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  310. - Will work in PBS servers
  311. - Will work as long as it starts out with the part anchored
  312. - Stores the relative CFrame as a CFrame value
  313. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  314. - Utilizes a recursive algorith to find all parts in the model
  315. - Will reweld on script reparent if the script is initially parented to a tool.
  316. - Welds as fast as possible
  317. ]]
  318.  
  319. -- qPerfectionWeld.lua
  320. -- Created 10/6/2014
  321. -- Author: Quenty
  322. -- Version 1.0.3
  323.  
  324. -- Updated 10/14/2014 - Updated to 1.0.1
  325. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  326.  
  327. -- Updated 10/14/2014 - Updated to 1.0.2
  328. --- Fixed bug fix.
  329.  
  330. -- Updated 10/14/2014 - Updated to 1.0.3
  331. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  332.  
  333. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  334.  
  335.  
  336. local function CallOnChildren(Instance, FunctionToCall)
  337. -- Calls a function on each of the children of a certain object, using recursion.
  338.  
  339. FunctionToCall(Instance)
  340.  
  341. for _, Child in next, Instance:GetChildren() do
  342. CallOnChildren(Child, FunctionToCall)
  343. end
  344. end
  345.  
  346. local function GetNearestParent(Instance, ClassName)
  347. -- Returns the nearest parent of a certain class, or returns nil
  348.  
  349. local Ancestor = Instance
  350. repeat
  351. Ancestor = Ancestor.Parent
  352. if Ancestor == nil then
  353. return nil
  354. end
  355. until Ancestor:IsA(ClassName)
  356.  
  357. return Ancestor
  358. end
  359.  
  360. local function GetBricks(StartInstance)
  361. local List = {}
  362.  
  363. -- if StartInstance:IsA("BasePart") then
  364. -- List[#List+1] = StartInstance
  365. -- end
  366.  
  367. CallOnChildren(StartInstance, function(Item)
  368. if Item:IsA("BasePart") then
  369. List[#List+1] = Item;
  370. end
  371. end)
  372.  
  373. return List
  374. end
  375.  
  376. local function Modify(Instance, Values)
  377. -- Modifies an Instance by using a table.
  378.  
  379. assert(type(Values) == "table", "Values is not a table");
  380.  
  381. for Index, Value in next, Values do
  382. if type(Index) == "number" then
  383. Value.Parent = Instance
  384. else
  385. Instance[Index] = Value
  386. end
  387. end
  388. return Instance
  389. end
  390.  
  391. local function Make(ClassType, Properties)
  392. -- Using a syntax hack to create a nice way to Make new items.
  393.  
  394. return Modify(Instance.new(ClassType), Properties)
  395. end
  396.  
  397. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  398. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  399.  
  400. local function HasWheelJoint(Part)
  401. for _, SurfaceName in pairs(Surfaces) do
  402. for _, HingSurfaceName in pairs(HingSurfaces) do
  403. if Part[SurfaceName].Name == HingSurfaceName then
  404. return true
  405. end
  406. end
  407. end
  408.  
  409. return false
  410. end
  411.  
  412. local function ShouldBreakJoints(Part)
  413. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  414. -- definitely some edge cases.
  415.  
  416. if NEVER_BREAK_JOINTS then
  417. return false
  418. end
  419.  
  420. if HasWheelJoint(Part) then
  421. return false
  422. end
  423.  
  424. local Connected = Part:GetConnectedParts()
  425.  
  426. if #Connected == 1 then
  427. return false
  428. end
  429.  
  430. for _, Item in pairs(Connected) do
  431. if HasWheelJoint(Item) then
  432. return false
  433. elseif not Item:IsDescendantOf(script.Parent) then
  434. return false
  435. end
  436. end
  437.  
  438. return true
  439. end
  440.  
  441. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  442. --- Weld's 2 parts together
  443. -- @param Part0 The first part
  444. -- @param Part1 The second part (Dependent part most of the time).
  445. -- @param [JointType] The type of joint. Defaults to weld.
  446. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  447. -- @return The weld created.
  448.  
  449. JointType = JointType or "Weld"
  450. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  451.  
  452. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  453. Modify(NewWeld, {
  454. Name = "qCFrameWeldThingy";
  455. Part0 = Part0;
  456. Part1 = Part1;
  457. C0 = CFrame.new();--Part0.CFrame:inverse();
  458. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  459. Parent = Part1;
  460. })
  461.  
  462. if not RelativeValue then
  463. RelativeValue = Make("CFrameValue", {
  464. Parent = Part1;
  465. Name = "qRelativeCFrameWeldValue";
  466. Archivable = true;
  467. Value = NewWeld.C1;
  468. })
  469. end
  470.  
  471. return NewWeld
  472. end
  473.  
  474. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  475. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  476. -- @param MainPart The part to weld the model to (can be in the model).
  477. -- @param [JointType] The type of joint. Defaults to weld.
  478. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  479.  
  480. for _, Part in pairs(Parts) do
  481. if ShouldBreakJoints(Part) then
  482. Part:BreakJoints()
  483. end
  484. end
  485.  
  486. for _, Part in pairs(Parts) do
  487. if Part ~= MainPart then
  488. WeldTogether(MainPart, Part, JointType, MainPart)
  489. end
  490. end
  491.  
  492. if not DoNotUnanchor then
  493. for _, Part in pairs(Parts) do
  494. Part.Anchored = false
  495. end
  496. MainPart.Anchored = false
  497. end
  498. end
  499.  
  500. local function PerfectionWeld()
  501. local Tool = GetNearestParent(script, "Tool")
  502.  
  503. local Parts = GetBricks(script.Parent)
  504. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  505.  
  506. if PrimaryPart then
  507. WeldParts(Parts, PrimaryPart, "Weld", false)
  508. else
  509. warn("qWeld - Unable to weld part")
  510. end
  511.  
  512. return Tool
  513. end
  514.  
  515. local Tool = PerfectionWeld()
  516.  
  517.  
  518. if Tool and script.ClassName == "Script" then
  519. --- Don't bother with local scripts
  520.  
  521. script.Parent.AncestryChanged:connect(function()
  522. PerfectionWeld()
  523. end)
  524. end
  525.  
  526. -- Created by Quenty (@Quenty, follow me on twitter).
  527.  
  528. end))
  529. LocalScript4.Name = "MainScript"
  530. LocalScript4.Parent = Tool0
  531. table.insert(cors,sandbox(LocalScript4,function()
  532. wait()
  533. tool = script.Parent
  534. lineconnect = tool.LineConnect
  535. object = nil
  536. mousedown = false
  537. found = false
  538. BP = Instance.new("BodyPosition")
  539. BP.maxForce = Vector3.new(math.huge*math.huge,math.huge*math.huge,math.huge*math.huge) --pwns everyone elses bodyposition
  540. BP.P = BP.P*10 --faster movement. less bounceback.
  541. dist = nil
  542. point = Instance.new("Part")
  543. point.Locked = true
  544. point.Anchored = true
  545. point.formFactor = 0
  546. point.Shape = 0
  547. point.BrickColor = BrickColor.new("Toothpaste")
  548. point.Size = Vector3.new(1,1,1)
  549. point.CanCollide = false
  550. local mesh = Instance.new("SpecialMesh")
  551. mesh.MeshType = "Sphere"
  552. mesh.Scale = Vector3.new(.35,.35,.35)
  553. mesh.Parent = point
  554. handle = tool.Shoot
  555. front = tool.Shoot
  556. color = tool.Shoot
  557. objval = nil
  558. local hooked = false
  559. local hookBP = BP:clone()
  560. hookBP.maxForce = Vector3.new(30000,30000,30000)
  561.  
  562. function LineConnect(part1,part2,parent)
  563. local p1 = Instance.new("ObjectValue")
  564. p1.Value = part1
  565. p1.Name = "Part1"
  566. local p2 = Instance.new("ObjectValue")
  567. p2.Value = part2
  568. p2.Name = "Part2"
  569. local par = Instance.new("ObjectValue")
  570. par.Value = parent
  571. par.Name = "Par"
  572. local col = Instance.new("ObjectValue")
  573. col.Value = color
  574. col.Name = "Color"
  575. local s = lineconnect:Clone()
  576. s.Name = "LineConnectClone"
  577. s.Disabled = false
  578. p1.Parent = s
  579. p2.Parent = s
  580. par.Parent = s
  581. col.Parent = s
  582. s.Parent = tool
  583. if (part2==object) then
  584. objval = p2
  585. end
  586. end
  587.  
  588. function onButton1Down(mouse)
  589. if (mousedown==true) then return end
  590. mousedown = true
  591. coroutine.resume(coroutine.create(function()
  592. local p = point:clone()
  593. p.Parent = tool
  594. LineConnect(front,object,workspace)
  595. while (mousedown==true) do
  596. p.Parent = tool
  597. if (object==nil) then
  598. if (mouse.Target==nil) then
  599. local lv = CFrame.new(front.Position,mouse.Hit.p)
  600. p.CFrame = CFrame.new(front.Position+(lv.lookVector*1000))
  601. else
  602. p.CFrame = CFrame.new(mouse.Hit.p)
  603. end
  604. else
  605. LineConnect(front,object,workspace)
  606. break
  607. end
  608. wait()
  609. end
  610. p:remove()
  611. end))
  612. while (mousedown==true) do
  613. if (mouse.Target~=nil) then
  614. local t = mouse.Target
  615. if (t.Anchored==false) then
  616. object = t
  617. dist = (object.Position-front.Position).magnitude
  618. break
  619. end
  620. end
  621. wait()
  622. end
  623. while (mousedown==true) do
  624. if (object.Parent==nil) then break end
  625. local lv = CFrame.new(front.Position,mouse.Hit.p)
  626. BP.Parent = object
  627. BP.position = front.Position+lv.lookVector*dist
  628. wait()
  629. end
  630. BP:remove()
  631. object = nil
  632. objval.Value = nil
  633. end
  634.  
  635. function onKeyDown(key,mouse)
  636. local key = key:lower()
  637. local yesh = false
  638. if (key=="q") then
  639. if (dist>=5) then
  640. dist = dist-30
  641. end
  642. end
  643. if key == "" then
  644. if (object==nil) then return end
  645. for _,v in pairs(object:children()) do
  646. if v.className == "BodyGyro" then
  647. return nil
  648. end
  649. end
  650. BG = Instance.new("BodyGyro")
  651. BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  652. BG.cframe = CFrame.new(object.CFrame.p)
  653. BG.Parent = object
  654. repeat wait() until(object.CFrame == CFrame.new(object.CFrame.p))
  655. BG.Parent = nil
  656. if (object==nil) then return end
  657. for _,v in pairs(object:children()) do
  658. if v.className == "BodyGyro" then
  659. v.Parent = nil
  660. end
  661. end
  662. object.Velocity = Vector3.new(0,0,0)
  663. object.RotVelocity = Vector3.new(0,0,0)
  664. end
  665. if (key=="e") then
  666. dist = dist+5
  667. end
  668. if (key=="h") then
  669. if (object==nil) then return end
  670. local e = Instance.new("Explosion")
  671. e.Parent = workspace
  672. e.Position = object.Position
  673. color.BrickColor = BrickColor.Black()
  674. point.BrickColor = BrickColor.White()
  675. wait(.48)
  676. color.BrickColor = BrickColor.White()
  677. point.BrickColor = BrickColor.Black()
  678. end
  679. if (key=="]") then
  680. if not hooked then
  681. if (object==nil) then return end
  682. hooked = true
  683. hookBP.position = object.Position
  684. if tool.Parent:findFirstChild("Torso") then
  685. hookBP.Parent = tool.Parent.Torso
  686. if dist ~= (object.Size.x+object.Size.y+object.Size.z)+5 then
  687. dist = (object.Size.x+object.Size.y+object.Size.z)+5
  688. end
  689. end
  690. else
  691. hooked = false
  692. hookBP.Parent = nil
  693. end
  694. end
  695. if (key=="r") then
  696. if (dist<=30) then
  697. dist = dist+30
  698. end
  699. end
  700. if (key=="b") then
  701. if (object==nil) then return end
  702. local New = object:clone()
  703. New.Parent = object.Parent
  704. for _,v in pairs(New:children()) do
  705. if v.className == "BodyPosition" or v.className == "BodyGyro" then
  706. v.Parent = nil
  707. end
  708. end
  709. object = New
  710. mousedown = false
  711. mousedown = true
  712. LineConnect(front,object,workspace)
  713. while (mousedown==true) do
  714. if (object.Parent==nil) then break end
  715. local lv = CFrame.new(front.Position,mouse.Hit.p)
  716. BP.Parent = object
  717. BP.position = front.Position+lv.lookVector*dist
  718. wait()
  719. end
  720. BP:remove()
  721. object = nil
  722. objval.Value = nil
  723. end
  724. if (key=="c") then
  725. local Cube = Instance.new("Part")
  726. Cube.Locked = true
  727. Cube.Size = Vector3.new(4,4,4)
  728. Cube.formFactor = 0
  729. Cube.TopSurface = 0
  730. Cube.BottomSurface = 0
  731. Cube.Name = "WeightedStorageCube"
  732. Cube.Parent = workspace
  733. Cube.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,2,0)
  734. for i = 0,5 do
  735. local Decal = Instance.new("Decal")
  736. Decal.Texture = "http://www.roblox.com/asset/?id=2662260"
  737. Decal.Face = i
  738. Decal.Name = "WeightedStorageCubeDecal"
  739. Decal.Parent = Cube
  740. end
  741. end
  742. if (key=="[") then
  743. if dist ~= 15 then
  744. dist = 15
  745. end
  746. end
  747. end
  748.  
  749. function onEquipped(mouse)
  750. keymouse = mouse
  751. local char = tool.Parent
  752. human = char.Humanoid
  753. human.Changed:connect(function() if (human.Health==0) then mousedown = false BP:remove() point:remove() tool:remove() end end)
  754. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  755. mouse.Button1Up:connect(function() mousedown = false end)
  756. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  757. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  758. end
  759.  
  760. tool.Equipped:connect(onEquipped)
  761. end))
  762. LocalScript5.Name = "LineConnect"
  763. LocalScript5.Parent = Tool0
  764. LocalScript5.Disabled = true
  765. table.insert(cors,sandbox(LocalScript5,function()
  766. wait()
  767. local check = script.Part2
  768. local part1 = script.Part1.Value
  769. local part2 = script.Part2.Value
  770. local parent = script.Par.Value
  771. local color = script.Color
  772. local line = Instance.new("Part")
  773. line.TopSurface = 0
  774. line.BottomSurface = 0
  775. line.Reflectance = .5
  776. line.Name = "Laser"
  777. line.Locked = true
  778. line.CanCollide = false
  779. line.Anchored = true
  780. line.formFactor = 0
  781. line.Size = Vector3.new(0.3,0.3,1)
  782. local mesh = Instance.new("BlockMesh")
  783. mesh.Parent = line
  784. while true do
  785. if (check.Value==nil) then break end
  786. if (part1==nil or part2==nil or parent==nil) then break end
  787. if (part1.Parent==nil or part2.Parent==nil) then break end
  788. if (parent.Parent==nil) then break end
  789. local lv = CFrame.new(part1.Position,part2.Position)
  790. local dist = (part1.Position-part2.Position).magnitude
  791. line.Parent = parent
  792. line.Material = "Neon"
  793. line.BrickColor = color.Value.BrickColor
  794. line.Reflectance = color.Value.Reflectance
  795. line.Transparency = "0.2"
  796. line.CFrame = CFrame.new(part1.Position+lv.lookVector*dist/2)
  797. line.CFrame = CFrame.new(line.Position,part2.Position)
  798. mesh.Scale = Vector3.new(.25,.25,dist)
  799. wait()
  800. end
  801. line:remove()
  802. script:remove()
  803. end))
  804. Part6.Name = "Shoot"
  805. Part6.Parent = Tool0
  806. Part6.Material = Enum.Material.Neon
  807. Part6.BrickColor = BrickColor.new("Toothpaste")
  808. Part6.Rotation = Vector3.new(-90, -0.00999999978, -90)
  809. Part6.CanCollide = false
  810. Part6.FormFactor = Enum.FormFactor.Custom
  811. Part6.Shape = Enum.PartType.Cylinder
  812. Part6.Size = Vector3.new(0.0899999961, 0.191250086, 0.224999964)
  813. Part6.CFrame = CFrame.new(118.000183, 39.6357117, -41.878067, 0, 1, -9.89999971e-05, 6.60000005e-05, 9.89999971e-05, 1, 1, -6.53400001e-09, -6.60000005e-05)
  814. Part6.BottomSurface = Enum.SurfaceType.Smooth
  815. Part6.TopSurface = Enum.SurfaceType.Smooth
  816. Part6.Color = Color3.new(0, 1, 1)
  817. Part6.Position = Vector3.new(118.000183, 39.6357117, -41.878067)
  818. Part6.Orientation = Vector3.new(-90, -90, 0)
  819. Part6.Color = Color3.new(0, 1, 1)
  820. LocalScript7.Name = "Aqua0"
  821. LocalScript7.Parent = mas
  822. table.insert(cors,sandbox(LocalScript7,function()
  823. --[[ Script By reeces44 ]]--
  824. --[[ Thanks For Using ]]--
  825. ------------------------------------
  826. ----------------------------
  827. --------------------
  828.  
  829. ------------------------------------
  830. ------------------------------------
  831. --[[ Instructions ]]--
  832. ------------------------------------
  833. --[[
  834. Press F to start flying
  835. When Flying holding W will speed up.
  836. When Flying Holding S will speed down.
  837.  
  838. Put in StarterPack for everyone to fly.
  839. Alternatively, place the script in any players
  840. backpack to allow them to fly.
  841.  
  842. Have Fun,
  843. reeces44.
  844. --]]
  845. -------------------------------------
  846.  
  847. local player = game.Players.LocalPlayer
  848. local mouse = player:GetMouse()
  849.  
  850. function GetMassRecursive(p)
  851. local mass = 0
  852. for i,v in pairs(p:GetChildren())do
  853. if #v:GetChildren() > 0 then
  854. mass = mass + GetMassRecursive(v)
  855. end
  856. if v:IsA("Part") then
  857. print(v.Name)
  858. mass = mass + v:GetMass()
  859. end
  860. end
  861. return mass
  862. end
  863.  
  864. local wDown = false
  865. local sDown = false
  866. local isFlying = false
  867. local speed = 10
  868. mouse.KeyDown:connect(function(key)
  869. if key == "f" then
  870. if isFlying then
  871. speed = 0
  872. wait()
  873. player.Character.Torso["Anti-Grav"]:Destroy()
  874. player.Character.Torso["FlyingVelocity"]:Destroy()
  875. player.Character.Humanoid.PlatformStand = false
  876. isFlying = false
  877. else
  878. speed = 10
  879. local f = Instance.new("BodyForce")
  880. f.Name = "Anti-Grav"
  881. f.Force = Vector3.new(0,196.2,0) * (GetMassRecursive(player.Character))
  882. f.Parent = player.Character.Torso
  883. local v = Instance.new("BodyVelocity")
  884. v.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * 10
  885. v.P = 100
  886. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  887. v.Name = "FlyingVelocity"
  888. v.Parent = player.Character.Torso
  889. player.Character.Humanoid.PlatformStand = true
  890. isFlying = true
  891. end
  892. end
  893. if key == "w" then
  894. wDown = true
  895. end
  896. if key == "s" then
  897. sDown = true
  898. end
  899. end)
  900. mouse.KeyUp:connect(function(key)
  901. if key == "w" then
  902. wDown = false
  903. end
  904. if key == "s" then
  905. sDown = false
  906. end
  907. end)
  908. local MAX_SPEED = 200
  909. local MIN_SPEED = 0
  910. spawn(function()
  911. while player.Character.Humanoid.Health > 0 do
  912. if isFlying then
  913. local r = 1+(speed/500)
  914. player.Character:SetPrimaryPartCFrame(CFrame.new(player.Character.PrimaryPart.Position,mouse.Hit.p)*CFrame.Angles(math.pi/r,math.pi,math.pi))
  915. player.Character.Torso.FlyingVelocity.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * speed
  916. if wDown then
  917. speed = speed + 5
  918. if speed > MAX_SPEED then
  919. speed = MAX_SPEED
  920. end
  921. elseif sDown then
  922. speed = speed - 5
  923. if speed < MIN_SPEED then
  924. speed = MIN_SPEED
  925. end
  926. end
  927. end
  928.  
  929. game:GetService("RunService").RenderStepped:wait()
  930. end
  931. end)
  932. end))
  933. LocalScript8.Name = "Aqua1"
  934. LocalScript8.Parent = mas
  935. table.insert(cors,sandbox(LocalScript8,function()
  936. local mouse = game.Players.LocalPlayer:GetMouse()
  937. local Character = game.Players.LocalPlayer.Character
  938. local aa = false
  939. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  940. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  941. if v:IsA("BasePart") then
  942. local Sound = script.FatSound:Clone()
  943. Sound.Parent = game.Players.LocalPlayer.Character.Head
  944. local AquaLight = script.AquaLight:Clone()
  945. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  946. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  947. Particles.Parent = v
  948. Sound:Play()
  949. end
  950. end
  951. end
  952.  
  953. function ParticlesDestroy() -- To remove the Particles again.
  954. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  955. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  956. v.TestParticles.Enabled = false
  957. v.TestParticles:Destroy()
  958. end
  959. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  960. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  961. end
  962. end
  963. end
  964.  
  965. function particles(a,b) -- Key Function, just don't touch this.
  966. if a == ("p") then
  967. if aa == true then
  968. aa = false
  969. ParticlesDestroy()
  970. else
  971.  
  972. if aa == false then
  973. aa = true
  974. Particles()
  975. end
  976. end
  977. end
  978. end
  979.  
  980.  
  981. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  982.  
  983. end))
  984. Sound9.Name = "FatSound"
  985. Sound9.Parent = LocalScript8
  986. Sound9.SoundId = "rbxassetid://782722084"
  987. Sound9.Volume = 2
  988. ParticleEmitter10.Name = "TestParticles"
  989. ParticleEmitter10.Parent = LocalScript8
  990. ParticleEmitter10.Transparency = NumberSequence.new(1,0.63749998807907,1)
  991. ParticleEmitter10.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  992. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  993. ParticleEmitter10.LightEmission = 2
  994. ParticleEmitter10.Texture = "rbxassetid://337127439"
  995. ParticleEmitter10.Lifetime = NumberRange.new(4, 4)
  996. ParticleEmitter10.Speed = NumberRange.new(4, 4)
  997. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  998. PointLight11.Name = "AquaLight"
  999. PointLight11.Parent = LocalScript8
  1000. PointLight11.Color = Color3.new(0, 0.984314, 1)
  1001. PointLight11.Brightness = 5
  1002. PointLight11.Range = 5
  1003. PointLight11.Color = Color3.new(0, 0.984314, 1)
  1004. LocalScript12.Name = "Aqua2"
  1005. LocalScript12.Parent = mas
  1006. table.insert(cors,sandbox(LocalScript12,function()
  1007. local mouse = game.Players.LocalPlayer:GetMouse()
  1008. local Character = game.Players.LocalPlayer.Character
  1009. local aa = false
  1010. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1011. local AquaLight = script.AquaLight:Clone()
  1012. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1013. local Particles = script.BillboardGui:Clone() -- Name TestParticles to your Particles name.
  1014. Particles.Parent = game.Players.LocalPlayer.Character.Head
  1015. end
  1016. function ColorHair()
  1017. if Character:findFirstChild("BoyAnimeHair_Blue") == nil and Character:findFirstChild("moonWings") == nil then
  1018. local hair = script.BoyAnimeHair_Blue:Clone()
  1019. hair.Parent = Character
  1020. local wings = script.moonWings:Clone()
  1021. wings.Parent = Character
  1022. local gem = script.Gem:Clone()
  1023. gem.Parent = Character
  1024. end
  1025. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1026. if Character:findFirstChild("BoyAnimeHair_Blue") then
  1027. Character.BoyAnimeHair_Blue.Handle.Mesh.TextureId = ""
  1028. Character.BoyAnimeHair_Blue.Handle.Color = Color3.fromRGB(0, 178, 240)
  1029. end
  1030. if Character:findFirstChild("moonWings") then
  1031. Character.moonWings.Handle.Mesh.TextureId = ""
  1032. Character.moonWings.Handle.Color = Color3.fromRGB(89, 178, 240)
  1033. Character.moonWings.Handle.Mesh.Offset = Vector3.new(0, 0.5, 0.5)
  1034. Character.moonWings.Handle.Mesh.Scale = Vector3.new(7,7,7)
  1035. Character.moonWings.Handle.Transparency = 0.4
  1036. end
  1037. end
  1038. end
  1039. function ParticlesDestroy() -- To remove the Particles again.
  1040. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1041. if game.Players.LocalPlayer.Character.Head:FindFirstChild("BillboardGui") then -- Name TestParticles to your Particles name.
  1042. game.Players.LocalPlayer.Character.Head.BillboardGui:Destroy()
  1043. end
  1044. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaLight") then -- Name TestParticles to your Particles name.
  1045. game.Players.LocalPlayer.Character.Head.AquaLight:Destroy()
  1046. end
  1047. end
  1048. end
  1049.  
  1050. function particles(a,b) -- Key Function, just don't touch this.
  1051. if a == ("m") then
  1052. if aa == true then
  1053. aa = false
  1054. ParticlesDestroy()
  1055. else
  1056.  
  1057. if aa == false then
  1058. aa = true
  1059. ColorHair()
  1060. Particles()
  1061. end
  1062. end
  1063. end
  1064. end
  1065.  
  1066.  
  1067. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1068.  
  1069. end))
  1070. Sound13.Name = "FatSound"
  1071. Sound13.Parent = LocalScript12
  1072. Sound13.SoundId = "rbxassetid://782722084"
  1073. Sound13.Volume = 2
  1074. ParticleEmitter14.Name = "TestParticles"
  1075. ParticleEmitter14.Parent = LocalScript12
  1076. ParticleEmitter14.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1077. ParticleEmitter14.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1078. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1079. ParticleEmitter14.LightEmission = 2
  1080. ParticleEmitter14.Texture = "rbxassetid://337127439"
  1081. ParticleEmitter14.Lifetime = NumberRange.new(4, 4)
  1082. ParticleEmitter14.Speed = NumberRange.new(4, 4)
  1083. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1084. PointLight15.Name = "AquaLight"
  1085. PointLight15.Parent = LocalScript12
  1086. PointLight15.Color = Color3.new(0, 0.984314, 1)
  1087. PointLight15.Brightness = 5
  1088. PointLight15.Range = 5
  1089. PointLight15.Color = Color3.new(0, 0.984314, 1)
  1090. BillboardGui16.Parent = LocalScript12
  1091. BillboardGui16.Size = UDim2.new(40, 40, 1, 1)
  1092. BillboardGui16.Active = true
  1093. BillboardGui16.StudsOffset = Vector3.new(0, 3, 0)
  1094. TextBox17.Name = "Text"
  1095. TextBox17.Parent = BillboardGui16
  1096. TextBox17.Transparency = 1
  1097. TextBox17.Size = UDim2.new(1, 1, 1, 1)
  1098. TextBox17.Text = "Aquamarine"
  1099. TextBox17.BackgroundColor3 = Color3.new(0, 0, 0)
  1100. TextBox17.BackgroundTransparency = 1
  1101. TextBox17.BorderColor3 = Color3.new(0, 0, 0)
  1102. TextBox17.ClearTextOnFocus = false
  1103. TextBox17.MultiLine = true
  1104. TextBox17.Font = Enum.Font.Fantasy
  1105. TextBox17.FontSize = Enum.FontSize.Size14
  1106. TextBox17.TextColor3 = Color3.new(0.164706, 0.960784, 1)
  1107. TextBox17.TextScaled = true
  1108. TextBox17.TextStrokeColor3 = Color3.new(0.0784314, 0.141176, 0.427451)
  1109. TextBox17.TextStrokeTransparency = 0
  1110. TextBox17.TextWrapped = true
  1111. TextBox17.TextYAlignment = Enum.TextYAlignment.Top
  1112. Accessory18.Name = "BoyAnimeHair_Blue"
  1113. Accessory18.Parent = LocalScript12
  1114. Accessory18.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1115. Part19.Name = "Handle"
  1116. Part19.Parent = Accessory18
  1117. Part19.CanCollide = false
  1118. Part19.Locked = true
  1119. Part19.FormFactor = Enum.FormFactor.Symmetric
  1120. Part19.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1121. Part19.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)
  1122. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1123. Part19.TopSurface = Enum.SurfaceType.Smooth
  1124. Part19.Position = Vector3.new(0.0599999949, 4.44000006, 0.100272246)
  1125. SpecialMesh20.Parent = Part19
  1126. SpecialMesh20.MeshId = "http://www.roblox.com/asset/?id=398987591 "
  1127. SpecialMesh20.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1128. SpecialMesh20.TextureId = "http://www.roblox.com/asset/?id=398618334"
  1129. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  1130. SpecialMesh20.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1131. Attachment21.Name = "HairAttachment"
  1132. Attachment21.Parent = Part19
  1133. Attachment21.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1134. Attachment21.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)
  1135. Attachment21.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1136. Attachment21.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1137. Attachment21.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1138. Vector3Value22.Name = "OriginalSize"
  1139. Vector3Value22.Parent = Part19
  1140. Vector3Value22.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1141. Weld23.Name = "AccessoryWeld"
  1142. Weld23.Parent = Part19
  1143. Weld23.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)
  1144. Weld23.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1145. Weld23.Part0 = Part19
  1146. Accessory24.Name = "moonWings"
  1147. Accessory24.Parent = LocalScript12
  1148. Accessory24.AttachmentPos = Vector3.new(0, 1.29999995, -1.10000002)
  1149. Part25.Name = "Handle"
  1150. Part25.Parent = Accessory24
  1151. Part25.CanCollide = false
  1152. Part25.Locked = true
  1153. Part25.FormFactor = Enum.FormFactor.Custom
  1154. Part25.Size = Vector3.new(3.80002809, 2.99999952, 1.60000014)
  1155. Part25.CFrame = CFrame.new(4.78408427e-31, 3.70000029, 1.10027242, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  1156. Part25.BottomSurface = Enum.SurfaceType.Smooth
  1157. Part25.TopSurface = Enum.SurfaceType.Smooth
  1158. Part25.Position = Vector3.new(4.78408427e-31, 3.70000029, 1.10027242)
  1159. SpecialMesh26.Parent = Part25
  1160. SpecialMesh26.MeshId = "rbxassetid://147982651"
  1161. SpecialMesh26.Scale = Vector3.new(4, 4, 4)
  1162. SpecialMesh26.TextureId = "rbxassetid://845817136"
  1163. SpecialMesh26.MeshType = Enum.MeshType.FileMesh
  1164. SpecialMesh26.Scale = Vector3.new(4, 4, 4)
  1165. Attachment27.Name = "BodyBackAttachment"
  1166. Attachment27.Parent = Part25
  1167. Attachment27.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  1168. Attachment27.CFrame = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1169. Attachment27.Position = Vector3.new(0, -0.700000286, -0.600272417)
  1170. Attachment27.Axis = Vector3.new(1, 6.83440315e-31, 0)
  1171. Attachment27.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  1172. Weld28.Name = "AccessoryWeld"
  1173. Weld28.Parent = Part25
  1174. Weld28.C0 = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1175. Weld28.C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1176. Weld28.Part0 = Part25
  1177. Accessory29.Name = "Gem"
  1178. Accessory29.Parent = LocalScript12
  1179. Accessory29.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1180. Part30.Name = "Handle"
  1181. Part30.Parent = Accessory29
  1182. Part30.BrickColor = BrickColor.new("Tr. Lg blue")
  1183. Part30.Rotation = Vector3.new(-179.709991, 46.3799973, 179.789993)
  1184. Part30.CanCollide = false
  1185. Part30.Locked = true
  1186. Part30.FormFactor = Enum.FormFactor.Symmetric
  1187. Part30.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1188. Part30.CFrame = CFrame.new(-99.2781677, 3.28853726, -22.2383442, -0.689900041, -0.00251038512, 0.723899245, -1.19641973e-05, 0.99999404, 0.00345644192, -0.723903596, 0.00237593846, -0.689895928)
  1189. Part30.BottomSurface = Enum.SurfaceType.Smooth
  1190. Part30.TopSurface = Enum.SurfaceType.Smooth
  1191. Part30.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1192. Part30.Position = Vector3.new(-99.2781677, 3.28853726, -22.2383442)
  1193. Part30.Orientation = Vector3.new(-0.199999988, 133.619995, 0)
  1194. Part30.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1195. SpecialMesh31.Parent = Part30
  1196. SpecialMesh31.MeshId = "rbxassetid://432748939"
  1197. SpecialMesh31.Offset = Vector3.new(-0.200000003, 0.0799999982, -0.5)
  1198. SpecialMesh31.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1199. SpecialMesh31.MeshType = Enum.MeshType.FileMesh
  1200. SpecialMesh31.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1201. Attachment32.Name = "HairAttachment"
  1202. Attachment32.Parent = Part30
  1203. Attachment32.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1204. Attachment32.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)
  1205. Attachment32.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1206. Attachment32.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1207. Attachment32.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1208. Vector3Value33.Name = "OriginalSize"
  1209. Vector3Value33.Parent = Part30
  1210. Vector3Value33.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1211. Weld34.Name = "AccessoryWeld"
  1212. Weld34.Parent = Part30
  1213. Weld34.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)
  1214. Weld34.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1215. Weld34.Part0 = Part30
  1216. Weld35.Name = "AccessoryWeld"
  1217. Weld35.Parent = Part30
  1218. Weld35.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)
  1219. Weld35.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1220. Weld35.Part0 = Part30
  1221. LocalScript36.Name = "Aqua3"
  1222. LocalScript36.Parent = mas
  1223. table.insert(cors,sandbox(LocalScript36,function()
  1224. local mouse = game.Players.LocalPlayer:GetMouse()
  1225. local Character = game.Players.LocalPlayer.Character
  1226. local aa = false
  1227. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1228. local AquaLight = script.ForceField:Clone()
  1229. AquaLight.Parent = game.Players.LocalPlayer.Character
  1230. local hum = Character:findFirstChild("Humanoid")
  1231. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  1232. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  1233. local Sound = script.AquaSound:Clone()
  1234. Sound.Parent = game.Workspace
  1235. Sound:Play()
  1236. end
  1237.  
  1238. function ParticlesDestroy() -- To remove the Particles again.
  1239. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1240. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  1241. game.Players.LocalPlayer.Character.ForceField:Destroy()
  1242. end
  1243. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaSound") then -- Name TestParticles to your Particles name.
  1244. game.Players.LocalPlayer.Character.Head.AquaSound:Destroy()
  1245. end
  1246. end
  1247. end
  1248.  
  1249. function particles(a,b) -- Key Function, just don't touch this.
  1250. if a == ("k") then
  1251. if aa == true then
  1252. aa = false
  1253. ParticlesDestroy()
  1254. else
  1255.  
  1256. if aa == false then
  1257. aa = true
  1258. Particles()
  1259. end
  1260. end
  1261. end
  1262. end
  1263.  
  1264.  
  1265. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1266.  
  1267. end))
  1268. ForceField37.Parent = LocalScript36
  1269. Sound38.Name = "AquaSound"
  1270. Sound38.Parent = LocalScript36
  1271. Sound38.SoundId = "rbxassetid://1507235987"
  1272. Sound38.Volume = 5
  1273. LocalScript39.Name = "Aqua4"
  1274. LocalScript39.Parent = mas
  1275. table.insert(cors,sandbox(LocalScript39,function()
  1276. local mouse = game.Players.LocalPlayer:GetMouse()
  1277. local Character = game.Players.LocalPlayer.Character
  1278. local aa = false
  1279. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1280. local AquaLight = Instance.new("Explosion")
  1281. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1282. AquaLight.BlastRadius = 30
  1283. AquaLight.DestroyJointRadiusPercent = 99999999999999
  1284. AquaLight.Position = Character.Torso.Position
  1285. local hum = Character:findFirstChild("Humanoid")
  1286. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  1287. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  1288. end
  1289.  
  1290. function ParticlesDestroy() -- To remove the Particles again.
  1291. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1292. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  1293. game.Players.LocalPlayer.Character.ForceField:Destroy()
  1294. end
  1295. end
  1296. end
  1297.  
  1298. function particles(a,b) -- Key Function, just don't touch this.
  1299. if a == ("x") then
  1300. if aa == true then
  1301. aa = false
  1302. --ParticlesDestroy()
  1303. else
  1304.  
  1305. if aa == false then
  1306. aa = true
  1307. Particles()
  1308. end
  1309. end
  1310. end
  1311. end
  1312.  
  1313.  
  1314. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1315.  
  1316. end))
  1317. ForceField40.Parent = LocalScript39
  1318. LocalScript41.Name = "Aqua5"
  1319. LocalScript41.Parent = mas
  1320. table.insert(cors,sandbox(LocalScript41,function()
  1321. scale = 0.75
  1322. -------------------------------
  1323. p =game.Players.LocalPlayer
  1324. c =p.Character
  1325. ---------------------------------
  1326. p.CharacterAdded:connect(function()
  1327. wait(1)
  1328. p.CanLoadCharacterAppearance = false
  1329. ------------------------------------------------------PHYSICAL SCALING
  1330. local joints = c.Torso:GetChildren()
  1331. table.insert(joints,c.HumanoidRootPart.RootJoint)
  1332. local jointCache = {}
  1333.  
  1334. for i = 1,#joints do
  1335. if joints[i]:IsA("Motor6D") then
  1336. joints[i].C0 = CFrame.new(joints[i].C0.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  1337. joints[i].C1 = CFrame.new(joints[i].C1.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  1338.  
  1339. table.insert(jointCache, {joints[i]:Clone(),joints[i].Parent})
  1340. joints[i]:Remove()
  1341. end
  1342. end
  1343.  
  1344. local children = c:GetChildren()
  1345. for i = 1,#children do
  1346. if children[i]:IsA("BasePart") then
  1347. children[i].FormFactor = "Custom"
  1348. children[i].Size = children[i].Size * scale
  1349. end
  1350. end
  1351.  
  1352. for i = 1,#jointCache do
  1353. jointCache[i][1].Parent = jointCache[i][2]
  1354. end
  1355.  
  1356. --------------------------------------------------------VALUE SCALING
  1357. c.Humanoid.WalkSpeed = c.Humanoid.WalkSpeed * scale
  1358. c.Humanoid.JumpPower = c.Humanoid.JumpPower * scale/2
  1359.  
  1360. end)
  1361.  
  1362. end))
  1363. LocalScript42.Name = "Aqua6"
  1364. LocalScript42.Parent = mas
  1365. table.insert(cors,sandbox(LocalScript42,function()
  1366. local mouse = game.Players.LocalPlayer:GetMouse()
  1367. local Character = game.Players.LocalPlayer.Character
  1368. local aa = false
  1369. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1370. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1371. if v:IsA("BasePart") then
  1372. local Sound = script.FatSound:Clone()
  1373. Sound.Parent = game.Players.LocalPlayer.Character.Head
  1374. local AquaLight = script.AquaLight:Clone()
  1375. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1376. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  1377. Particles.Parent = v
  1378. Sound:Play()
  1379. end
  1380. end
  1381. end
  1382.  
  1383. function ParticlesDestroy() -- To remove the Particles again.
  1384. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1385. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  1386. v.TestParticles.Enabled = false
  1387. v.TestParticles:Destroy()
  1388. end
  1389. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  1390. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  1391. end
  1392. end
  1393. end
  1394.  
  1395. function particles(a,b) -- Key Function, just don't touch this.
  1396. if a == ("z") then
  1397. if aa == true then
  1398. aa = false
  1399. ParticlesDestroy()
  1400. else
  1401.  
  1402. if aa == false then
  1403. aa = true
  1404. Particles()
  1405. end
  1406. end
  1407. end
  1408. end
  1409.  
  1410.  
  1411. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1412.  
  1413. end))
  1414. Sound43.Name = "FatSound"
  1415. Sound43.Parent = LocalScript42
  1416. Sound43.SoundId = "rbxassetid://783504787"
  1417. Sound43.Volume = 2
  1418. ParticleEmitter44.Name = "TestParticles"
  1419. ParticleEmitter44.Parent = LocalScript42
  1420. ParticleEmitter44.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1421. ParticleEmitter44.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1422. ParticleEmitter44.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1423. ParticleEmitter44.LightEmission = 2
  1424. ParticleEmitter44.Texture = "rbxassetid://337127439"
  1425. ParticleEmitter44.Lifetime = NumberRange.new(4, 4)
  1426. ParticleEmitter44.Speed = NumberRange.new(4, 4)
  1427. ParticleEmitter44.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1428. PointLight45.Name = "AquaLight"
  1429. PointLight45.Parent = LocalScript42
  1430. PointLight45.Color = Color3.new(0, 0.984314, 1)
  1431. PointLight45.Brightness = 5
  1432. PointLight45.Range = 5
  1433. PointLight45.Color = Color3.new(0, 0.984314, 1)
  1434. LocalScript46.Name = "Aqua7"
  1435. LocalScript46.Parent = mas
  1436. table.insert(cors,sandbox(LocalScript46,function()
  1437. local mouse = game.Players.LocalPlayer:GetMouse()
  1438. local Character = game.Players.LocalPlayer.Character
  1439. local aa = false
  1440. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1441. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1442. if v:IsA("BasePart") then
  1443. local Sound = script.StomachSound:Clone()
  1444. Sound.Parent = game.Players.LocalPlayer.Character.Head
  1445. local AquaLight = script.AquaLight:Clone()
  1446. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1447. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  1448. Particles.Parent = v
  1449. Sound:Play()
  1450. end
  1451. end
  1452. end
  1453.  
  1454. function ParticlesDestroy() -- To remove the Particles again.
  1455. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1456. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  1457. v.TestParticles.Enabled = false
  1458. v.TestParticles:Destroy()
  1459. end
  1460. if game.Players.LocalPlayer.Character.Head:FindFirstChild("StomachSound") then -- Name TestParticles to your Particles name.
  1461. game.Players.LocalPlayer.Character.Head.StomachSound:Destroy()
  1462. end
  1463. end
  1464. end
  1465.  
  1466. function particles(a,b) -- Key Function, just don't touch this.
  1467. if a == ("u") then
  1468. if aa == true then
  1469. aa = false
  1470. ParticlesDestroy()
  1471. else
  1472.  
  1473. if aa == false then
  1474. aa = true
  1475. Particles()
  1476. end
  1477. end
  1478. end
  1479. end
  1480.  
  1481.  
  1482. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1483.  
  1484. end))
  1485. Sound47.Name = "StomachSound"
  1486. Sound47.Parent = LocalScript46
  1487. Sound47.SoundId = "rbxassetid://1509410219"
  1488. Sound47.Volume = 2
  1489. ParticleEmitter48.Name = "TestParticles"
  1490. ParticleEmitter48.Parent = LocalScript46
  1491. ParticleEmitter48.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1492. ParticleEmitter48.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1493. ParticleEmitter48.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1494. ParticleEmitter48.LightEmission = 2
  1495. ParticleEmitter48.Texture = "rbxassetid://337127439"
  1496. ParticleEmitter48.Lifetime = NumberRange.new(4, 4)
  1497. ParticleEmitter48.Speed = NumberRange.new(4, 4)
  1498. ParticleEmitter48.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1499. PointLight49.Name = "AquaLight"
  1500. PointLight49.Parent = LocalScript46
  1501. PointLight49.Color = Color3.new(0, 0.984314, 1)
  1502. PointLight49.Brightness = 5
  1503. PointLight49.Range = 5
  1504. PointLight49.Color = Color3.new(0, 0.984314, 1)
  1505. for i,v in pairs(mas:GetChildren()) do
  1506. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1507. pcall(function() v:MakeJoints() end)
  1508. end
  1509. mas:Destroy()
  1510. for i,v in pairs(cors) do
  1511. spawn(function()
  1512. pcall(v)
  1513. end)
  1514. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement