Advertisement
HenloMyDude

stupid giant that breaks stupid buildings

Apr 22nd, 2020
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
  5.  
  6. plr = owner
  7. char = plr.Character
  8. sc = 3
  9.  
  10. for k,g in pairs (char:GetDescendants()) do
  11. if g:IsA("Weld") then
  12. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  13. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  14. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  15. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  16. elseif g:IsA("SpecialMesh") then
  17. if g.MeshType ~= Enum.MeshType.Head then
  18. g.Scale = g.Scale*sc
  19. end
  20. elseif g:IsA("Part") or g:IsA("MeshPart") then
  21. g.Size = g.Size*sc
  22. elseif g:IsA("Motor") or g:IsA("Motor6D") then
  23. local Angle0 = g.C0 - Vector3.new(g.C0.X,g.C0.Y,g.C0.Z)
  24. local Angle1 = g.C1 - Vector3.new(g.C1.X,g.C1.Y,g.C1.Z)
  25. g.C0 = CFrame.new(g.C0.X*sc,g.C0.Y*sc,g.C0.Z*sc) * Angle0
  26. g.C1 = CFrame.new(g.C1.X*sc,g.C1.Y*sc,g.C1.Z*sc) * Angle1
  27. end
  28. end
  29.  
  30. ra = char["Right Arm"]
  31. la = char["Left Arm"]
  32. rl = char["Right Leg"]
  33. ll = char["Left Leg"]
  34. hed = char.Head
  35. root = char.HumanoidRootPart
  36. hum = char.Humanoid
  37. dancin = false
  38.  
  39. clerp = function(toclerp, cf, number)
  40. local joint = toclerp
  41. joint.C0 = joint.C0:Lerp(cf, number)
  42. end
  43.  
  44. clerp2 = function(toclerp, cf)
  45. local joint = toclerp
  46. joint.C0 = cf
  47. end
  48.  
  49. clerp3 = function(toclerp, cf, number)
  50. local joint = toclerp
  51. joint.C1 = joint.C1:Lerp(cf, number)
  52. end
  53.  
  54. Swait,swait = function(number)
  55. if number == 0 or number == nil then
  56. game:GetService("RunService").Heartbeat:Wait()
  57. else
  58. for i = 1,number do
  59. game:GetService("RunService").Heartbeat:Wait()
  60. end
  61. end
  62. end
  63.  
  64. ezweld = function(p, a, b, cf)
  65. local weld = Instance.new("Weld",p)
  66. weld.Part0 = a
  67. weld.Part1 = b
  68. weld.C0 = cf
  69. return weld
  70. end
  71.  
  72. NewSound = function(p, id, pit, vol, loop)
  73. local Sound = Instance.new("Sound",p)
  74. Sound.Pitch = pit
  75. Sound.Volume = vol
  76. Sound.SoundId = "rbxassetid://" ..id
  77. Sound.Looped = loop
  78. Sound:Play()
  79. return Sound
  80. end
  81.  
  82. IT = Instance.new
  83. Rad = math.rad
  84. Cos = math.cos
  85. Sin = math.sin
  86. BrickC = BrickColor.new
  87. C3 = Color3.new
  88. VT = Vector3.new
  89.  
  90. anim = "Idle"
  91. attack = false
  92. local RS = char.Torso["Right Shoulder"]
  93. local LS = char.Torso["Left Shoulder"]
  94. local RH = char.Torso["Right Hip"]
  95. local LH = char.Torso["Left Hip"]
  96. local neck = char.Torso["Neck"]
  97. local root = char.HumanoidRootPart
  98. local rootj = root.RootJoint
  99. local sine = 0
  100. local RSnor = RS.C0
  101. local LSnor = LS.C0
  102. local RHnor = RH.C0
  103. local LHnor = LH.C0
  104. local RSnor2 = RS.C1
  105. local LSnor2 = LS.C1
  106. local RHnor2 = RH.C1
  107. local LHnor2 = LH.C1
  108. local rootjnor = rootj.C0
  109. local necknor = neck.C0
  110. local tors = char.Torso
  111. mouse = plr:GetMouse()
  112. hold = false
  113. Debris = game:GetService("Debris")
  114.  
  115. sped = 16
  116. keyhold = false
  117. spino = 0
  118. hito = true
  119.  
  120. function RayCast(Position, Direction, Range, Ignore)
  121. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  122. end
  123.  
  124. function fling(p, f)
  125. p.Velocity = Vector3.new(math.random(-f, f), math.random(-f, f), math.random(-f, f))
  126. end
  127.  
  128. function stomp()
  129. attack = true
  130. for i = 1,11 do
  131. Swait()
  132. clerp(rootj, rootjnor * CFrame.Angles(math.rad(15), 0, 0), 0.15)
  133. clerp(RH, RHnor * CFrame.Angles(math.rad(-3), 0, math.rad(15))*CFrame.new(2.25, 1.65, 0), 0.25)
  134. clerp(LH, LHnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15)
  135. clerp(RS, RSnor * CFrame.Angles(math.rad(-3), 0, math.rad(15)), 0.15)
  136. clerp(LS, LSnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15)
  137. end
  138. local eb = Instance.new("Part", char)
  139. eb.CanCollide = false
  140. eb.Transparency = 1
  141. eb.Size = rl.Size
  142. eb.Anchored = false
  143. local a = Instance.new("BodyVelocity", eb)
  144. a.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  145. local ee = eb.Touched:connect(function(hit)
  146. local dud = hit
  147. if dud then
  148. if hit.Locked == false and hit.CanCollide == true then
  149. hit.Anchored = false
  150. hit.CanCollide = true
  151. hit:BreakJoints()
  152. fling(hit, 130)
  153. end
  154. end
  155. end)
  156. for i = 1,11 do
  157. Swait()
  158. eb.CFrame = rl.CFrame
  159. clerp(rootj, rootjnor * CFrame.Angles(math.rad(15), 0, 0), 0.15)
  160. clerp(RH, RHnor * CFrame.Angles(math.rad(-3), 0, math.rad(15))*CFrame.new(2.25, -0.75, 0), 0.25)
  161. clerp(LH, LHnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15)
  162. clerp(RS, RSnor * CFrame.Angles(math.rad(-3), 0, math.rad(-15)), 0.15)
  163. clerp(LS, LSnor * CFrame.Angles(math.rad(-3), 0, math.rad(15)), 0.15)
  164. end
  165. ee:disconnect()
  166. for i = 1,15 do
  167. Swait()
  168. clerp(rootj, rootjnor, 0.2)
  169. clerp(RH, RHnor, 0.2)
  170. clerp(LH, LHnor, 0.2)
  171. clerp(RS, RSnor, 0.2)
  172. clerp(LS, LSnor, 0.2)
  173. end
  174. attack = false
  175. end
  176.  
  177. mouse.Button1Down:connect(function()
  178. if attack == false then
  179. stomp()
  180. end
  181. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement