Advertisement
ERROR_CODE

Build With Gravity Tool

Aug 24th, 2023 (edited)
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 37.40 KB | None | 0 0
  1. if loaded then
  2. game.Players.LocalPlayer:Kick("Restart")
  3. local TeleportService = game:GetService("TeleportService")
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. local Rejoin = coroutine.create(function()
  8.     local Success, ErrorMessage = pcall(function()
  9.         TeleportService:Teleport(game.PlaceId, LocalPlayer)
  10.     end)
  11.  
  12.     if ErrorMessage and not Success then
  13.         warn(ErrorMessage)
  14.     end
  15. end)
  16.  
  17. coroutine.resume(Rejoin)
  18. end
  19. pcall(function()
  20.     getgenv().loaded = true
  21. local LocalPlayer = game.Players.LocalPlayer
  22. if LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  23. local Animate = game.Players.LocalPlayer.Character.Animate
  24. Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=782841498"
  25. Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=782845736"
  26. Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=782843345"
  27. Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=782842708"
  28. Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=782847020"
  29. Animate.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=782843869"
  30. Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=782846423"
  31. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  32. end
  33. local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/Jxereas/UI-Libraries/main/notification_gui_library.lua", true))()
  34. local notif = Notification.new("warning", "Warning!", "You need a mouse!")
  35.         notif:deleteTimeout(5)
  36.  
  37. function sandbox(var,func)
  38.     local env = getfenv(func)
  39.     local newenv = setmetatable({},{
  40.         __index = function(self,k)
  41.             if k=="script" then
  42.                 return var
  43.             else
  44.                 return env[k]
  45.             end
  46.         end,
  47.     })
  48.     setfenv(func,newenv)
  49.     return func
  50. end
  51. cors = {}
  52. mas = Instance.new("Model",game:GetService("Lighting"))
  53. Tool0 = Instance.new("Tool")
  54. Part1 = Instance.new("Part")
  55. CylinderMesh2 = Instance.new("CylinderMesh")
  56. Part3 = Instance.new("Part")
  57. LocalScript4 = Instance.new("LocalScript")
  58. Script5 = Instance.new("Script")
  59. LocalScript6 = Instance.new("LocalScript")
  60. Script7 = Instance.new("Script")
  61. LocalScript8 = Instance.new("LocalScript")
  62. Part9 = Instance.new("Part")
  63. Script10 = Instance.new("Script")
  64. Part11 = Instance.new("Part")
  65. Script12 = Instance.new("Script")
  66. Part13 = Instance.new("Part")
  67. Script14 = Instance.new("Script")
  68. Tool0.Name = "Gravity Tool"
  69. Tool0.Parent = mas
  70. Tool0.CanBeDropped = false
  71. Part1.Name = "Handle"
  72. Part1.Parent = Tool0
  73. Part1.Material = Enum.Material.Neon
  74. Part1.BrickColor = BrickColor.new("Cyan")
  75. Part1.Transparency = 1
  76. Part1.Rotation = Vector3.new(0, 15.4200001, 0)
  77. Part1.CanCollide = false
  78. Part1.FormFactor = Enum.FormFactor.Custom
  79. Part1.Size = Vector3.new(1, 0.400000036, 0.300000012)
  80. 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)
  81. Part1.BottomSurface = Enum.SurfaceType.Smooth
  82. Part1.TopSurface = Enum.SurfaceType.Smooth
  83. Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  84. Part1.Position = Vector3.new(-55.2695465, 0.696546972, 0.383156985)
  85. Part1.Orientation = Vector3.new(0, 15.4200001, 0)
  86. Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  87. CylinderMesh2.Parent = Part1
  88. CylinderMesh2.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  89. CylinderMesh2.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  90. Part3.Name = "Shoot"
  91. Part3.Parent = Tool0
  92. Part3.Material = Enum.Material.Neon
  93. Part3.BrickColor = BrickColor.new("Cyan")
  94. Part3.Reflectance = 0.30000001192093
  95. Part3.Transparency = 1
  96. Part3.Rotation = Vector3.new(90.9799957, 0.25999999, -91.409996)
  97. Part3.CanCollide = false
  98. Part3.FormFactor = Enum.FormFactor.Custom
  99. Part3.Size = Vector3.new(0.200000003, 0.25, 0.310000032)
  100. 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)
  101. Part3.BottomSurface = Enum.SurfaceType.Smooth
  102. Part3.TopSurface = Enum.SurfaceType.Smooth
  103. Part3.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  104. Part3.Position = Vector3.new(-54.7998123, 0.774299085, -0.757350147)
  105. Part3.Orientation = Vector3.new(88.9899979, 164.87999, 73.4700012)
  106. Part3.Color = Color3.new(0.0156863, 0.686275, 0.92549)
  107. LocalScript4.Parent = Tool0
  108. table.insert(cors,sandbox(LocalScript4,function()
  109. -- Variables for services
  110. local render = game:GetService("RunService").RenderStepped
  111. local contextActionService = game:GetService("ContextActionService")
  112. local userInputService = game:GetService("UserInputService")
  113.  
  114. local player = game.Players.LocalPlayer
  115. local mouse = player:GetMouse()
  116. local Tool = script.Parent
  117.  
  118. -- Variables for Module Scripts
  119. local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
  120.  
  121. local connection
  122. -- Variables for character joints
  123.  
  124. local neck, shoulder, oldNeckC0, oldShoulderC0
  125.  
  126. local mobileShouldTrack = true
  127.  
  128. -- Thourough check to see if a character is sitting
  129. local function amISitting(character)
  130.     local t = character.Torso
  131.     for _, part in pairs(t:GetConnectedParts(true)) do
  132.         if part:IsA("Seat") or part:IsA("VehicleSeat") then
  133.             return true
  134.         end
  135.     end
  136. end
  137.  
  138. -- Function to call on renderstepped. Orients the character so it is facing towards
  139. -- the player mouse's position in world space. If character is sitting then the torso
  140. -- should not track
  141. local function frame(mousePosition)
  142.     -- Special mobile consideration. We don't want to track if the user was touching a ui
  143.     -- element such as the movement controls. Just return out of function if so to make sure
  144.     -- character doesn't track
  145.     if not mobileShouldTrack then return end
  146.    
  147.     -- Make sure character isn't swiming. If the character is swimming the following code will
  148.     -- not work well; the character will not swim correctly. Besides, who shoots underwater?
  149.     if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
  150.         local torso = player.Character.Torso
  151.         local head = player.Character.Head
  152.        
  153.         local toMouse = (mousePosition - head.Position).unit
  154.         local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
  155.        
  156.         local neckAngle = angle
  157.    
  158.         -- Limit how much the head can tilt down. Too far and the head looks unnatural
  159.         if math.deg(neckAngle) > 110 then
  160.             neckAngle = math.rad(110)
  161.         end
  162.         neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
  163.        
  164.         -- Calculate horizontal rotation
  165.         local arm = player.Character:FindFirstChild("Right Arm")
  166.         local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
  167.             torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
  168.         local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
  169.         local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
  170.         local lateralAngle = math.acos(toMouseArm:Dot(look))       
  171.        
  172.         -- Check for rogue math
  173.         if tostring(lateralAngle) == "-1.#IND" then
  174.             lateralAngle = 0
  175.         end    
  176.        
  177.         -- Handle case where character is sitting down
  178.         if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then          
  179.            
  180.             local cross = torso.CFrame.lookVector:Cross(toMouseArm)
  181.             if lateralAngle > math.pi/2 then
  182.                 lateralAngle = math.pi/2
  183.             end
  184.             if cross.Y < 0 then
  185.                 lateralAngle = -lateralAngle
  186.             end
  187.         end
  188.        
  189.         -- Turn shoulder to point to mouse
  190.         shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
  191.        
  192.         -- If not sitting then aim torso laterally towards mouse
  193.         if not amISitting(player.Character) then
  194.             torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
  195.                 mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
  196.         else
  197.             --print("sitting")     
  198.         end
  199.     end
  200. end
  201.  
  202. -- Function to bind to render stepped if player is on PC
  203. local function pcFrame()
  204.     frame(mouse.Hit.p)
  205. end
  206.  
  207. -- Function to bind to touch moved if player is on mobile
  208. local function mobileFrame(touch, processed)
  209.     -- Check to see if the touch was on a UI element. If so, we don't want to update anything
  210.     if not processed then
  211.         -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
  212.         -- to create a ray from the camera.
  213.         local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
  214.         local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
  215.         nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
  216.         local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
  217.         farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
  218.         if farPos.magnitude > 900 then
  219.             farPos = farPos.unit * 900
  220.         end
  221.         local ray = Ray.new(nearPos, farPos)
  222.         local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
  223.        
  224.         -- if a position was found on the ray then update the character's rotation
  225.         if pos then
  226.             frame(pos)
  227.         end
  228.     end
  229. end
  230.  
  231. local oldIcon = nil
  232. -- Function to bind to equip event
  233. local function equip()
  234.     local torso = player.Character.Torso
  235.    
  236.     -- Setup joint variables
  237.     neck = torso.Neck  
  238.     oldNeckC0 = neck.C0
  239.     shoulder = torso:FindFirstChild("Right Shoulder")
  240.     oldShoulderC0 = shoulder.C0
  241.    
  242.     -- Remember old mouse icon and update current
  243.     oldIcon = mouse.Icon
  244.     mouse.Icon = "rbxassetid:// 2184939409"
  245.    
  246.     -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
  247.     if userInputService.TouchEnabled then
  248.         connection = userInputService.TouchMoved:connect(mobileFrame)
  249.     else
  250.         connection = render:connect(pcFrame)
  251.     end
  252.    
  253.     -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
  254.     -- during touch input
  255.     userInputService.TouchStarted:connect(function(touch, processed)
  256.         mobileShouldTrack = not processed
  257.     end)   
  258.     userInputService.TouchEnded:connect(function(touch, processed)
  259.         mobileShouldTrack = false
  260.     end)
  261.    
  262.     -- Fire server's equip event
  263.     game.ReplicatedStorage.ROBLOX_PistolEquipEvent:FireServer()
  264.    
  265.     -- Bind event for when mouse is clicked to fire server's fire event
  266.     mouse.Button1Down:connect(function()
  267.         game.ReplicatedStorage.ROBLOX_PistolFireEvent:FireServer(mouse.Hit.p)
  268.     end)
  269.    
  270.     -- Bind reload event to mobile button and r key
  271.     contextActionService:BindActionToInputTypes("Reload", function()
  272.         game.ReplicatedStorage.ROBLOX_PistolReloadEvent:FireServer()       
  273.     end, true, "")
  274.    
  275.     -- If game uses filtering enabled then need to update server while tool is
  276.     -- held by character.
  277.     if workspace.FilteringEnabled then
  278.         while connection do
  279.             wait()
  280.             game.ReplicatedStorage.ROBLOX_PistolUpdateEvent:FireServer(neck.C0, shoulder.C0)
  281.         end
  282.     end
  283. end
  284.  
  285. -- Function to bind to Unequip event
  286. local function unequip()
  287.     if connection then connection:disconnect() end
  288.     contextActionService:UnbindAction("Reload")
  289.     game.ReplicatedStorage.ROBLOX_PistolUnequipEvent:FireServer()
  290.     mouse.Icon = oldIcon
  291.     neck.C0 = oldNeckC0
  292.     shoulder.C0 = oldShoulderC0
  293. end
  294.  
  295. -- Bind tool events
  296. Tool.Equipped:connect(equip)
  297. Tool.Unequipped:connect(unequip)
  298. end))
  299. Script5.Name = "qPerfectionWeld"
  300. Script5.Parent = Tool0
  301. table.insert(cors,sandbox(Script5,function()
  302. -- Created by Quenty (@Quenty, follow me on twitter).
  303. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  304. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  305.  
  306.  
  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
  1072. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(269.815, 1778.2, 110.599)
  1073. local Bespate = Instance.new("Part")
  1074. Bespate.Parent = workspace
  1075. Bespate.Anchored = true
  1076. Bespate.Size = Vector3.new(336, 1, 233)
  1077. Bespate.CanCollide = true
  1078. Bespate.Position = Vector3.new(120.569, 1777.7, 132.928)
  1079.  
  1080. local part1 = Instance.new("Part")
  1081. part1.Parent = workspace
  1082. part1.Anchored = true
  1083. part1.Size = Vector3.new(7,6,1)
  1084. part1.CanCollide = true
  1085. part1.Position = Vector3.new(287.535, 1782.2, 116.921)
  1086. part1.Rotation = Vector3.new(0, 90, 0)
  1087. local parttext11 = Instance.new("SurfaceGui", part1)
  1088. parttext11.Adornee = part1
  1089. local parttext11 = Instance.new("TextLabel", parttext11)
  1090. parttext11.Size = UDim2.new(1, 1, 1, 1)
  1091. parttext11.TextScaled = true
  1092. parttext11.Text = "Touch For Spawn Part"
  1093. parttext11.Font = "Code"
  1094.  
  1095. local PartSpawner = Instance.new("Part")
  1096. PartSpawner.Parent = workspace
  1097. PartSpawner.Anchored = true
  1098. PartSpawner.Size = Vector3.new(7, 2, 6)
  1099. PartSpawner.CanCollide = true
  1100. PartSpawner.Position = Vector3.new(284.871, 1778.7, 116.841)
  1101. Touched = false
  1102. PartSpawner.Touched:connect(function(player)
  1103. if Touched == false then
  1104. Touched = true
  1105. if player.Parent.ClassName == "Model" then
  1106. local SpawnedPart = Instance.new("Part")
  1107. SpawnedPart.Parent = workspace
  1108. SpawnedPart.Anchored = false
  1109. SpawnedPart.Size = Vector3.new(4, 1, 2)
  1110. SpawnedPart.CanCollide = true
  1111. SpawnedPart.Position = Vector3.new(262.776, 1791.2, 116.859)
  1112.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  1113.         player.Parent.Humanoid.HipHeight = 0/0
  1114.         wait(3)
  1115.         player.Parent:Destroy()
  1116.     end
  1117. end
  1118. Touched = false
  1119. end
  1120. end)
  1121. local Player = game.Players.LocalPlayer
  1122. local Character = Player.Character
  1123. local Humanoid = Character.Humanoid
  1124. Humanoid.MaxHealth = 100
  1125. Humanoid.HealthChanged:connect(function()
  1126. if Humanoid.Health < 5 then
  1127. Humanoid.Health = Humanoid.MaxHealth
  1128. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(269.815, 1778.2, 110.599)
  1129. end
  1130. end)
  1131. local L = game:GetService("Lighting") L.ClockTime = 12
  1132. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement