Advertisement
aikjako

FE gravity gun

Aug 28th, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.50 KB | None | 0 0
  1.  
  2. -- https://www.youtube.com/c/DOXPLOV/ subscribe for more rare scripts
  3.  
  4. function sandbox(var,func)
  5. local env = getfenv(func)
  6. local newenv = setmetatable({},{
  7. __index = function(self,k)
  8. if k=="script" then
  9. return var
  10. else
  11. return env[k]
  12. end
  13. end,
  14. })
  15. setfenv(func,newenv)
  16. return func
  17. end
  18. cors = {}
  19. mas = Instance.new("Model",game:GetService("Lighting"))
  20. Tool0 = Instance.new("Tool")
  21. Part1 = Instance.new("Part")
  22. CylinderMesh2 = Instance.new("CylinderMesh")
  23. Part3 = Instance.new("Part")
  24. LocalScript4 = Instance.new("LocalScript")
  25. Script5 = Instance.new("Script")
  26. LocalScript6 = Instance.new("LocalScript")
  27. Script7 = Instance.new("Script")
  28. LocalScript8 = Instance.new("LocalScript")
  29. Part9 = Instance.new("Part")
  30. Script10 = Instance.new("Script")
  31. Part11 = Instance.new("Part")
  32. Script12 = Instance.new("Script")
  33. Part13 = Instance.new("Part")
  34. Script14 = Instance.new("Script")
  35. Tool0.Name = "Telekinesis Gun"
  36. Tool0.Parent = mas
  37. Tool0.CanBeDropped = false
  38. Part1.Name = "Handle"
  39. Part1.Parent = Tool0
  40. Part1.Material = Enum.Material.Neon
  41. Part1.BrickColor = BrickColor.new("Cyan")
  42. Part1.Transparency = 1
  43. Part1.Rotation = Vector3.new(0, 15.4200001, 0)
  44. Part1.CanCollide = false
  45. Part1.FormFactor = Enum.FormFactor.Custom
  46. Part1.Size = Vector3.new(1, 0.400000036, 0.300000012)
  47. Part1.CFrame = CFrame.new(-55.2695465, 0.696546972, 0.383156985, 0.96399641, -4.98074878e-05, 0.265921414, 4.79998416e-05, 1, 1.32960558e-05, -0.265921414, -5.30653779e-08, 0.96399641)
  48. Part1.BottomSurface = Enum.SurfaceType.Smooth
  49. Part1.TopSurface = Enum.SurfaceType.Smooth
  50. Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  51. Part1.Position = Vector3.new(-55.2695465, 0.696546972, 0.383156985)
  52. Part1.Orientation = Vector3.new(0, 15.4200001, 0)
  53. Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  54. CylinderMesh2.Parent = Part1
  55. CylinderMesh2.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  56. CylinderMesh2.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  57. Part3.Name = "Shoot"
  58. Part3.Parent = Tool0
  59. Part3.Material = Enum.Material.Neon
  60. Part3.BrickColor = BrickColor.new("Cyan")
  61. Part3.Reflectance = 0.30000001192093
  62. Part3.Transparency = 1
  63. Part3.Rotation = Vector3.new(90.9799957, 0.25999999, -91.409996)
  64. Part3.CanCollide = false
  65. Part3.FormFactor = Enum.FormFactor.Custom
  66. Part3.Size = Vector3.new(0.200000003, 0.25, 0.310000032)
  67. Part3.CFrame = CFrame.new(-54.7998123, 0.774299085, -0.757350147, -0.0245519895, 0.99968797, 0.00460194098, 0.0169109926, 0.00501798885, -0.999844491, -0.999555528, -0.0244703442, -0.0170289185)
  68. Part3.BottomSurface = Enum.SurfaceType.Smooth
  69. Part3.TopSurface = Enum.SurfaceType.Smooth
  70. Part3.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  71. Part3.Position = Vector3.new(-54.7998123, 0.774299085, -0.757350147)
  72. Part3.Orientation = Vector3.new(88.9899979, 164.87999, 73.4700012)
  73. Part3.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  74. LocalScript4.Parent = Tool0
  75. table.insert(cors,sandbox(LocalScript4,function()
  76. -- Variables for services
  77. local render = game:GetService("RunService").RenderStepped
  78. local contextActionService = game:GetService("ContextActionService")
  79. local userInputService = game:GetService("UserInputService")
  80.  
  81. local player = game.Players.LocalPlayer
  82. local mouse = player:GetMouse()
  83. local Tool = script.Parent
  84.  
  85. -- Variables for Module Scripts
  86. local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
  87.  
  88. local connection
  89. -- Variables for character joints
  90.  
  91. local neck, shoulder, oldNeckC0, oldShoulderC0
  92.  
  93. local mobileShouldTrack = true
  94.  
  95. -- Thourough check to see if a character is sitting
  96. local function amISitting(character)
  97. local t = character.Torso
  98. for _, part in pairs(t:GetConnectedParts(true)) do
  99. if part:IsA("Seat") or part:IsA("VehicleSeat") then
  100. return true
  101. end
  102. end
  103. end
  104.  
  105. -- Function to call on renderstepped. Orients the character so it is facing towards
  106. -- the player mouse's position in world space. If character is sitting then the torso
  107. -- should not track
  108. local function frame(mousePosition)
  109. -- Special mobile consideration. We don't want to track if the user was touching a ui
  110. -- element such as the movement controls. Just return out of function if so to make sure
  111. -- character doesn't track
  112. if not mobileShouldTrack then return end
  113.  
  114. -- Make sure character isn't swiming. If the character is swimming the following code will
  115. -- not work well; the character will not swim correctly. Besides, who shoots underwater?
  116. if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
  117. local torso = player.Character.Torso
  118. local head = player.Character.Head
  119.  
  120. local toMouse = (mousePosition - head.Position).unit
  121. local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
  122.  
  123. local neckAngle = angle
  124.  
  125. -- Limit how much the head can tilt down. Too far and the head looks unnatural
  126. if math.deg(neckAngle) > 110 then
  127. neckAngle = math.rad(110)
  128. end
  129. neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
  130.  
  131. -- Calculate horizontal rotation
  132. local arm = player.Character:FindFirstChild("Right Arm")
  133. local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
  134. torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
  135. local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
  136. local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
  137. local lateralAngle = math.acos(toMouseArm:Dot(look))
  138.  
  139. -- Check for rogue math
  140. if tostring(lateralAngle) == "-1.#IND" then
  141. lateralAngle = 0
  142. end
  143.  
  144. -- Handle case where character is sitting down
  145. if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
  146.  
  147. local cross = torso.CFrame.lookVector:Cross(toMouseArm)
  148. if lateralAngle > math.pi/2 then
  149. lateralAngle = math.pi/2
  150. end
  151. if cross.Y < 0 then
  152. lateralAngle = -lateralAngle
  153. end
  154. end
  155.  
  156. -- Turn shoulder to point to mouse
  157. shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
  158.  
  159. -- If not sitting then aim torso laterally towards mouse
  160. if not amISitting(player.Character) then
  161. torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
  162. mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
  163. else
  164. --print("sitting")
  165. end
  166. end
  167. end
  168.  
  169. -- Function to bind to render stepped if player is on PC
  170. local function pcFrame()
  171. frame(mouse.Hit.p)
  172. end
  173.  
  174. -- Function to bind to touch moved if player is on mobile
  175. local function mobileFrame(touch, processed)
  176. -- Check to see if the touch was on a UI element. If so, we don't want to update anything
  177. if not processed then
  178. -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
  179. -- to create a ray from the camera.
  180. local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
  181. local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
  182. nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
  183. local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
  184. farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
  185. if farPos.magnitude > 900 then
  186. farPos = farPos.unit * 900
  187. end
  188. local ray = Ray.new(nearPos, farPos)
  189. local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
  190.  
  191. -- if a position was found on the ray then update the character's rotation
  192. if pos then
  193. frame(pos)
  194. end
  195. end
  196. end
  197.  
  198. local oldIcon = nil
  199. -- Function to bind to equip event
  200. local function equip()
  201. local torso = player.Character.Torso
  202.  
  203. -- Setup joint variables
  204. neck = torso.Neck
  205. oldNeckC0 = neck.C0
  206. shoulder = torso:FindFirstChild("Right Shoulder")
  207. oldShoulderC0 = shoulder.C0
  208.  
  209. -- Remember old mouse icon and update current
  210. oldIcon = mouse.Icon
  211. mouse.Icon = "rbxassetid:// 2184939409"
  212.  
  213. -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
  214. if userInputService.TouchEnabled then
  215. connection = userInputService.TouchMoved:connect(mobileFrame)
  216. else
  217. connection = render:connect(pcFrame)
  218. end
  219.  
  220. -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
  221. -- during touch input
  222. userInputService.TouchStarted:connect(function(touch, processed)
  223. mobileShouldTrack = not processed
  224. end)
  225. userInputService.TouchEnded:connect(function(touch, processed)
  226. mobileShouldTrack = false
  227. end)
  228.  
  229. -- Fire server's equip event
  230. game.ReplicatedStorage.ROBLOX_PistolEquipEvent:FireServer()
  231.  
  232. -- Bind event for when mouse is clicked to fire server's fire event
  233. mouse.Button1Down:connect(function()
  234. game.ReplicatedStorage.ROBLOX_PistolFireEvent:FireServer(mouse.Hit.p)
  235. end)
  236.  
  237. -- Bind reload event to mobile button and r key
  238. contextActionService:BindActionToInputTypes("Reload", function()
  239. game.ReplicatedStorage.ROBLOX_PistolReloadEvent:FireServer()
  240. end, true, "")
  241.  
  242. -- If game uses filtering enabled then need to update server while tool is
  243. -- held by character.
  244. if workspace.FilteringEnabled then
  245. while connection do
  246. wait()
  247. game.ReplicatedStorage.ROBLOX_PistolUpdateEvent:FireServer(neck.C0, shoulder.C0)
  248. end
  249. end
  250. end
  251.  
  252. -- Function to bind to Unequip event
  253. local function unequip()
  254. if connection then connection:disconnect() end
  255. contextActionService:UnbindAction("Reload")
  256. game.ReplicatedStorage.ROBLOX_PistolUnequipEvent:FireServer()
  257. mouse.Icon = oldIcon
  258. neck.C0 = oldNeckC0
  259. shoulder.C0 = oldShoulderC0
  260. end
  261.  
  262. -- Bind tool events
  263. Tool.Equipped:connect(equip)
  264. Tool.Unequipped:connect(unequip)
  265. end))
  266. Script5.Name = "qPerfectionWeld"
  267. Script5.Parent = Tool0
  268. table.insert(cors,sandbox(Script5,function()
  269. -- Created by Quenty (@Quenty, follow me on twitter).
  270. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  271. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  272.  
  273. --[[ INSTRUCTIONS
  274. - Place in the model
  275. - Make sure model is anchored
  276. - That's it. It will weld the model and all children.
  277.  
  278. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  279. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  280. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  281. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  282. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  283. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  284. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  285. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  286.  
  287. 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.
  288. ]]
  289.  
  290. --[[ DOCUMENTATION
  291. - 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.
  292. - Will work in PBS servers
  293. - Will work as long as it starts out with the part anchored
  294. - Stores the relative CFrame as a CFrame value
  295. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  296. - Utilizes a recursive algorith to find all parts in the model
  297. - Will reweld on script reparent if the script is initially parented to a tool.
  298. - Welds as fast as possible
  299. ]]
  300.  
  301. -- qPerfectionWeld.lua
  302. -- Created 10/6/2014
  303. -- Author: Quenty
  304. -- Version 1.0.3
  305.  
  306. -- Updated 10/14/2014 - Updated to 1.0.1
  307. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  308.  
  309. -- Updated 10/14/2014 - Updated to 1.0.2
  310. --- Fixed bug fix.
  311.  
  312. -- Updated 10/14/2014 - Updated to 1.0.3
  313. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  314.  
  315. 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).
  316.  
  317.  
  318. local function CallOnChildren(Instance, FunctionToCall)
  319. -- Calls a function on each of the children of a certain object, using recursion.
  320.  
  321. FunctionToCall(Instance)
  322.  
  323. for _, Child in next, Instance:GetChildren() do
  324. CallOnChildren(Child, FunctionToCall)
  325. end
  326. end
  327.  
  328. local function GetNearestParent(Instance, ClassName)
  329. -- Returns the nearest parent of a certain class, or returns nil
  330.  
  331. local Ancestor = Instance
  332. repeat
  333. Ancestor = Ancestor.Parent
  334. if Ancestor == nil then
  335. return nil
  336. end
  337. until Ancestor:IsA(ClassName)
  338.  
  339. return Ancestor
  340. end
  341.  
  342. local function GetBricks(StartInstance)
  343. local List = {}
  344.  
  345. -- if StartInstance:IsA("BasePart") then
  346. -- List[#List+1] = StartInstance
  347. -- end
  348.  
  349. CallOnChildren(StartInstance, function(Item)
  350. if Item:IsA("BasePart") then
  351. List[#List+1] = Item;
  352. end
  353. end)
  354.  
  355. return List
  356. end
  357.  
  358. local function Modify(Instance, Values)
  359. -- Modifies an Instance by using a table.
  360.  
  361. assert(type(Values) == "table", "Values is not a table");
  362.  
  363. for Index, Value in next, Values do
  364. if type(Index) == "number" then
  365. Value.Parent = Instance
  366. else
  367. Instance[Index] = Value
  368. end
  369. end
  370. return Instance
  371. end
  372.  
  373. local function Make(ClassType, Properties)
  374. -- Using a syntax hack to create a nice way to Make new items.
  375.  
  376. return Modify(Instance.new(ClassType), Properties)
  377. end
  378.  
  379. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  380. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  381.  
  382. local function HasWheelJoint(Part)
  383. for _, SurfaceName in pairs(Surfaces) do
  384. for _, HingSurfaceName in pairs(HingSurfaces) do
  385. if Part[SurfaceName].Name == HingSurfaceName then
  386. return true
  387. end
  388. end
  389. end
  390.  
  391. return false
  392. end
  393.  
  394. local function ShouldBreakJoints(Part)
  395. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  396. -- definitely some edge cases.
  397.  
  398. if NEVER_BREAK_JOINTS then
  399. return false
  400. end
  401.  
  402. if HasWheelJoint(Part) then
  403. return false
  404. end
  405.  
  406. local Connected = Part:GetConnectedParts()
  407.  
  408. if #Connected == 1 then
  409. return false
  410. end
  411.  
  412. for _, Item in pairs(Connected) do
  413. if HasWheelJoint(Item) then
  414. return false
  415. elseif not Item:IsDescendantOf(script.Parent) then
  416. return false
  417. end
  418. end
  419.  
  420. return true
  421. end
  422.  
  423. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  424. --- Weld's 2 parts together
  425. -- @param Part0 The first part
  426. -- @param Part1 The second part (Dependent part most of the time).
  427. -- @param [JointType] The type of joint. Defaults to weld.
  428. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  429. -- @return The weld created.
  430.  
  431. JointType = JointType or "Weld"
  432. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  433.  
  434. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  435. Modify(NewWeld, {
  436. Name = "qCFrameWeldThingy";
  437. Part0 = Part0;
  438. Part1 = Part1;
  439. C0 = CFrame.new();--Part0.CFrame:inverse();
  440. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  441. Parent = Part1;
  442. })
  443.  
  444. if not RelativeValue then
  445. RelativeValue = Make("CFrameValue", {
  446. Parent = Part1;
  447. Name = "qRelativeCFrameWeldValue";
  448. Archivable = true;
  449. Value = NewWeld.C1;
  450. })
  451. end
  452.  
  453. return NewWeld
  454. end
  455.  
  456. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  457. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  458. -- @param MainPart The part to weld the model to (can be in the model).
  459. -- @param [JointType] The type of joint. Defaults to weld.
  460. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  461.  
  462. for _, Part in pairs(Parts) do
  463. if ShouldBreakJoints(Part) then
  464. Part:BreakJoints()
  465. end
  466. end
  467.  
  468. for _, Part in pairs(Parts) do
  469. if Part ~= MainPart then
  470. WeldTogether(MainPart, Part, JointType, MainPart)
  471. end
  472. end
  473.  
  474. if not DoNotUnanchor then
  475. for _, Part in pairs(Parts) do
  476. Part.Anchored = false
  477. end
  478. MainPart.Anchored = false
  479. end
  480. end
  481.  
  482. local function PerfectionWeld()
  483. local Tool = GetNearestParent(script, "Tool")
  484.  
  485. local Parts = GetBricks(script.Parent)
  486. 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]
  487.  
  488. if PrimaryPart then
  489. WeldParts(Parts, PrimaryPart, "Weld", false)
  490. else
  491. warn("qWeld - Unable to weld part")
  492. end
  493.  
  494. return Tool
  495. end
  496.  
  497. local Tool = PerfectionWeld()
  498.  
  499.  
  500. if Tool and script.ClassName == "Script" then
  501. --- Don't bother with local scripts
  502.  
  503. script.Parent.AncestryChanged:connect(function()
  504. PerfectionWeld()
  505. end)
  506. end
  507.  
  508. -- Created by Quenty (@Quenty, follow me on twitter).
  509.  
  510. end))
  511. LocalScript6.Name = "Animate"
  512. LocalScript6.Parent = Tool0
  513. table.insert(cors,sandbox(LocalScript6,function()
  514. local arms = nil
  515. local torso = nil
  516. local welds = {}
  517. local Tool = script.Parent
  518. local neck = nil
  519. local orginalC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  520.  
  521. function Equip(mouse)
  522. wait(0.01)
  523. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  524. head = Tool.Parent:FindFirstChild("Head")
  525. torso = Tool.Parent:FindFirstChild("Torso")
  526. if neck == nil then
  527. neck = Tool.Parent:FindFirstChild("Torso").Neck
  528. end
  529. if arms ~= nil and torso ~= nil then
  530. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  531. if sh ~= nil then
  532. local yes = true
  533. if yes then
  534. yes = false
  535. sh[1].Part1 = nil
  536. sh[2].Part1 = nil
  537. local weld1 = Instance.new("Weld")
  538. weld1.Part0 = head
  539. weld1.Parent = head
  540. weld1.Part1 = arms[1]
  541. welds[1] = weld1
  542. local weld2 = Instance.new("Weld")
  543. weld2.Part0 = head
  544. weld2.Parent = head
  545. weld2.Part1 = arms[2]
  546. welds[2] = weld2
  547. -------------------------here
  548. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  549. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  550. mouse.Move:connect(function ()
  551. --local Direction = Tool.Direction.Value
  552. local Direction = mouse.Hit.p
  553. local b = head.Position.Y-Direction.Y
  554. local dist = (head.Position-Direction).magnitude
  555. local answer = math.asin(b/dist)
  556. neck.C0=orginalC0*CFrame.fromEulerAnglesXYZ(answer,0,0)
  557. wait(0.1)
  558. end)end
  559. else
  560. print("sh")
  561. end
  562. else
  563. print("arms")
  564. end
  565. end
  566.  
  567. function Unequip(mouse)
  568. if arms ~= nil and torso ~= nil then
  569. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  570. if sh ~= nil then
  571. local yes = true
  572. if yes then
  573. yes = false
  574. neck.C0 = orginalC0
  575.  
  576. sh[1].Part1 = arms[1]
  577. sh[2].Part1 = arms[2]
  578. welds[1].Parent = nil
  579. welds[2].Parent = nil
  580. end
  581. else
  582. print("sh")
  583. end
  584. else
  585. print("arms")
  586. end
  587. end
  588. Tool.Equipped:connect(Equip)
  589. Tool.Unequipped:connect(Unequip)
  590.  
  591. function Animate()
  592. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  593. if Tool.AnimateValue.Value == "Shoot" then
  594. local weld1 = welds[1]
  595. local weld2 = welds[2]
  596. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  597. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  598. wait(0.00001)
  599. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.05, math.rad(-90))
  600. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  601. wait(0.00001)
  602. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.1, math.rad(-90))
  603. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-95), math.rad(-15), 0)
  604. wait(0.00001)
  605. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.3, math.rad(-90))
  606. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-110), math.rad(-15), 0)
  607. wait(0.00001)
  608. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.35, math.rad(-90))
  609. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-115), math.rad(-15), 0)
  610. wait(0.00001)
  611. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  612. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  613. wait(0.00001)
  614. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  615. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  616. Tool.AnimateValue.Value = "None"
  617. end
  618. if Tool.AnimateValue.Value == "Reload" then
  619. local weld1 = welds[1]
  620. local weld2 = welds[2]
  621. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  622. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  623. wait(0.0001)
  624. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  625. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  626. wait(0.0001)
  627. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  628. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-95), math.rad(-15), 0)
  629. wait(0.0001)
  630. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  631. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-100), math.rad(-15), 0)
  632. wait(0.0001)
  633. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  634. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-105), math.rad(-15), 0)
  635. wait(0.0001)
  636. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  637. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-110), math.rad(-15), 0)
  638. wait(0.0001)
  639. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.4, math.rad(-90))
  640. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-115), math.rad(-15), 0)
  641. wait(0.0001)
  642. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.45, math.rad(-90))
  643. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  644. wait(0.0001)
  645. weld1.C1 = CFrame.new(-0.5+1.5, 0.9, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.5, math.rad(-90))
  646. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  647. wait(0.0001)
  648. weld1.C1 = CFrame.new(-0.5+1.5, 1, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.55, math.rad(-90))
  649. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  650. wait(0.0001)
  651. weld1.C1 = CFrame.new(-0.5+1.5, 1.1, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.57, math.rad(-90))
  652. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  653. wait(0.0001)
  654. weld1.C1 = CFrame.new(-0.5+1.5, 1.2, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.6, math.rad(-90))
  655. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  656. wait(0.0001)
  657. weld1.C1 = CFrame.new(-0.5+1.5, 1.3, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0.6, math.rad(-90))
  658. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-120), math.rad(-15), 0)
  659. wait(0.0001)
  660. weld1.C1 = CFrame.new(-0.5+1.5, 0.8, .9)* CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  661. weld2.C1 = CFrame.new(-1, 0.8, 0.5-1.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  662. Tool.AnimateValue.Value = "None"
  663. end
  664. end
  665.  
  666. Tool.AnimateValue.Changed:connect(Animate)
  667.  
  668. end))
  669. Script7.Name = "LineConnect"
  670. Script7.Parent = Tool0
  671. Script7.Disabled = true
  672. table.insert(cors,sandbox(Script7,function()
  673. wait()
  674. local check = script.Part2
  675. local part1 = script.Part1.Value
  676. local part2 = script.Part2.Value
  677. local parent = script.Par.Value
  678. local color = script.Color
  679. local line = Instance.new("Part")
  680. line.TopSurface = 0
  681. line.BottomSurface = 0
  682. line.Reflectance = .5
  683. line.Name = "Laser"
  684. line.Transparency = 0.6
  685. line.Locked = true
  686. line.CanCollide = false
  687. line.Anchored = true
  688. line.formFactor = 0
  689. line.Size = Vector3.new(0.4,0.4,1)
  690. local mesh = Instance.new("BlockMesh")
  691. mesh.Parent = line
  692. while true do
  693. if (check.Value==nil) then break end
  694. if (part1==nil or part2==nil or parent==nil) then break end
  695. if (part1.Parent==nil or part2.Parent==nil) then break end
  696. if (parent.Parent==nil) then break end
  697. local lv = CFrame.new(part1.Position,part2.Position)
  698. local dist = (part1.Position-part2.Position).magnitude
  699. line.Parent = parent
  700. line.Material = "Neon"
  701. line.BrickColor = color.Value.BrickColor
  702. line.Reflectance = color.Value.Reflectance
  703. line.Transparency = "0.2"
  704. line.CFrame = CFrame.new(part1.Position+lv.lookVector*dist/2)
  705. line.CFrame = CFrame.new(line.Position,part2.Position)
  706. mesh.Scale = Vector3.new(.25,.25,dist)
  707. wait()
  708. end
  709. line:remove()
  710. script:remove()
  711. end))
  712. LocalScript8.Name = "MainScript"
  713. LocalScript8.Parent = Tool0
  714. table.insert(cors,sandbox(LocalScript8,function()
  715. --Physics gun created by Killersoldier45
  716. wait()
  717. tool = script.Parent
  718. lineconnect = tool.LineConnect
  719. object = nil
  720. mousedown = false
  721. found = false
  722. BP = Instance.new("BodyPosition")
  723. BP.maxForce = Vector3.new(math.huge*math.huge,math.huge*math.huge,math.huge*math.huge) --pwns everyone elses bodyposition
  724. BP.P = BP.P*10 --faster movement. less bounceback.
  725. dist = nil
  726. point = Instance.new("Part")
  727. point.Locked = true
  728. point.Anchored = true
  729. point.formFactor = 0
  730. point.Shape = 0
  731. point.Material = 'Neon'
  732. point.BrickColor = BrickColor.new("Toothpaste")
  733. point.Size = Vector3.new(1,1,1)
  734. point.CanCollide = false
  735. local mesh = Instance.new("SpecialMesh")
  736. mesh.MeshType = "Sphere"
  737. mesh.Scale = Vector3.new(.2,.2,.2)
  738. mesh.Parent = point
  739. handle = tool.Shoot
  740. front = tool.Shoot
  741. color = tool.Shoot
  742. objval = nil
  743. local hooked = false
  744. local hookBP = BP:clone()
  745. hookBP.maxForce = Vector3.new(30000,30000,30000)
  746.  
  747. function LineConnect(part1,part2,parent)
  748. local p1 = Instance.new("ObjectValue")
  749. p1.Value = part1
  750. p1.Name = "Part1"
  751. local p2 = Instance.new("ObjectValue")
  752. p2.Value = part2
  753. p2.Name = "Part2"
  754. local par = Instance.new("ObjectValue")
  755. par.Value = parent
  756. par.Name = "Par"
  757. local col = Instance.new("ObjectValue")
  758. col.Value = color
  759. col.Name = "Color"
  760. local s = lineconnect:clone()
  761. s.Disabled = false
  762. p1.Parent = s
  763. p2.Parent = s
  764. par.Parent = s
  765. col.Parent = s
  766. s.Parent = workspace
  767. if (part2==object) then
  768. objval = p2
  769. end
  770. end
  771.  
  772. function onButton1Down(mouse)
  773. if (mousedown==true) then return end
  774. mousedown = true
  775. coroutine.resume(coroutine.create(function()
  776. local p = point:clone()
  777. p.Parent = tool
  778. LineConnect(front,p,workspace)
  779. while (mousedown==true) do
  780. p.Parent = tool
  781. if (object==nil) then
  782. if (mouse.Target==nil) then
  783. local lv = CFrame.new(front.Position,mouse.Hit.p)
  784. p.CFrame = CFrame.new(front.Position+(lv.lookVector*1000))
  785. else
  786. p.CFrame = CFrame.new(mouse.Hit.p)
  787. end
  788. else
  789. LineConnect(front,object,workspace)
  790. break
  791. end
  792. wait()
  793. end
  794. p:remove()
  795. end))
  796. while (mousedown==true) do
  797. if (mouse.Target~=nil) then
  798. local t = mouse.Target
  799. if (t.Anchored==false) then
  800. object = t
  801. dist = (object.Position-front.Position).magnitude
  802. break
  803. end
  804. end
  805. wait()
  806. end
  807. while (mousedown==true) do
  808. if (object.Parent==nil) then break end
  809. local lv = CFrame.new(front.Position,mouse.Hit.p)
  810. BP.Parent = object
  811. BP.position = front.Position+lv.lookVector*dist
  812. wait()
  813. end
  814. BP:remove()
  815. object = nil
  816. objval.Value = nil
  817. end
  818.  
  819. function onKeyDown(key,mouse)
  820. local key = key:lower()
  821. local yesh = false
  822. if (key=="q") then
  823. if (dist>=5) then
  824. dist = dist-5
  825. end
  826. end
  827. if key == "t" then
  828. if (object==nil) then return end
  829. for _,v in pairs(object:children()) do
  830. if v.className == "BodyGyro" then
  831. return nil
  832. end
  833. end
  834. BG = Instance.new("BodyGyro")
  835. BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  836. BG.cframe = CFrame.new(object.CFrame.p)
  837. BG.Parent = object
  838. repeat wait() until(object.CFrame == CFrame.new(object.CFrame.p))
  839. BG.Parent = nil
  840. if (object==nil) then return end
  841. for _,v in pairs(object:children()) do
  842. if v.className == "BodyGyro" then
  843. v.Parent = nil
  844. end
  845. end
  846. object.Velocity = Vector3.new(0,0,0)
  847. object.RotVelocity = Vector3.new(0,0,0)
  848. end
  849. if (key=="e") then
  850. dist = dist+5
  851. end
  852. if (string.byte(key)==27) then
  853. if (object==nil) then return end
  854. local e = Instance.new("Explosion")
  855. e.Parent = workspace
  856. e.Position = object.Position
  857. color.BrickColor = BrickColor.Black()
  858. point.BrickColor = BrickColor.White()
  859. wait(.48)
  860. color.BrickColor = BrickColor.White()
  861. point.BrickColor = BrickColor.Black()
  862. end
  863. if (key=="") then
  864. if not hooked then
  865. if (object==nil) then return end
  866. hooked = true
  867. hookBP.position = object.Position
  868. if tool.Parent:findFirstChild("Torso") then
  869. hookBP.Parent = tool.Parent.Torso
  870. if dist ~= (object.Size.x+object.Size.y+object.Size.z)+5 then
  871. dist = (object.Size.x+object.Size.y+object.Size.z)+5
  872. end
  873. end
  874. else
  875. hooked = false
  876. hookBP.Parent = nil
  877. end
  878. end
  879. if (key=="r") then
  880. if (object==nil) then return end
  881. color.BrickColor = BrickColor.new("Toothpaste")
  882. point.BrickColor = BrickColor.new("Toothpaste")
  883. object.Parent = nil
  884. wait(.48)
  885. color.BrickColor = BrickColor.new("Toothpaste")
  886. point.BrickColor = BrickColor.new("Toothpaste")
  887. end
  888. if (key=="x") then
  889. if (object==nil) then return end
  890. local New = object:clone()
  891. New.Parent = object.Parent
  892. for _,v in pairs(New:children()) do
  893. if v.className == "BodyPosition" or v.className == "BodyGyro" then
  894. v.Parent = nil
  895. end
  896. end
  897. object = New
  898. mousedown = false
  899. mousedown = true
  900. LineConnect(front,object,workspace)
  901. while (mousedown==true) do
  902. if (object.Parent==nil) then break end
  903. local lv = CFrame.new(front.Position,mouse.Hit.p)
  904. BP.Parent = object
  905. BP.position = front.Position+lv.lookVector*dist
  906. wait()
  907. end
  908. BP:remove()
  909. object = nil
  910. objval.Value = nil
  911. end
  912. if (key=="c") then
  913. local Cube = Instance.new("Part")
  914. Cube.Locked = true
  915. Cube.Size = Vector3.new(4,4,4)
  916. Cube.formFactor = 0
  917. Cube.TopSurface = 0
  918. Cube.BottomSurface = 0
  919. Cube.Name = "WeightedStorageCube"
  920. Cube.Parent = workspace
  921. Cube.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,2,0)
  922. for i = 0,5 do
  923. local Decal = Instance.new("Decal")
  924. Decal.Texture = "http://www.roblox.com/asset/?id=2662260"
  925. Decal.Face = i
  926. Decal.Name = "WeightedStorageCubeDecal"
  927. Decal.Parent = Cube
  928. end
  929. end
  930. if (key=="") then
  931. if dist ~= 15 then
  932. dist = 15
  933. end
  934. end
  935. end
  936.  
  937. function onEquipped(mouse)
  938. keymouse = mouse
  939. local char = tool.Parent
  940. human = char.Humanoid
  941. human.Changed:connect(function() if (human.Health==0) then mousedown = false BP:remove() point:remove() tool:remove() end end)
  942. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  943. mouse.Button1Up:connect(function() mousedown = false end)
  944. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  945. mouse.Icon = "rbxassetid://2184939409"
  946. end
  947.  
  948. tool.Equipped:connect(onEquipped)
  949. end))
  950. Part9.Name = "GlowPart"
  951. Part9.Parent = Tool0
  952. Part9.Material = Enum.Material.Neon
  953. Part9.BrickColor = BrickColor.new("Cyan")
  954. Part9.Transparency = 0.5
  955. Part9.Rotation = Vector3.new(0, -89.5899963, 0)
  956. Part9.Shape = Enum.PartType.Cylinder
  957. Part9.Size = Vector3.new(1.20000005, 0.649999976, 2)
  958. Part9.CFrame = CFrame.new(-54.8191681, 0.773548007, -0.0522949994, 0.00736002205, 4.68389771e-11, -0.999974668, 4.72937245e-11, 1, 1.41590961e-10, 0.999974668, 5.09317033e-11, 0.00736002252)
  959. Part9.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  960. Part9.Position = Vector3.new(-54.8191681, 0.773548007, -0.0522949994)
  961. Part9.Orientation = Vector3.new(0, -89.5799942, 0)
  962. Part9.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  963. Script10.Name = "Glow Script"
  964. Script10.Parent = Part9
  965. table.insert(cors,sandbox(Script10,function()
  966. while true do
  967. wait(0.05)
  968. script.Parent.Transparency = .5
  969. wait(0.05)
  970. script.Parent.Transparency = .6
  971. wait(0.05)
  972. script.Parent.Transparency = .7
  973. wait(0.05)
  974. script.Parent.Transparency = .8
  975. wait(0.05)
  976. script.Parent.Transparency = .9
  977. wait(0.05)
  978. script.Parent.Transparency = .8
  979. wait(0.05)
  980. script.Parent.Transparency = .7
  981. wait(0.05)
  982. script.Parent.Transparency = .6
  983. wait(0.05)
  984. script.Parent.Transparency = .5
  985. end
  986.  
  987. end))
  988. Part11.Name = "GlowPart"
  989. Part11.Parent = Tool0
  990. Part11.Material = Enum.Material.Neon
  991. Part11.BrickColor = BrickColor.new("Cyan")
  992. Part11.Transparency = 0.5
  993. Part11.Rotation = Vector3.new(-89.3799973, -55.7399979, -89.25)
  994. Part11.Size = Vector3.new(0.280000001, 0.25999999, 0.200000003)
  995. Part11.CFrame = CFrame.new(-54.9808807, 0.99843204, 0.799362957, 0.00736002205, 0.562958956, -0.826454222, 4.72937245e-11, 0.826475084, 0.56297338, 0.999974668, -0.00414349511, 0.00608287565)
  996. Part11.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  997. Part11.Position = Vector3.new(-54.9808807, 0.99843204, 0.799362957)
  998. Part11.Orientation = Vector3.new(-34.2599983, -89.5799942, 0)
  999. Part11.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  1000. Script12.Name = "Glow Script"
  1001. Script12.Parent = Part11
  1002. table.insert(cors,sandbox(Script12,function()
  1003. while true do
  1004. wait(0.05)
  1005. script.Parent.Transparency = .5
  1006. wait(0.05)
  1007. script.Parent.Transparency = .6
  1008. wait(0.05)
  1009. script.Parent.Transparency = .7
  1010. wait(0.05)
  1011. script.Parent.Transparency = .8
  1012. wait(0.05)
  1013. script.Parent.Transparency = .9
  1014. wait(0.05)
  1015. script.Parent.Transparency = .8
  1016. wait(0.05)
  1017. script.Parent.Transparency = .7
  1018. wait(0.05)
  1019. script.Parent.Transparency = .6
  1020. wait(0.05)
  1021. script.Parent.Transparency = .5
  1022. end
  1023.  
  1024. end))
  1025. Part13.Name = "GlowPart"
  1026. Part13.Parent = Tool0
  1027. Part13.Material = Enum.Material.Neon
  1028. Part13.BrickColor = BrickColor.new("Cyan")
  1029. Part13.Transparency = 0.5
  1030. Part13.Rotation = Vector3.new(95.1500015, -53.8199997, 98.0799942)
  1031. Part13.Size = Vector3.new(0.280000001, 0.25999999, 0.200000003)
  1032. Part13.CFrame = CFrame.new(-54.5909271, 0.978429973, 0.799362957, -0.0830051303, -0.584483683, -0.807150841, 0.0241250042, 0.808528602, -0.58796227, 0.996258855, -0.0682764053, -0.0530113392)
  1033. Part13.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  1034. Part13.Position = Vector3.new(-54.5909271, 0.978429973, 0.799362957)
  1035. Part13.Orientation = Vector3.new(36.0099983, -93.7599945, 1.70999992)
  1036. Part13.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  1037. Script14.Name = "Glow Script"
  1038. Script14.Parent = Part13
  1039. table.insert(cors,sandbox(Script14,function()
  1040. while true do
  1041. wait(0.05)
  1042. script.Parent.Transparency = .5
  1043. wait(0.05)
  1044. script.Parent.Transparency = .6
  1045. wait(0.05)
  1046. script.Parent.Transparency = .7
  1047. wait(0.05)
  1048. script.Parent.Transparency = .8
  1049. wait(0.05)
  1050. script.Parent.Transparency = .9
  1051. wait(0.05)
  1052. script.Parent.Transparency = .8
  1053. wait(0.05)
  1054. script.Parent.Transparency = .7
  1055. wait(0.05)
  1056. script.Parent.Transparency = .6
  1057. wait(0.05)
  1058. script.Parent.Transparency = .5
  1059. end
  1060.  
  1061. end))
  1062. for i,v in pairs(mas:GetChildren()) do
  1063. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1064. pcall(function() v:MakeJoints() end)
  1065. end
  1066. mas:Destroy()
  1067. for i,v in pairs(cors) do
  1068. spawn(function()
  1069. pcall(v)
  1070. end)
  1071. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement