Advertisement
sIendytubble

yeetify

Aug 14th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.98 KB | None | 0 0
  1. -- the reason im making this script is because
  2. -- my main got banned for 3 days (rip)
  3. -- and its fun
  4. -- most of this is from grab knife v4 (leaked version lmao)
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  55. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  56. end
  57. for _,t in pairs(CAS.Actions) do
  58. for _,k in pairs(t.Keys) do
  59. if k==io.KeyCode then
  60. t.Function(t.Name,io.UserInputState,io)
  61. end
  62. end
  63. end
  64. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  65. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  66. end
  67. end)
  68. Event.Parent = NLS([==[
  69. local Player = game:GetService("Players").LocalPlayer
  70. local Event = script:WaitForChild("UserInput_Event")
  71. local Mouse = Player:GetMouse()
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80. local h,t
  81. --Give the server mouse data 30 times every second, but only if the values changed
  82. --If player is not moving their mouse, client won't fire events
  83. while wait(1/30) do
  84. if h~=Mouse.Hit or t~=Mouse.Target then
  85. h,t=Mouse.Hit,Mouse.Target
  86. Event:FireServer({isMouse=true,Target=t,Hit=h})
  87. end
  88. end]==],Player.Character)
  89.  
  90. ----Sandboxed game object that allows the usage of client-side methods and services
  91. --Real game object
  92. local _rg = game
  93.  
  94. --Metatable for fake service
  95. local fsmt = {
  96. __index = function(self,k)
  97. local s = rawget(self,"_RealService")
  98. if s then
  99. return typeof(s[k])=="function"
  100. and function(_,...)return s[k](s,...)end or s[k]
  101. end
  102. end,
  103. __newindex = function(self,k,v)
  104. local s = rawget(self,"_RealService")
  105. if s then s[k]=v end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return rawget(self,s) or _rg:GetService(s)
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. RunService = FakeService({
  124. _btrs = {},
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127. self._btrs[name] = self.Heartbeat:Connect(fun)
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133. }
  134. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  135. g.service = g.GetService
  136. FakeService(g,game)
  137. --Changing owner to fake player object to support owner:GetMouse()
  138. game,owner = g,g.Players.LocalPlayer
  139. end
  140. local list = {}
  141. local minimumsize = Vector3.new(0.6,0.6,0.6)
  142. local fragmentable = workspace
  143. local surface_between_splitted_parts = 'SmoothNoOutlines'
  144. function fragmentate(cframe,size,color,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance,material,anchored,heck,ree,same)
  145. local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1
  146. local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1
  147. local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1
  148. if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then
  149. if xi == 1 and yi == 1 and zi == 1 then return end
  150. local p = Instance.new("Part",fragmentable)
  151. p.BrickColor = color
  152. p.FormFactor = "Custom"
  153. if heck then
  154. p.Anchored = anchored
  155. else
  156. p.Anchored = false
  157. end
  158. p.Size = size
  159. p.BackSurface = backsurface
  160. p.BottomSurface = bottomsurface
  161. p.FrontSurface = frontsurface
  162. p.LeftSurface = leftsurface
  163. p.RightSurface = rightsurface
  164. if heck ~= true or ree == true then
  165. local int = Instance.new('IntValue',p)
  166. int.Name = 'already broken u pleb'
  167. end
  168. p.TopSurface = topsurface
  169. if redmode and ree and same ~= true then
  170. spawn(function()
  171. repeat
  172. p.Color = Color3.new(1,0,0)
  173. p.Material = Enum.Material.Neon
  174. wait()
  175. until p.Color == Color3.new(1,0,0) and p.Material == Enum.Material.Neon
  176. end)
  177. end
  178. p.Transparency = transparency
  179. p.Material = material
  180. if heck ~= true or ree then
  181. game:GetService('Debris'):AddItem(p,10)
  182. end
  183. p.CFrame = cframe
  184. p.Reflectance = reflectance
  185. p:BreakJoints()
  186. return
  187. end
  188. local mody = math.random(-125,125)/1000
  189. for y = 1,yi do
  190. if math.random()> 0.5 then
  191. local modx = math.random(-125,125)/1000
  192. for x = 1,xi do
  193. local modz = math.random(-125,125)/1000
  194. for z = 1,zi do --offset = x/xi-0.75+modx)
  195. fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)),
  196. Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
  197. zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius,
  198. z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
  199. z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
  200. y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material,anchored,heck,ree,same)
  201. end
  202.  
  203. end
  204. else
  205. local modz = math.random(-125,125)/1000
  206. for z = 1,zi do
  207. local modx = math.random(-125,125)/1000
  208. for x = 1,xi do
  209. fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)),
  210. Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
  211. zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius,
  212. z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
  213. z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
  214. y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance,material,anchored,heck,ree,same)
  215. end
  216. end
  217. end
  218. end
  219. end
  220.  
  221. function start_fragmentation(position,radius,bigoof,smoloof,samecolor)
  222. if bigoof then
  223. workspace:FindFirstChildOfClass('Terrain'):FillBall(position,radius*2,Enum.Material.Air)
  224. end
  225. local search = Region3.new(position-Vector3.new(radius,radius,radius)*1.1,position+Vector3.new(radius,radius,radius)*1.1)
  226. repeat
  227. local finish = false
  228. local parts = workspace:FindPartsInRegion3WithIgnoreList(search,list,100)
  229. for i = 1,#parts do
  230. table.insert(list,1,parts[i])
  231. end
  232. finish = true
  233. until #parts < 100 and finish
  234. local t = tick()
  235. for i = 1,#list do
  236. local p = list[i]
  237. if p:FindFirstChild('already broken u pleb') == nil and p:IsA('CornerWedgePart') == false and p:IsA('TrussPart') == false and p:IsA('WedgePart') == false and p.Parent and p.Parent.Name ~= "Projectile" and p:IsDescendantOf(fragmentable) and (p:GetMass()<50000 or p.Anchored == true) and p.Name ~= "fuieror" and (p.Transparency>0.285 or (bigoof == true and (samecolor ~= true or p.Parent:FindFirstChildOfClass('Humanoid')))) and p.Name~='Base' and (p.Parent:FindFirstChildOfClass('Humanoid') == nil or smoloof == true) and (p.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil or smoloof == true) then
  238. if bigoof ~= true then
  239. local thingy = p
  240. local humm = p.Parent
  241. thingy.Parent = nil
  242. spawn(function()
  243. wait(10)
  244. thingy.Parent = humm
  245. end)
  246. else
  247. p:Destroy()
  248. end
  249. fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance,p.Material,p.Anchored,bigoof,smoloof,samecolor)
  250. end
  251. end
  252. list = {}
  253. end
  254. function firer(pos)
  255. for i=1,8 do
  256. fiore = Instance.new("Part",workspace)
  257. fiore.Massless = true
  258. fiore.Name = "fuieror"
  259. BOOMA = Instance.new("Sound",fiore)
  260. BOOMA.SoundId = "rbxassetid://4643825537"
  261. BOOMA.Volume = 10
  262. BOOMA:Play()
  263. fiore.Size = Vector3.new(1,1,1)
  264. fiore.Transparency = 1
  265. fiore.Position = pos
  266. Instance.new("Fire",fiore).Name = "fireor"
  267. fiore.Velocity = Vector3.new(math.random(1,50),math.random(1,50),math.random(1,50))
  268. end
  269. end
  270. function zaphit(hitpos)
  271. local exp = Instance.new('Explosion',workspace)
  272. exp.Position = hitpos
  273. exp.DestroyJointRadiusPercent = 0
  274. exp.BlastRadius = 9
  275. firer(hitpos)
  276. start_fragmentation(hitpos,7.5,true)
  277. exp.Hit:connect(function(hit)
  278. if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') then
  279. if hit.Parent ~= game.Players.LocalPlayer.Character then
  280. for i,v in pairs(hit.Parent:GetDescendants()) do
  281. if v:IsA('BasePart')then
  282. pcall(function()
  283. v.Parent = fragmentable
  284. end)
  285. local backpr = minimumsize
  286. minimumsize = Vector3.new(0.6,0.6,0.6)
  287. start_fragmentation(v.Position,0.05,true,true)
  288. minimumsize = backpr
  289. end
  290. end
  291. end
  292. end
  293. end)
  294. end
  295. torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  296. mouse = game.Players.LocalPlayer:GetMouse()
  297. RunService = game["Run Service"]
  298. Character = torso.Parent
  299. VirtualBody = Character
  300. H = Instance.new("Part",Character)
  301. H.Anchored = true
  302. H.Size = torso.Size
  303. H.Transparency = 1
  304. function woohoo(charg,waittime)
  305. coroutine.resume(coroutine.create(function()
  306. H.CFrame = charg.HumanoidRootPart.CFrame * CFrame.new(0,100,-1500)
  307. --torso.Parent.Humanoid:MoveTo(movetothing)
  308. --char.Torso.Parent.Humanoid.Jump = true
  309. charg.HumanoidRootPart.CFrame = charg.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  310. a = Instance.new("BodyPosition",charg.HumanoidRootPart)
  311. a.MaxForce = Vector3.new(9999,9999,9999)
  312. --a.Position = torso.Position + Vector3.new(0,9000,0)
  313. a.Position = H.Position
  314. charg.Humanoid.PlatformStand = true
  315. wait(waittime)
  316. po = false
  317. for i,v in pairs(charg.HumanoidRootPart:GetChildren()) do
  318. if v.ClassName == a.ClassName then
  319. v:Destroy()
  320. end
  321. end
  322. charg.HumanoidRootPart.Touched:Connect(function()
  323. charg.HumanoidRootPart:Destroy()
  324. zaphit(charg.Head.Position)
  325. end)
  326. a = Instance.new("Sound",charg.Head)
  327. a.SoundId = "rbxassetid://188565209"
  328. a.Volume = 10
  329. a:Play()
  330. --b = Instance.new("BodyPosition",char)
  331. --b.MaxForce = Vector3.new(9999,9999,9999)
  332. --b.Position = movetothing
  333. --a.Position = Point
  334. wait(2)
  335. -- for i,v in pairs(torso:GetChildren()) do
  336. -- if v.ClassName == b.ClassName then
  337. -- v:Destroy()
  338. -- end
  339. -- end
  340. end))
  341. end
  342. mouse.Button1Down:Connect(function()
  343. --torso.Velocity = torso.Velocity + Vector3.new(0,40,0) *10
  344. if mouse.Target.Parent ~= nil and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  345. woohoo(mouse.Target.Parent,0.3)
  346. end
  347. end)
  348. torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  349. mouse = game.Players.LocalPlayer:GetMouse()
  350. mouse.Button1Down:Connect(function()
  351. --zaphit(mouse.Hit.p)
  352. torso.Velocity = Vector3.new(0,8000,0) * 400
  353. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement