DrakerMaker

Pepsi Man

Oct 28th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.56 KB | None | 0 0
  1. -- you skids dont leak this rare script ok?
  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. do
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. function rayCast(Position, Direction, Range, Ignore)
  84. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  85. end
  86. local Player_Size = 1
  87. function wbtwe(first,second,c0)
  88. local weld = Instance.new("Weld", first)
  89. weld.Part0 = first
  90. weld.Part1 = second
  91. weld.C0 = second.CFrame:inverse() *second.CFrame *c0
  92. return weld
  93. end
  94. local beans= Instance.new("Sound", owner.Character.Head)
  95. beans.SoundId = "rbxassetid://2020952099"
  96. beans.Volume = 6
  97. local txt = Instance.new("BillboardGui", owner.Character)
  98. txt.Adornee = owner.Character.Head
  99. txt.Name = "_status"
  100. txt.Size = UDim2.new(2, 0, 0.2, 0)
  101. txt.StudsOffset = Vector3.new(-9, 3, 0)
  102. local text = Instance.new("TextLabel", txt)
  103. text.Size = UDim2.new(10, 0, 7, 0)
  104. text.FontSize = "Size24"
  105. text.TextScaled = true
  106. text.TextTransparency = 0
  107. text.BackgroundTransparency = 1
  108. text.TextTransparency = 0
  109. text.TextStrokeTransparency = 0
  110. text.Font = "Fantasy"
  111. text.TextColor3 = Color3.new(0.14902, 0, 1)
  112. text.Text = "PePsI mAn"
  113. shake = 1
  114. nod = 1
  115. breath = 1
  116. run = 1
  117. deb = false
  118. animt = true
  119. owner.Character.Humanoid.WalkSpeed = 35
  120. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
  121. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.34, 0, 0) *CFrame.Angles(0, 25.1, 0))
  122. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.34, 0, 0) *CFrame.Angles(0, 0, 0))
  123. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0))
  124. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
  125. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(-0.3, -1.5, 0) *CFrame.Angles(0, 0.5, -0.3))
  126. sound = Instance.new("Sound", owner.Character.Head)
  127. sound.SoundId = "rbxassetid://755227250"
  128. sound.Volume = 2
  129. sound.Looped = true
  130. sound:Play()
  131. attacktaunt = Instance.new("Sound", owner.Character.Head)
  132. attacktaunt.Volume = 8
  133. attacktaunt.SoundId = "rbxassetid://1718412034"
  134. anim = coroutine.wrap(function()
  135. while game:GetService("RunService").Stepped:wait() do
  136. if animt == true then
  137. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  138. llw.Part1 = owner.Character.HumanoidRootPart
  139. rlw.Part1 = owner.Character.HumanoidRootPart
  140. shake = shake +2.5
  141. nod = nod +0.5
  142. breath = breath +0.2
  143. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, math.cos(shake) *1.6, math.sin(nod) *0.3), 0.1)
  144. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(breath) *0.2, 0), 0.1)
  145. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, math.cos(breath) *0.2, 0) *CFrame.Angles(0, 25.1, 0), 0.1)
  146. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, math.cos(breath) *0.2, 0), 0.1)
  147. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0), 0.1)
  148. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0), 0.1)
  149. end
  150. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  151. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
  152. if hitfloor then
  153. llw.Part1 = owner.Character.HumanoidRootPart
  154. rlw.Part1 = owner.Character.HumanoidRootPart
  155. run = run +0.3
  156. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.2, 1) *CFrame.Angles(-1, math.sin(run) *0.2, math.cos(run) *0.2), 0.1)
  157. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) *CFrame.Angles(1, math.sin(run) *0.2, 0), 0.1)
  158. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 1, 0) *CFrame.Angles(1 + math.cos(run) *0.4, 25.1, 0), 0.1)
  159. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 1, 0) *CFrame.Angles(1 + math.cos(run) *0.4, 0, 0), 0.1)
  160. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1 +math.cos(run) *0.8 , -0.8 +math.sin(run) *0.8)*CFrame.Angles(math.sin(run) *0.8, 25.1, 0), 0.1)
  161. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1 +math.cos(-run) *0.8, -0.8 +math.sin(-run) *0.8) *CFrame.Angles(math.sin(-run) *0.8, 0, 0), 0.1)
  162. end
  163. if hitfloor == nil then
  164. llw.Part1 = owner.Character.Torso
  165. rlw.Part1 = owner.Character.Torso
  166. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0), 0.1)
  167. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) *CFrame.Angles(1.7, 0, 0), 0.1)
  168. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 1, 0) *CFrame.Angles(1.5, 25.1, 0), 0.1)
  169. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 1, 0) *CFrame.Angles(1.5, 0, 0), 0.1)
  170. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0)*CFrame.Angles(0, 25.1, 0), 0.1)
  171. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  172. end
  173. end
  174. end
  175. end
  176. end)anim()
  177. mouse.KeyDown:connect(function(k)
  178. if k == "v" then
  179. if deb == false then
  180. deb = true
  181. animt = false
  182. beans:Play()
  183. owner.Character.Humanoid.WalkSpeed = 5
  184. llw.Part1 = owner.Character.Torso
  185. rlw.Part1 = owner.Character.Torso
  186. for i = 1,100 do
  187. game:GetService("RunService").Stepped:Wait()
  188. 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(-1, 1), math.random(-1, 1))
  189. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) *CFrame.Angles(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)), 0.2)
  190. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 0, 0) *CFrame.Angles(math.random(-1, 1), 25.1, math.random(-1, 1)), 0.2)
  191. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 0, 0) *CFrame.Angles(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)), 0.2)
  192. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(math.random(-1, 1), 25.1, math.random(-1, 1)), 0.2)
  193. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)), 0.2)
  194. end
  195. llw.Part1 = owner.Character.HumanoidRootPart
  196. rlw.Part1 = owner.Character.HumanoidRootPart
  197. owner.Character.Humanoid.WalkSpeed = 35
  198. deb = false
  199. animt = true
  200. end
  201. end
  202. if k == "x" then
  203. if mouse.Target then
  204. if deb == false then
  205. deb = true
  206. anim = false
  207. attacktaunt:Play()
  208. owner.Character.Humanoid.WalkSpeed = 5
  209. llw.Part1 = owner.Character.Torso
  210. rlw.Part1 = owner.Character.Torso
  211. for i = 1,20 do
  212. game:GetService("RunService").Stepped:Wait()
  213. 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)
  214. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) , 0.2)
  215. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 0.9, 0) *CFrame.Angles(2.85, 25.1, 0), 0.2)
  216. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 0.9, 0) *CFrame.Angles(2.85, 0, 0), 0.2)
  217. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  218. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.2)
  219. end
  220. for i = 1,20 do
  221. game:GetService("RunService").Stepped:Wait()
  222. 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)
  223. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) , 0.2)
  224. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 0, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  225. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 0, 0) *CFrame.Angles(0, 0, 0), 0.2)
  226. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  227. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.2)
  228. end
  229. local thing1 = Instance.new("Part", workspace)
  230. thing1.Anchored = true
  231. thing1.Position = mouse.Hit.p
  232. thing1.BrickColor = mouse.Target.BrickColor
  233. thing1.Material = mouse.Target.Material
  234. thing1.TopSurface = "Smooth"
  235. thing1.BottomSurface = "Smooth"
  236. thing1.CFrame = thing1.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  237. thing1.Size = Vector3.new(1, 1, 1)
  238. local thing2 = Instance.new("Part", workspace)
  239. thing2.Anchored = true
  240. thing2.Size = Vector3.new(20, 20, 20)
  241. thing2.Position = mouse.Hit.p -Vector3.new(0, 20, 0)
  242. local pmesh = Instance.new("SpecialMesh", thing2)
  243. pmesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  244. pmesh.TextureId = "http://www.roblox.com/asset/?id=29796390"
  245. pmesh.Scale = Vector3.new(20, 20.2, 20)
  246. local pew = Instance.new("Sound", thing1)
  247. pew.SoundId = "rbxassetid://157878578"
  248. pew.Volume = 10
  249. pew:Play()
  250. llw.Part1 = owner.Character.HumanoidRootPart
  251. rlw.Part1 = owner.Character.HumanoidRootPart
  252. owner.Character.Humanoid.WalkSpeed = 35
  253. deb = false
  254. animt = true
  255. thing1.Touched:connect(function(p)
  256. if p.Parent:FindFirstChildOfClass("Humanoid") then
  257. if p.Parent.Name ~= owner.Name then
  258. p.Parent:BreakJoints()
  259. end
  260. end
  261. end)
  262. for i = 1,20 do
  263. game:GetService("RunService").Stepped:Wait()
  264. thing1.Size = thing1.Size +Vector3.new(1, 1, 1)
  265. thing1.CFrame = thing1.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  266. thing2.CFrame = thing2.CFrame *CFrame.new(0, 2, 0)
  267. end
  268. for i = 1,20 do
  269. game:GetService("RunService").Stepped:Wait()
  270. thing1.Size = thing1.Size -Vector3.new(1, 1, 1)
  271. thing1.CFrame = thing1.CFrame *CFrame.Angles(math.random(-500, 500), math.random(-500, 500), math.random(-500, 500))
  272. thing2.CFrame = thing2.CFrame *CFrame.new(0, -2, 0)
  273. end
  274. thing1:Destroy()
  275. thing2:Destroy()
  276. end
  277. end
  278. end
  279. end)
Add Comment
Please, Sign In to add comment