Advertisement
lafur

Untitled

Nov 9th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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 local Player = game.Players.LocalPlayer
  6. local mouse = Player:GetMouse()
  7. local char = Player.Character
  8. local hum = char:WaitForChild("Humanoid")
  9. local head = char:WaitForChild("Head")
  10. local torso = char:WaitForChild("Torso")
  11. local root = char:WaitForChild("HumanoidRootPart")
  12. local rarm = char["Right Arm"]
  13. local larm = char["Left Arm"]
  14. local rleg = char["Right Leg"]
  15. char.Archivable = true
  16. local lleg = char["Left Leg"]
  17. enabled = false
  18. --person = workspace.Suflet
  19. rage = true
  20. deb = false
  21. local o_torso = root["RootJoint"].C1
  22. local o_head = torso["Neck"].C1
  23. local o_rarm = torso["Right Shoulder"].C1
  24. local o_larm = torso["Left Shoulder"].C1
  25. local o_rleg = torso["Right Hip"].C1
  26. local o_lleg = torso["Left Hip"].C1
  27. brickval = BrickColor.new("New Yeller")
  28. sizeval = 0.1
  29. math.randomseed(tick())
  30. --head.Mesh.Scale = Vector3.new(3,3,3)
  31. local _torso = root["RootJoint"]
  32. local _head = torso["Neck"]
  33. local _rarm = torso["Right Shoulder"]
  34. local _larm = torso["Left Shoulder"]
  35. local _rleg = torso["Right Hip"]
  36. local _lleg = torso["Left Hip"]
  37. horns = Instance.new("Part", char)
  38. horns.CanCollide = false
  39. horns.Material = "Neon"
  40. horns.Name = "ramhorns"
  41. mesh = Instance.new("SpecialMesh", horns)
  42. mesh.MeshId = "rbxassetid://434078905"
  43. mesh.TextureId = "http://www.roblox.com/asset/?id=86972269"
  44. mesh.Scale = Vector3.new(4,4,4.5)
  45. weld = Instance.new("Weld", char)
  46. weld.Part0 = horns
  47. weld.Part1 = head
  48. weld.C1 = CFrame.new(0,.5,.8)
  49. weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  50. --_torso.C0 = CFrame.Angles(math.rad(180),0,math.rad(180))
  51. --_lleg.C0 = CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  52. --_rleg.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
  53. hum.AutoRotate = false
  54. v = 1
  55. hold = false
  56.  
  57. function babies()
  58. pooped = char:Clone()
  59. pooped.Parent = workspace
  60. pooped.Torso.CFrame = torso.CFrame * CFrame.new(0,-1,2)
  61. pooped.Torso.Velocity = -torso.CFrame.lookVector * math.random(10,30)
  62. pooped.ramhorns:Destroy()
  63. --pooped
  64. --v = Instance.new("BodyVelocity", pooped.Torso)
  65. --[[ spawn(function()
  66. if laid == true then
  67. while wait() do
  68. pooped.Humanoid:MoveTo(torso.Position)
  69. end
  70. end)--]]
  71.  
  72. pooped.Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  73. pooped.Humanoid:SetStateEnabled(1, false)
  74. function find(tab, arg, pos)
  75. for i,v in pairs(tab) do
  76. if v == arg and i == pos then
  77. return true
  78. end
  79. end
  80. return false
  81. end
  82.  
  83. function makeGiant(Character, S)
  84. local welds, hats = {}, {}
  85. local torso = Character:findFirstChild("Torso")
  86. head = Character:FindFirstChild("Head")
  87. local pos = torso.Position
  88. local ssss = torso.Size.Y
  89. for _,v in pairs(torso:children()) do
  90. if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then
  91. table.insert(welds, {v, v.Part0, v.Part1})
  92. end
  93. end
  94. for _, v in pairs(Character:children()) do
  95. if v:IsA("Hat") then
  96. v.AttachmentPos = v.AttachmentPos*S
  97. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale*S
  98. v:Destroy()
  99. table.insert(hats, v)
  100. elseif v:IsA("BasePart") then
  101. v.formFactor = "Custom"
  102. v.Size = v.Size*S
  103. elseif v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then
  104. end
  105. end
  106. local anim = Character.Animate
  107. local animc = anim:clone()
  108. anim:remove()
  109. for _,v in pairs(welds) do
  110. local c1 = v[1].C1
  111. local c0 = v[1].C0
  112. local a1, a2, a3 = c1:toEulerAnglesXYZ()
  113. local b1, b2, b3 = c0:toEulerAnglesXYZ()
  114. c1 = CFrame.new(c1.p * S) * CFrame.Angles(a1, a2, a3)
  115. c0 = CFrame.new(c0.p * S) * CFrame.Angles(b1, b2, b3)
  116. local clon = v[1]:clone()
  117. v[1]:remove()
  118. clon.C1 = c1
  119. clon.C0 = c0
  120. clon.Part1 = v[3]
  121. clon.Part0 = v[2]
  122. clon.Parent = Character.Torso
  123. finalweld = Instance.new("Weld", Character)
  124. finalweld.Part0 = Character.Torso
  125. finalweld.Part1 = Character.HumanoidRootPart
  126. end
  127. animc.Parent = Character
  128. Character.Humanoid.WalkSpeed = 6+10*S
  129.  
  130. Character:MoveTo(pos+Vector3.new(0,S*(ssss/2),0))
  131. wait(0.1)
  132. Character.Humanoid.HipHeight = 0
  133.  
  134. for i,v in pairs(hats) do
  135. end
  136. end
  137.  
  138. makeGiant(pooped, 0.4)
  139. end
  140.  
  141. mouse.KeyDown:connect(function(key)
  142. if key == "e" then
  143. asd = math.random(1,10)
  144. asd2 = math.random(1,4)
  145. for i = 1,asd2 do
  146. p = Instance.new("Part", workspace)
  147. if asd ~= 5 then
  148. p.CFrame = torso.CFrame * CFrame.new(math.random(-20,20)/10,-1,2)
  149. p.Size = Vector3.new(0.4,0.4,0.4 )
  150. p.BrickColor = BrickColor.new("Rust")
  151. p.Velocity = -torso.CFrame.lookVector * math.random(10,30)
  152. elseif asd == 5 then
  153. asd2 = 1
  154. --[[p.Size = Vector3.new(2,2,2)
  155. p.BrickColor = BrickColor.new("New Yeller")
  156. p.Material = "Neon"
  157. p.CFrame = torso.CFrame--]]
  158. --babies()
  159.  
  160. end
  161. end
  162. elseif key == "r" then
  163. babies()
  164. end
  165. end)
  166. mouse.Button1Down:connect(function()
  167. hitbox = Instance.new("Part", char)
  168. hitbox.Size = Vector3.new(4,1,4)
  169. hitbox.Transparency = 1
  170. hitbox.CanCollide = false
  171. w = Instance.new("Weld", char )
  172. w.Part0 = hitbox
  173. w.Part1 = head
  174. w.C1 = CFrame.new(0,1,0)
  175. deb = false
  176. function onDamage(Part)
  177. if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= game.Players.LocalPlayer.Name and deb == false then
  178. deb = true
  179. Part.Parent.Humanoid.PlatformStand = true
  180. Part.Parent.Humanoid:TakeDamage(v/5 * Part.Parent.Humanoid.MaxHealth/600)
  181. Part.Parent.Torso.Velocity = root.CFrame.lookVector *Vector3.new(v,v,v)
  182. end
  183. wait(3)
  184. deb = false
  185. end
  186.  
  187. hitbox.Touched:connect(onDamage)
  188. hold = true
  189. _torso.C0 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(180),0,math.rad(180))
  190. _lleg.C0 = CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  191. _rleg.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(90))
  192. vel = Instance.new("BodyVelocity", root)
  193. vel.maxForce = Vector3.new(math.huge,0,math.huge)
  194. spawn(function()
  195. game:getService("RunService").RenderStepped:connect(function()
  196. local mp = mouse.Hit.p+ Vector3.new(-2,0,0)
  197. torso.CFrame = CFrame.new(torso.Position, Vector3.new(mp.x, torso.Position.Y, mp.z))
  198. end)
  199. end)
  200. v = 20
  201. val = 0
  202. spawn(function()
  203. while hold == true do
  204. local p = Instance.new("Part", workspace)
  205. p.Anchored = true
  206. p.CFrame = head.CFrame * CFrame.Angles(math.rad(180),0,0)
  207. p.CanCollide = false
  208. if rage == false then
  209. p.Size = Vector3.new(0.1,0.1,0.1)
  210. p.BrickColor = brickval
  211. elseif rage == true then
  212. p.BrickColor = BrickColor.new("Really red")
  213. end
  214. local mesh = Instance.new("SpecialMesh", p)
  215. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  216. game.Debris:AddItem(p, 3)
  217. spawn(function()
  218. if rage == false then
  219. for i = 1,100 do
  220. p.Transparency = i/10
  221. mesh.Scale = mesh.Scale + Vector3.new(sizeval*10,sizeval,sizeval*10)
  222. wait()
  223. end
  224. elseif rage == true then
  225. for i = 1,100 do
  226. p.Transparency = i/10
  227. mesh.Scale = mesh.Scale + Vector3.new(sizeval*80,sizeval*10,sizeval*80)
  228. wait()
  229. end
  230. end
  231. end)
  232. wait(2)
  233. end
  234. end)
  235. while hold == true do
  236. v=v+0.7
  237. vel.maxForce = Vector3.new(math.huge,0,math.huge)
  238. vel.velocity = Player.Character.HumanoidRootPart.CFrame.lookVector * v
  239. wait()
  240. end
  241. end)
  242.  
  243. mouse.Button1Up:connect(function()
  244. hitbox:Destroy()
  245. _torso.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),0,math.rad(180))
  246. _lleg.C0 = CFrame.new(1,-1,0)*CFrame.Angles(math.rad(180),math.rad(90),math.rad(180))
  247. _rleg.C0 = CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(180),math.rad(-90),math.rad(180))
  248. hold = false
  249. v = 0
  250. vel:Destroy()
  251. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement