Advertisement
MyNewName

Untitled

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