Advertisement
MyNewName

Untitled

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