Advertisement
MyNewName

Untitled

Mar 14th, 2018
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.58 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(partz1,partz2,parent)
  563. local p1 = Instance.new("ObjectValue")
  564. p1.Value = partz1
  565. p1.Name = "Partz1"
  566. local p2 = Instance.new("ObjectValue")
  567. p2.Value = partz2
  568. p2.Name = "Partz2"
  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 (partz2==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. if script.Disabled == false then
  768. local check = script.Partz1
  769. local partz1 = script.Partz1.Value
  770. local partz2 = script.Partz2.Value
  771. local parent = script.Par.Value
  772. local color = script.Color
  773. local line = Instance.new("Part")
  774. line.TopSurface = 0
  775. line.BottomSurface = 0
  776. line.Reflectance = .5
  777. line.Name = "Laser"
  778. line.Locked = true
  779. line.CanCollide = false
  780. line.Anchored = true
  781. line.formFactor = 0
  782. line.Size = Vector3.new(0.3,0.3,1)
  783. local mesh = Instance.new("BlockMesh")
  784. mesh.Parent = line
  785. while true do
  786. if (check.Value==nil) then break end
  787. if (partz1==nil or partz2==nil or parent==nil) then break end
  788. if (partz1.Parent==nil or partz2.Parent==nil) then break end
  789. if (parent.Parent==nil) then break end
  790. local lv = CFrame.new(partz1.Position,partz2.Position)
  791. local dist = (partz1.Position-partz2.Position).magnitude
  792. line.Parent = parent
  793. line.Material = "Neon"
  794. line.BrickColor = color.Value.BrickColor
  795. line.Reflectance = color.Value.Reflectance
  796. line.Transparency = "0.2"
  797. line.CFrame = CFrame.new(partz1.Position+lv.lookVector*dist/2)
  798. line.CFrame = CFrame.new(line.Position,partz2.Position)
  799. mesh.Scale = Vector3.new(.25,.25,dist)
  800. wait()
  801. end
  802. line:remove()
  803. script:remove()
  804. end
  805. end))
  806. Part6.Name = "Shoot"
  807. Part6.Parent = Tool0
  808. Part6.Material = Enum.Material.Neon
  809. Part6.BrickColor = BrickColor.new("Toothpaste")
  810. Part6.Transparency = 0.5
  811. Part6.Rotation = Vector3.new(-90, -0.00999999978, -90)
  812. Part6.CanCollide = false
  813. Part6.FormFactor = Enum.FormFactor.Custom
  814. Part6.Shape = Enum.PartType.Cylinder
  815. Part6.Size = Vector3.new(0.0899999961, 0.191250086, 0.224999964)
  816. 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)
  817. Part6.BottomSurface = Enum.SurfaceType.Smooth
  818. Part6.TopSurface = Enum.SurfaceType.Smooth
  819. Part6.Color = Color3.new(0, 1, 1)
  820. Part6.Position = Vector3.new(118.000183, 39.6357117, -41.878067)
  821. Part6.Orientation = Vector3.new(-90, -90, 0)
  822. Part6.Color = Color3.new(0, 1, 1)
  823. LocalScript7.Name = "Aqua0"
  824. LocalScript7.Parent = mas
  825. table.insert(cors,sandbox(LocalScript7,function()
  826. --[[ Script By reeces44 ]]--
  827. --[[ Thanks For Using ]]--
  828. ------------------------------------
  829. ----------------------------
  830. --------------------
  831.  
  832. ------------------------------------
  833. ------------------------------------
  834. --[[ Instructions ]]--
  835. ------------------------------------
  836. --[[
  837. Press F to start flying
  838. When Flying holding W will speed up.
  839. When Flying Holding S will speed down.
  840.  
  841. Put in StarterPack for everyone to fly.
  842. Alternatively, place the script in any players
  843. backpack to allow them to fly.
  844.  
  845. Have Fun,
  846. reeces44.
  847. --]]
  848. -------------------------------------
  849.  
  850. local player = game.Players.LocalPlayer
  851. local mouse = player:GetMouse()
  852.  
  853. function GetMassRecursive(p)
  854. local mass = 0
  855. for i,v in pairs(p:GetChildren())do
  856. if #v:GetChildren() > 0 then
  857. mass = mass + GetMassRecursive(v)
  858. end
  859. if v:IsA("Part") then
  860. print(v.Name)
  861. mass = mass + v:GetMass()
  862. end
  863. end
  864. return mass
  865. end
  866.  
  867. local wDown = false
  868. local sDown = false
  869. local isFlying = false
  870. local speed = 10
  871. mouse.KeyDown:connect(function(key)
  872. if key == "f" then
  873. if isFlying then
  874. speed = 0
  875. wait()
  876. player.Character.Torso["Anti-Grav"]:Destroy()
  877. player.Character.Torso["FlyingVelocity"]:Destroy()
  878. player.Character.Humanoid.PlatformStand = false
  879. isFlying = false
  880. else
  881. speed = 10
  882. local f = Instance.new("BodyForce")
  883. f.Name = "Anti-Grav"
  884. f.Force = Vector3.new(0,196.2,0) * (GetMassRecursive(player.Character))
  885. f.Parent = player.Character.Torso
  886. local v = Instance.new("BodyVelocity")
  887. v.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * 10
  888. v.P = 100
  889. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  890. v.Name = "FlyingVelocity"
  891. v.Parent = player.Character.Torso
  892. player.Character.Humanoid.PlatformStand = true
  893. isFlying = true
  894. end
  895. end
  896. if key == "w" then
  897. wDown = true
  898. end
  899. if key == "s" then
  900. sDown = true
  901. end
  902. end)
  903. mouse.KeyUp:connect(function(key)
  904. if key == "w" then
  905. wDown = false
  906. end
  907. if key == "s" then
  908. sDown = false
  909. end
  910. end)
  911. local MAX_SPEED = 200
  912. local MIN_SPEED = 0
  913. spawn(function()
  914. while player.Character.Humanoid.Health > 0 do
  915. if isFlying then
  916. local r = 1+(speed/500)
  917. player.Character:SetPrimaryPartCFrame(CFrame.new(player.Character.PrimaryPart.Position,mouse.Hit.p)*CFrame.Angles(math.pi/r,math.pi,math.pi))
  918. player.Character.Torso.FlyingVelocity.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * speed
  919. if wDown then
  920. speed = speed + 5
  921. if speed > MAX_SPEED then
  922. speed = MAX_SPEED
  923. end
  924. elseif sDown then
  925. speed = speed - 5
  926. if speed < MIN_SPEED then
  927. speed = MIN_SPEED
  928. end
  929. end
  930. end
  931.  
  932. game:GetService("RunService").RenderStepped:wait()
  933. end
  934. end)
  935. end))
  936. LocalScript8.Name = "Aqua1"
  937. LocalScript8.Parent = mas
  938. table.insert(cors,sandbox(LocalScript8,function()
  939. local mouse = game.Players.LocalPlayer:GetMouse()
  940. local Character = game.Players.LocalPlayer.Character
  941. local aa = false
  942. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  943. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  944. if v:IsA("BasePart") then
  945. local Sound = script.FatSound:Clone()
  946. Sound.Parent = game.Players.LocalPlayer.Character.Head
  947. local AquaLight = script.AquaLight:Clone()
  948. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  949. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  950. Particles.Parent = v
  951. Sound:Play()
  952. end
  953. end
  954. end
  955.  
  956. function ParticlesDestroy() -- To remove the Particles again.
  957. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  958. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  959. v.TestParticles.Enabled = false
  960. v.TestParticles:Destroy()
  961. end
  962. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  963. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  964. end
  965. end
  966. end
  967.  
  968. function particles(a,b) -- Key Function, just don't touch this.
  969. if a == ("p") then
  970. if aa == true then
  971. aa = false
  972. ParticlesDestroy()
  973. else
  974.  
  975. if aa == false then
  976. aa = true
  977. Particles()
  978. end
  979. end
  980. end
  981. end
  982.  
  983.  
  984. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  985.  
  986. end))
  987. Sound9.Name = "FatSound"
  988. Sound9.Parent = LocalScript8
  989. Sound9.SoundId = "rbxassetid://782722084"
  990. Sound9.Volume = 2
  991. ParticleEmitter10.Name = "TestParticles"
  992. ParticleEmitter10.Parent = LocalScript8
  993. ParticleEmitter10.Transparency = NumberSequence.new(1,0.63749998807907,1)
  994. ParticleEmitter10.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  995. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  996. ParticleEmitter10.LightEmission = 2
  997. ParticleEmitter10.Texture = "rbxassetid://337127439"
  998. ParticleEmitter10.Lifetime = NumberRange.new(4, 4)
  999. ParticleEmitter10.Speed = NumberRange.new(4, 4)
  1000. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1001. PointLight11.Name = "AquaLight"
  1002. PointLight11.Parent = LocalScript8
  1003. PointLight11.Color = Color3.new(0, 0.984314, 1)
  1004. PointLight11.Brightness = 5
  1005. PointLight11.Range = 5
  1006. PointLight11.Color = Color3.new(0, 0.984314, 1)
  1007. LocalScript12.Name = "Aqua2"
  1008. LocalScript12.Parent = mas
  1009. table.insert(cors,sandbox(LocalScript12,function()
  1010. local mouse = game.Players.LocalPlayer:GetMouse()
  1011. local Character = game.Players.LocalPlayer.Character
  1012. local aa = false
  1013. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1014. local AquaLight = script.AquaLight:Clone()
  1015. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1016. local Particles = script.BillboardGui:Clone() -- Name TestParticles to your Particles name.
  1017. Particles.Parent = game.Players.LocalPlayer.Character.Head
  1018. end
  1019. function ColorHair()
  1020. if Character:findFirstChild("BoyAnimeHair_Blue") == nil and Character:findFirstChild("moonWings") == nil then
  1021. local hair = script.BoyAnimeHair_Blue:Clone()
  1022. hair.Parent = Character
  1023. local wings = script.moonWings:Clone()
  1024. wings.Parent = Character
  1025. local gem = script.Gem:Clone()
  1026. gem.Parent = Character
  1027. end
  1028. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1029. if Character:findFirstChild("BoyAnimeHair_Blue") then
  1030. Character.BoyAnimeHair_Blue.Handle.Mesh.TextureId = ""
  1031. Character.BoyAnimeHair_Blue.Handle.Color = Color3.fromRGB(0, 178, 240)
  1032. end
  1033. if Character:findFirstChild("moonWings") then
  1034. Character.moonWings.Handle.Mesh.TextureId = ""
  1035. Character.moonWings.Handle.Color = Color3.fromRGB(89, 178, 240)
  1036. Character.moonWings.Handle.Mesh.Offset = Vector3.new(0, 0.5, 0.5)
  1037. Character.moonWings.Handle.Mesh.Scale = Vector3.new(7,7,7)
  1038. Character.moonWings.Handle.Transparency = 0.4
  1039. end
  1040. end
  1041. end
  1042. function ParticlesDestroy() -- To remove the Particles again.
  1043. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1044. if game.Players.LocalPlayer.Character.Head:FindFirstChild("BillboardGui") then -- Name TestParticles to your Particles name.
  1045. game.Players.LocalPlayer.Character.Head.BillboardGui:Destroy()
  1046. end
  1047. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaLight") then -- Name TestParticles to your Particles name.
  1048. game.Players.LocalPlayer.Character.Head.AquaLight:Destroy()
  1049. end
  1050. end
  1051. end
  1052.  
  1053. function particles(a,b) -- Key Function, just don't touch this.
  1054. if a == ("m") then
  1055. if aa == true then
  1056. aa = false
  1057. ParticlesDestroy()
  1058. else
  1059.  
  1060. if aa == false then
  1061. aa = true
  1062. ColorHair()
  1063. Particles()
  1064. end
  1065. end
  1066. end
  1067. end
  1068.  
  1069.  
  1070. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1071.  
  1072. end))
  1073. Sound13.Name = "FatSound"
  1074. Sound13.Parent = LocalScript12
  1075. Sound13.SoundId = "rbxassetid://782722084"
  1076. Sound13.Volume = 2
  1077. ParticleEmitter14.Name = "TestParticles"
  1078. ParticleEmitter14.Parent = LocalScript12
  1079. ParticleEmitter14.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1080. ParticleEmitter14.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1081. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1082. ParticleEmitter14.LightEmission = 2
  1083. ParticleEmitter14.Texture = "rbxassetid://337127439"
  1084. ParticleEmitter14.Lifetime = NumberRange.new(4, 4)
  1085. ParticleEmitter14.Speed = NumberRange.new(4, 4)
  1086. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1087. PointLight15.Name = "AquaLight"
  1088. PointLight15.Parent = LocalScript12
  1089. PointLight15.Color = Color3.new(0, 0.984314, 1)
  1090. PointLight15.Brightness = 5
  1091. PointLight15.Range = 5
  1092. PointLight15.Color = Color3.new(0, 0.984314, 1)
  1093. BillboardGui16.Parent = LocalScript12
  1094. BillboardGui16.Size = UDim2.new(40, 40, 1, 1)
  1095. BillboardGui16.Active = true
  1096. BillboardGui16.StudsOffset = Vector3.new(0, 3, 0)
  1097. TextBox17.Name = "Text"
  1098. TextBox17.Parent = BillboardGui16
  1099. TextBox17.Transparency = 1
  1100. TextBox17.Size = UDim2.new(1, 1, 1, 1)
  1101. TextBox17.Text = "Aquamarine"
  1102. TextBox17.BackgroundColor3 = Color3.new(0, 0, 0)
  1103. TextBox17.BackgroundTransparency = 1
  1104. TextBox17.BorderColor3 = Color3.new(0, 0, 0)
  1105. TextBox17.ClearTextOnFocus = false
  1106. TextBox17.MultiLine = true
  1107. TextBox17.Font = Enum.Font.Fantasy
  1108. TextBox17.FontSize = Enum.FontSize.Size14
  1109. TextBox17.TextColor3 = Color3.new(0.164706, 0.960784, 1)
  1110. TextBox17.TextScaled = true
  1111. TextBox17.TextStrokeColor3 = Color3.new(0.0784314, 0.141176, 0.427451)
  1112. TextBox17.TextStrokeTransparency = 0
  1113. TextBox17.TextWrapped = true
  1114. TextBox17.TextYAlignment = Enum.TextYAlignment.Top
  1115. Accessory18.Name = "BoyAnimeHair_Blue"
  1116. Accessory18.Parent = LocalScript12
  1117. Accessory18.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1118. Part19.Name = "Handle"
  1119. Part19.Parent = Accessory18
  1120. Part19.CanCollide = false
  1121. Part19.Locked = true
  1122. Part19.FormFactor = Enum.FormFactor.Symmetric
  1123. Part19.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1124. 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)
  1125. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1126. Part19.TopSurface = Enum.SurfaceType.Smooth
  1127. Part19.Position = Vector3.new(0.0599999949, 4.44000006, 0.100272246)
  1128. SpecialMesh20.Parent = Part19
  1129. SpecialMesh20.MeshId = "http://www.roblox.com/asset/?id=398987591 "
  1130. SpecialMesh20.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1131. SpecialMesh20.TextureId = "http://www.roblox.com/asset/?id=398618334"
  1132. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  1133. SpecialMesh20.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1134. Attachment21.Name = "HairAttachment"
  1135. Attachment21.Parent = Part19
  1136. Attachment21.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1137. 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)
  1138. Attachment21.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1139. Attachment21.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1140. Attachment21.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1141. Vector3Value22.Name = "OriginalSize"
  1142. Vector3Value22.Parent = Part19
  1143. Vector3Value22.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1144. Weld23.Name = "AccessoryWeld"
  1145. Weld23.Parent = Part19
  1146. 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)
  1147. Weld23.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1148. Weld23.Part0 = Part19
  1149. Accessory24.Name = "moonWings"
  1150. Accessory24.Parent = LocalScript12
  1151. Accessory24.AttachmentPos = Vector3.new(0, 1.29999995, -1.10000002)
  1152. Part25.Name = "Handle"
  1153. Part25.Parent = Accessory24
  1154. Part25.CanCollide = false
  1155. Part25.Locked = true
  1156. Part25.FormFactor = Enum.FormFactor.Custom
  1157. Part25.Size = Vector3.new(3.80002809, 2.99999952, 1.60000014)
  1158. Part25.CFrame = CFrame.new(4.78408427e-31, 3.70000029, 1.10027242, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  1159. Part25.BottomSurface = Enum.SurfaceType.Smooth
  1160. Part25.TopSurface = Enum.SurfaceType.Smooth
  1161. Part25.Position = Vector3.new(4.78408427e-31, 3.70000029, 1.10027242)
  1162. SpecialMesh26.Parent = Part25
  1163. SpecialMesh26.MeshId = "rbxassetid://147982651"
  1164. SpecialMesh26.Scale = Vector3.new(4, 4, 4)
  1165. SpecialMesh26.TextureId = "rbxassetid://845817136"
  1166. SpecialMesh26.MeshType = Enum.MeshType.FileMesh
  1167. SpecialMesh26.Scale = Vector3.new(4, 4, 4)
  1168. Attachment27.Name = "BodyBackAttachment"
  1169. Attachment27.Parent = Part25
  1170. Attachment27.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  1171. Attachment27.CFrame = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1172. Attachment27.Position = Vector3.new(0, -0.700000286, -0.600272417)
  1173. Attachment27.Axis = Vector3.new(1, 6.83440315e-31, 0)
  1174. Attachment27.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  1175. Weld28.Name = "AccessoryWeld"
  1176. Weld28.Parent = Part25
  1177. Weld28.C0 = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1178. Weld28.C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1179. Weld28.Part0 = Part25
  1180. Accessory29.Name = "Gem"
  1181. Accessory29.Parent = LocalScript12
  1182. Accessory29.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1183. Part30.Name = "Handle"
  1184. Part30.Parent = Accessory29
  1185. Part30.BrickColor = BrickColor.new("Tr. Lg blue")
  1186. Part30.Rotation = Vector3.new(-179.709991, 46.3799973, 179.789993)
  1187. Part30.CanCollide = false
  1188. Part30.Locked = true
  1189. Part30.FormFactor = Enum.FormFactor.Symmetric
  1190. Part30.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1191. 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)
  1192. Part30.BottomSurface = Enum.SurfaceType.Smooth
  1193. Part30.TopSurface = Enum.SurfaceType.Smooth
  1194. Part30.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1195. Part30.Position = Vector3.new(-99.2781677, 3.28853726, -22.2383442)
  1196. Part30.Orientation = Vector3.new(-0.199999988, 133.619995, 0)
  1197. Part30.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1198. SpecialMesh31.Parent = Part30
  1199. SpecialMesh31.MeshId = "rbxassetid://432748939"
  1200. SpecialMesh31.Offset = Vector3.new(-0.200000003, 0.0799999982, -0.5)
  1201. SpecialMesh31.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1202. SpecialMesh31.MeshType = Enum.MeshType.FileMesh
  1203. SpecialMesh31.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1204. Attachment32.Name = "HairAttachment"
  1205. Attachment32.Parent = Part30
  1206. Attachment32.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1207. 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)
  1208. Attachment32.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1209. Attachment32.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1210. Attachment32.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1211. Vector3Value33.Name = "OriginalSize"
  1212. Vector3Value33.Parent = Part30
  1213. Vector3Value33.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1214. Weld34.Name = "AccessoryWeld"
  1215. Weld34.Parent = Part30
  1216. 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)
  1217. Weld34.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1218. Weld34.Part0 = Part30
  1219. Weld35.Name = "AccessoryWeld"
  1220. Weld35.Parent = Part30
  1221. 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)
  1222. Weld35.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1223. Weld35.Part0 = Part30
  1224. LocalScript36.Name = "Aqua3"
  1225. LocalScript36.Parent = mas
  1226. table.insert(cors,sandbox(LocalScript36,function()
  1227. local mouse = game.Players.LocalPlayer:GetMouse()
  1228. local Character = game.Players.LocalPlayer.Character
  1229. local aa = false
  1230. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1231. local AquaLight = script.ForceField:Clone()
  1232. AquaLight.Parent = game.Players.LocalPlayer.Character
  1233. local hum = Character:findFirstChild("Humanoid")
  1234. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  1235. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  1236. local Sound = script.AquaSound:Clone()
  1237. Sound.Parent = game.Workspace
  1238. Sound:Play()
  1239. end
  1240.  
  1241. function ParticlesDestroy() -- To remove the Particles again.
  1242. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1243. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  1244. game.Players.LocalPlayer.Character.ForceField:Destroy()
  1245. end
  1246. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaSound") then -- Name TestParticles to your Particles name.
  1247. game.Players.LocalPlayer.Character.Head.AquaSound:Destroy()
  1248. end
  1249. end
  1250. end
  1251.  
  1252. function particles(a,b) -- Key Function, just don't touch this.
  1253. if a == ("k") then
  1254. if aa == true then
  1255. aa = false
  1256. ParticlesDestroy()
  1257. else
  1258.  
  1259. if aa == false then
  1260. aa = true
  1261. Particles()
  1262. end
  1263. end
  1264. end
  1265. end
  1266.  
  1267.  
  1268. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1269.  
  1270. end))
  1271. ForceField37.Parent = LocalScript36
  1272. Sound38.Name = "AquaSound"
  1273. Sound38.Parent = LocalScript36
  1274. Sound38.SoundId = "rbxassetid://1507235987"
  1275. Sound38.Volume = 5
  1276. LocalScript39.Name = "Aqua4"
  1277. LocalScript39.Parent = mas
  1278. table.insert(cors,sandbox(LocalScript39,function()
  1279. local mouse = game.Players.LocalPlayer:GetMouse()
  1280. local Character = game.Players.LocalPlayer.Character
  1281. local aa = false
  1282. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1283. local AquaLight = Instance.new("Explosion")
  1284. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1285. AquaLight.BlastRadius = 30
  1286. AquaLight.DestroyJointRadiusPercent = 99999999999999
  1287. AquaLight.Position = Character.Torso.Position
  1288. local hum = Character:findFirstChild("Humanoid")
  1289. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  1290. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  1291. end
  1292.  
  1293. function ParticlesDestroy() -- To remove the Particles again.
  1294. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1295. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  1296. game.Players.LocalPlayer.Character.ForceField:Destroy()
  1297. end
  1298. end
  1299. end
  1300.  
  1301. function particles(a,b) -- Key Function, just don't touch this.
  1302. if a == ("x") then
  1303. if aa == true then
  1304. aa = false
  1305. --ParticlesDestroy()
  1306. else
  1307.  
  1308. if aa == false then
  1309. aa = true
  1310. Particles()
  1311. end
  1312. end
  1313. end
  1314. end
  1315.  
  1316.  
  1317. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1318.  
  1319. end))
  1320. ForceField40.Parent = LocalScript39
  1321. LocalScript41.Name = "Aqua5"
  1322. LocalScript41.Parent = mas
  1323. table.insert(cors,sandbox(LocalScript41,function()
  1324. scale = 0.75
  1325. -------------------------------
  1326. p =game.Players.LocalPlayer
  1327. c =p.Character
  1328. ---------------------------------
  1329. p.CharacterAdded:connect(function()
  1330. wait(1)
  1331. p.CanLoadCharacterAppearance = false
  1332. ------------------------------------------------------PHYSICAL SCALING
  1333. local joints = c.Torso:GetChildren()
  1334. table.insert(joints,c.HumanoidRootPart.RootJoint)
  1335. local jointCache = {}
  1336.  
  1337. for i = 1,#joints do
  1338. if joints[i]:IsA("Motor6D") then
  1339. joints[i].C0 = CFrame.new(joints[i].C0.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  1340. joints[i].C1 = CFrame.new(joints[i].C1.p * scale) * CFrame.Angles(joints[i].C0:toEulerAnglesXYZ())
  1341.  
  1342. table.insert(jointCache, {joints[i]:Clone(),joints[i].Parent})
  1343. joints[i]:Remove()
  1344. end
  1345. end
  1346.  
  1347. local children = c:GetChildren()
  1348. for i = 1,#children do
  1349. if children[i]:IsA("BasePart") then
  1350. children[i].FormFactor = "Custom"
  1351. children[i].Size = children[i].Size * scale
  1352. end
  1353. end
  1354.  
  1355. for i = 1,#jointCache do
  1356. jointCache[i][1].Parent = jointCache[i][2]
  1357. end
  1358.  
  1359. --------------------------------------------------------VALUE SCALING
  1360. c.Humanoid.WalkSpeed = c.Humanoid.WalkSpeed * scale
  1361. c.Humanoid.JumpPower = c.Humanoid.JumpPower * scale/2
  1362.  
  1363. end)
  1364.  
  1365. end))
  1366. LocalScript42.Name = "Aqua6"
  1367. LocalScript42.Parent = mas
  1368. table.insert(cors,sandbox(LocalScript42,function()
  1369. local mouse = game.Players.LocalPlayer:GetMouse()
  1370. local Character = game.Players.LocalPlayer.Character
  1371. local aa = false
  1372. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1373. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1374. if v:IsA("BasePart") then
  1375. local Sound = script.FatSound:Clone()
  1376. Sound.Parent = game.Players.LocalPlayer.Character.Head
  1377. local AquaLight = script.AquaLight:Clone()
  1378. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1379. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  1380. Particles.Parent = v
  1381. Sound:Play()
  1382. end
  1383. end
  1384. end
  1385.  
  1386. function ParticlesDestroy() -- To remove the Particles again.
  1387. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1388. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  1389. v.TestParticles.Enabled = false
  1390. v.TestParticles:Destroy()
  1391. end
  1392. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  1393. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  1394. end
  1395. end
  1396. end
  1397.  
  1398. function particles(a,b) -- Key Function, just don't touch this.
  1399. if a == ("z") then
  1400. if aa == true then
  1401. aa = false
  1402. ParticlesDestroy()
  1403. else
  1404.  
  1405. if aa == false then
  1406. aa = true
  1407. Particles()
  1408. end
  1409. end
  1410. end
  1411. end
  1412.  
  1413.  
  1414. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1415.  
  1416. end))
  1417. Sound43.Name = "FatSound"
  1418. Sound43.Parent = LocalScript42
  1419. Sound43.SoundId = "rbxassetid://783504787"
  1420. Sound43.Volume = 2
  1421. ParticleEmitter44.Name = "TestParticles"
  1422. ParticleEmitter44.Parent = LocalScript42
  1423. ParticleEmitter44.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1424. ParticleEmitter44.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1425. ParticleEmitter44.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1426. ParticleEmitter44.LightEmission = 2
  1427. ParticleEmitter44.Texture = "rbxassetid://337127439"
  1428. ParticleEmitter44.Lifetime = NumberRange.new(4, 4)
  1429. ParticleEmitter44.Speed = NumberRange.new(4, 4)
  1430. ParticleEmitter44.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1431. PointLight45.Name = "AquaLight"
  1432. PointLight45.Parent = LocalScript42
  1433. PointLight45.Color = Color3.new(0, 0.984314, 1)
  1434. PointLight45.Brightness = 5
  1435. PointLight45.Range = 5
  1436. PointLight45.Color = Color3.new(0, 0.984314, 1)
  1437. LocalScript46.Name = "Aqua7"
  1438. LocalScript46.Parent = mas
  1439. table.insert(cors,sandbox(LocalScript46,function()
  1440. local mouse = game.Players.LocalPlayer:GetMouse()
  1441. local Character = game.Players.LocalPlayer.Character
  1442. local aa = false
  1443. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1444. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1445. if v:IsA("BasePart") then
  1446. local Sound = script.StomachSound:Clone()
  1447. Sound.Parent = game.Players.LocalPlayer.Character.Head
  1448. local AquaLight = script.AquaLight:Clone()
  1449. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1450. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  1451. Particles.Parent = v
  1452. Sound:Play()
  1453. end
  1454. end
  1455. end
  1456.  
  1457. function ParticlesDestroy() -- To remove the Particles again.
  1458. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1459. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  1460. v.TestParticles.Enabled = false
  1461. v.TestParticles:Destroy()
  1462. end
  1463. if game.Players.LocalPlayer.Character.Head:FindFirstChild("StomachSound") then -- Name TestParticles to your Particles name.
  1464. game.Players.LocalPlayer.Character.Head.StomachSound:Destroy()
  1465. end
  1466. end
  1467. end
  1468.  
  1469. function particles(a,b) -- Key Function, just don't touch this.
  1470. if a == ("u") then
  1471. if aa == true then
  1472. aa = false
  1473. ParticlesDestroy()
  1474. else
  1475.  
  1476. if aa == false then
  1477. aa = true
  1478. Particles()
  1479. end
  1480. end
  1481. end
  1482. end
  1483.  
  1484.  
  1485. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1486.  
  1487. end))
  1488. Sound47.Name = "StomachSound"
  1489. Sound47.Parent = LocalScript46
  1490. Sound47.SoundId = "rbxassetid://1509410219"
  1491. Sound47.Volume = 2
  1492. ParticleEmitter48.Name = "TestParticles"
  1493. ParticleEmitter48.Parent = LocalScript46
  1494. ParticleEmitter48.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1495. ParticleEmitter48.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1496. ParticleEmitter48.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1497. ParticleEmitter48.LightEmission = 2
  1498. ParticleEmitter48.Texture = "rbxassetid://337127439"
  1499. ParticleEmitter48.Lifetime = NumberRange.new(4, 4)
  1500. ParticleEmitter48.Speed = NumberRange.new(4, 4)
  1501. ParticleEmitter48.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1502. PointLight49.Name = "AquaLight"
  1503. PointLight49.Parent = LocalScript46
  1504. PointLight49.Color = Color3.new(0, 0.984314, 1)
  1505. PointLight49.Brightness = 5
  1506. PointLight49.Range = 5
  1507. PointLight49.Color = Color3.new(0, 0.984314, 1)
  1508. for i,v in pairs(mas:GetChildren()) do
  1509. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1510. pcall(function() v:MakeJoints() end)
  1511. end
  1512. mas:Destroy()
  1513. for i,v in pairs(cors) do
  1514. spawn(function()
  1515. pcall(v)
  1516. end)
  1517. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement