DrakerMaker

meme

Oct 4th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.36 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. function wbtwe(Part0, Part1, C0)
  83. local weld = Instance.new("Weld", Part0)
  84. weld.Part0 = Part0
  85. weld.Part1 = Part1
  86. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  87. return weld
  88. end
  89. function rayCast(Position, Direction, Range, Ignore)
  90. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  91. end
  92. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
  93. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3))
  94. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3))
  95. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.2, 2.4, 0) *CFrame.Angles(0, 25, 0.3))
  96. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(0, 0, -0.3))
  97. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.4, 0))
  98. head = 0.1
  99. anim = true
  100. deb = false
  101. local player = owner
  102. local char = player.Character
  103. local song = Instance.new("Sound", char.Head)
  104. song.SoundId = "rbxassetid://231316492"
  105. song.Volume = 2
  106. song.Looped = true
  107. song:Play()
  108. local bang = Instance.new("Sound", char.Head)
  109. bang.SoundId = "rbxassetid://356659053"
  110. bang.Volume = 2
  111. local kebab = Instance.new("Sound", char.Head)
  112. kebab.SoundId = "rbxassetid://133724225"
  113. kebab.Volume = 2
  114. local aaa = Instance.new("Sound", char.Torso)
  115. aaa.SoundId = "rbxassetid://418249112"
  116. aaa.Volume = 2
  117. local txt = Instance.new("BillboardGui", char)
  118. txt.Adornee = char .Head
  119. txt.Name = "_status"
  120. txt.Size = UDim2.new(2, 0, 0.3, 0)
  121. txt.StudsOffset = Vector3.new(-9, 4, 0)
  122. local text = Instance.new("TextLabel", txt)
  123. text.Size = UDim2.new(10, 0, 7, 0)
  124. text.FontSize = "Size24"
  125. text.TextScaled = true
  126. text.TextTransparency = 0
  127. text.BackgroundTransparency = 1
  128. text.TextTransparency = 0
  129. text.TextStrokeTransparency = 0
  130. text.Font = "Highway"
  131. text.TextStrokeColor3 = BrickColor.new("Black").Color
  132. text.TextColor3 = BrickColor.new("Institutional white").Color
  133. text.Text = "meme"
  134. owner.Character.Humanoid.WalkSpeed = 25
  135. an= coroutine.wrap(function()
  136. while game:GetService("RunService").Stepped:wait() do
  137. if anim == true then
  138. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  139. head = head +0.1
  140. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, math.sin(head) *1, 0), 0.1)
  141. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -math.sin(head) *0.2, 0) *CFrame.Angles(0, math.sin(head) *0.01, 0), 0.05)
  142. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3), 0.1)
  143. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
  144. llw.C0 = llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.2, 2.4, 0) *CFrame.Angles(0, 25, 0.3), 0.1)
  145. rlw.C0 = rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
  146. end
  147. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  148. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * 1, owner.Character)
  149. if hitfloor then
  150. head = head +0.3
  151. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, math.sin(head) *1, 0), 0.1)
  152. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -math.sin(head) *0.2, 0) *CFrame.Angles(0, 0, 0), 0.1)law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3), 0.1)
  153. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(math.sin(head) *1, 0, -0.3), 0.1)
  154. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0) *CFrame.Angles(math.sin(-head) *1, 25, 0.3), 0.1)
  155. llw.C0 = llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.2, 2.4, 0) *CFrame.Angles(math.sin(head) *1, 25, 0.3), 0.1)
  156. rlw.C0 = rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(math.sin(-head) *1, 0, -0.3), 0.1)
  157. end
  158. if hitfloor == nil then
  159. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -1) *CFrame.Angles(1, 0, 0), 0.1)
  160. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0), 0.1)law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3), 0.1)
  161. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
  162. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0) *CFrame.Angles(0, 25, 0.3), 0.1)
  163. llw.C0 = llw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0.2, 2.4, -1) *CFrame.Angles(0, 25, 0.3), 0.1)
  164. rlw.C0 = rlw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(1, 0, -0.3), 0.1)
  165. end
  166. end
  167. end
  168. end
  169. end)an()
  170. mouse.KeyDown:connect(function(key)
  171. if key == "e" then
  172. if deb == false then
  173. deb = true
  174. anim = false
  175. song:Pause()
  176. kebab:Play()
  177. bang:Play()
  178. text.Text = "mental breakdown rn"
  179. owner.Character.Humanoid.WalkSpeed = 10
  180. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 1.5, 0) *CFrame.Angles(0, 0, 0)
  181. for i = 0,1,0.1 do
  182. game:GetService("RunService").Stepped:wait()
  183. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 1.5, 0) *CFrame.Angles(0, 0, 0), 0.1)law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0.1) *CFrame.Angles(0, 25, 0), 0.01)
  184. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0, 0) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25)), 0.1)
  185. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25)), 0.1)
  186. llw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.3, 2.4, 0) *CFrame.Angles(0, 25, 0)
  187. rlw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1.3, 2.4, 0) *CFrame.Angles(0, 0, 0)
  188. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.04, 0), 0.1)
  189. end
  190. for X = 1,205 do
  191. game:GetService("RunService").Stepped:wait()
  192. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 1.5, 0) *CFrame.Angles(0, 0, 0), 0.1)law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0.1) *CFrame.Angles(0, 25, 0), 0.1)
  193. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0, 0) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25)), 0.1)
  194. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25)), 0.1)
  195. llw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(1.3, 2.4, 0) *CFrame.Angles(0, 25, 0)
  196. rlw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(-1.3, 2.4, 0) *CFrame.Angles(0, 0, 0)
  197. hw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.04, 0)
  198. hw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(math.random(-1, 1), math.random(-25, 25), math.random(-1, 1))
  199. end
  200. kebab:Stop()
  201. song:Resume()
  202. owner.Character.Humanoid.WalkSpeed = 25
  203. deb = false
  204. text.Text = "meme"
  205. anim = true
  206. end
  207. end
  208. if key == "z" then
  209. if deb == false then
  210. deb = true
  211. anim = false
  212. aaa:Play()
  213. text.Text = "glitch moment"
  214. for X = 1,105 do
  215. game:GetService("RunService").Stepped:wait()
  216. hrw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(0, 0, 0)law.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(0, 25, 0)
  217. raw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  218. law.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  219. llw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(math.random(-3, 1.5), math.random(-3, 1.5), math.random(-3, 1.5)) *CFrame.Angles(0, 25, 0)
  220. rlw.C0 = owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(math.random(-3, 1.5), math.random(-3, 1.5), math.random(-3, 1.5)) *CFrame.Angles(0, 0, 0)
  221. hw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(0, 0.04, 0)
  222. hw.C0 = owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5)), math.rad(math.random(-1.5, 1.5))) *CFrame.Angles(math.random(-1, 1), math.random(-25, 25), math.random(-1, 1))
  223. end
  224. aaa:Stop()
  225. deb = false
  226. anim = true
  227. text.Text = "meme"
  228. end
  229. end
  230. end)
Add Comment
Please, Sign In to add comment