Advertisement
Gotmilk0086

some shit

Jul 30th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.02 KB | None | 0 0
  1. --[[
  2. // Kiroki
  3. // Kiroki#7043
  4.  
  5.  
  6.  
  7. ~~------Script Name------~~
  8.  
  9. i was bored shut up
  10.  
  11. ~~------Script Pack------~~
  12.  
  13. Releases
  14.  
  15. ~~-----------------------~~
  16. --]]
  17. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  18. local Player,game,owner = owner,game
  19. local RealPlayer = Player
  20. do
  21. print("FE Compatibility code by Mokiros")
  22. local rp = RealPlayer
  23. script.Parent = rp.Character
  24.  
  25. --RemoteEvent for communicating
  26. local Event = Instance.new("RemoteEvent")
  27. Event.Name = "UserInput_Event"
  28.  
  29. --Fake event to make stuff like Mouse.KeyDown work
  30. local function fakeEvent()
  31. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  32. t.connect = t.Connect
  33. return t
  34. end
  35.  
  36. --Creating fake input objects with fake variables
  37. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  38. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  39. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  40. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  41. end}
  42. --Merged 2 functions into one by checking amount of arguments
  43. CAS.UnbindAction = CAS.BindAction
  44.  
  45. --This function will trigger the events that have been :Connect()'ed
  46. local function te(self,ev,...)
  47. local t = m[ev]
  48. if t and t._fakeEvent then
  49. for _,f in pairs(t.Functions) do
  50. f(...)
  51. end
  52. end
  53. end
  54. m.TrigEvent = te
  55. UIS.TrigEvent = te
  56.  
  57. Event.OnServerEvent:Connect(function(plr,io)
  58. if plr~=rp then return end
  59. m.Target = io.Target
  60. m.Hit = io.Hit
  61. if not io.isMouse then
  62. local b = io.UserInputState == Enum.UserInputState.Begin
  63. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  64. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  65. end
  66. for _,t in pairs(CAS.Actions) do
  67. for _,k in pairs(t.Keys) do
  68. if k==io.KeyCode then
  69. t.Function(t.Name,io.UserInputState,io)
  70. end
  71. end
  72. end
  73. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  74. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  75. end
  76. end)
  77. Event.Parent = NLS([==[
  78. local Player = owner
  79. local Event = script:WaitForChild("UserInput_Event")
  80.  
  81. local UIS = game:GetService("UserInputService")
  82. local input = function(io,a)
  83. if a then return end
  84. --Since InputObject is a client-side instance, we create and pass table instead
  85. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  86. end
  87. UIS.InputBegan:Connect(input)
  88. UIS.InputEnded:Connect(input)
  89.  
  90. local h,t
  91. --Give the server mouse data 30 times every second, but only if the values changed
  92. --If player is not moving their mouse, client won't fire events
  93. while wait(1/30) do
  94. if h~=Mouse.Hit or t~=Mouse.Target then
  95. h,t=Mouse.Hit,Mouse.Target
  96. Event:FireServer({isMouse=true,Target=t,Hit=h})
  97. end
  98. end]==],Player.Character)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local _rg = game
  103.  
  104. --Metatable for fake service
  105. local fsmt = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then return s[k] end
  109. end,
  110. __newindex = function(self,k,v)
  111. local s = rawget(self,"_RealService")
  112. if s then s[k]=v end
  113. end,
  114. __call = function(self,...)
  115. local s = rawget(self,"_RealService")
  116. if s then return s(...) end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  121. return setmetatable(t,fsmt)
  122. end
  123.  
  124. --Fake game object
  125. local g = {
  126. GetService = function(self,s)
  127. return self[s]
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. }
  135. rawset(g.Players,"owner",owner)
  136. g.service = g.GetService
  137.  
  138. g.RunService = FakeService({
  139. RenderStepped = _rg:GetService("RunService").Heartbeat,
  140. BindToRenderStep = function(self,name,_,fun)
  141. self._btrs[name] = self.Heartbeat:Connect(fun)
  142. end,
  143. UnbindFromRenderStep = function(self,name)
  144. self._btrs[name]:Disconnect()
  145. end,
  146. },"RunService")
  147.  
  148. setmetatable(g,{
  149. __index=function(self,s)
  150. return _rg:GetService(s) or typeof(_rg[s])=="function"
  151. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  152. end,
  153. __newindex = fsmt.__newindex,
  154. __call = fsmt.__call
  155. })
  156. --Changing owner to fake player object to support owner:GetMouse()
  157. game,owner = g,g.Players.LocalPlayer
  158. end
  159.  
  160. --[[
  161. // Kiroki
  162. // Kiroki#7043
  163.  
  164.  
  165.  
  166. ~~------Script Name------~~
  167.  
  168. i was bored shut up
  169.  
  170. ~~------Script Pack------~~
  171.  
  172. Releases
  173.  
  174. ~~-----------------------~~
  175. --]]
  176.  
  177. local asin = math.asin
  178. local atan2 = math.atan2
  179. local rad = math.rad
  180. local sin = math.sin
  181. local abs = math.abs
  182. local ceil = math.ceil
  183. local pi = math.pi
  184. local normanim = true
  185. local doingsomething = false
  186. local plr = game:GetService("Players").LocalPlayer
  187. local chara = plr.Character
  188. local mouse = plr:GetMouse()
  189. local torso=chara.Torso
  190. local hum = chara.Humanoid
  191. local normanim = true
  192. local doingsomething = false
  193.  
  194. local help = Instance.new("Sound", game:GetService("Players").LocalPlayer.Character.Head)
  195. help.SoundId = "rbxassetid://2129114308"
  196. help.Looped = true
  197. help.Volume = 10
  198. help:Play()
  199. local g = Instance.new("ScreenGui", plr.PlayerGui)
  200. local F = Instance.new("TextLabel", g)
  201. F.BackgroundColor3 = Color3.new(0,0,0)
  202. F.Size = UDim2.new(1, 0, 1, 0)
  203. F.TextColor3 = Color3.new(1,1,1)
  204. F.TextScaled = true
  205. F.Text = "God"
  206. wait(0.7)
  207. F.Text = "Help"
  208. wait(0.5)
  209. F.Text = "My"
  210. wait(0.4)
  211. F.Text = "Soul"
  212. wait(0.5)
  213. F.Text = "For"
  214. wait(0.3)
  215. F.Text = "Creating"
  216. wait(0.4)
  217. F.Text = "This"
  218. wait(0.4)
  219. F.Text = "MonstrocitE"
  220. wait(1)
  221. wait()
  222. F.Text = "MonstrocitE".."E"
  223. wait()
  224. F.Text = "MonstrocitE".."E"
  225. wait()
  226. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  227. F.Text = F.Text.."E"
  228. wait()
  229. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  230. F.Text = F.Text.."E"
  231. wait()
  232. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  233. F.Text = F.Text.."E"
  234. wait()
  235. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  236. F.Text = F.Text.."E"
  237. wait()
  238. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  239. F.Text = F.Text.."E"
  240. wait()
  241. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  242. F.Text = F.Text.."E"
  243. wait()
  244. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  245. F.Text = F.Text.."E"
  246. wait()
  247. F.TextColor3 = Color3.new(F.TextColor3.r, F.TextColor3.g- 0.1 , F.TextColor3.b- 0.1)
  248. F.Text = F.Text.."E"
  249. wait(0.35)
  250. g:Remove()
  251. help:Remove()
  252. chara.Head.face.Texture = "rbxassetid://8560915"
  253. hum.HipHeight = 0.35
  254. print[[
  255. say !play ID to play something motherfucker
  256. ]]
  257. for i,v in pairs(chara:GetDescendants()) do
  258. if v:IsA("Accessory") then
  259. v:Remove()
  260. end
  261. end
  262. angle = 0
  263. anglespeed = 1
  264. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  265. p0.Position = p1.Position
  266.  
  267. local w = Instance.new('Motor',par or p0)
  268. w.Part0 = p0
  269. w.Part1 = p1
  270. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  271. return w
  272. end
  273. Mesh = function(par,num,x,y,z)
  274. local msh = nil
  275. if num == 1 then
  276. msh = Instance.new("CylinderMesh",par)
  277. elseif num == 2 then
  278. msh = Instance.new("SpecialMesh",par)
  279. msh.MeshType = 3
  280. elseif num == 3 then
  281. msh = Instance.new("BlockMesh",par)
  282. elseif type(num) == 'string' then
  283. msh = Instance.new("SpecialMesh",par)
  284. msh.MeshId = num
  285. end
  286. msh.Scale = Vector3.new(x,y,z)
  287. return msh
  288. end
  289. local helpme = Instance.new("Sound", chara.Head)
  290. helpme.Volume = 10
  291. helpme.Looped = true
  292. helpme.SoundId = "rbxassetid://316014309"
  293. helpme:Play()
  294. ROW = function(x, pa, out, col, trans, s, wt, t, ang, plus)
  295. for i = 1, 360, 360/t do wait()
  296. local c = Instance.new("Part", pa)
  297. c.FormFactor = 3
  298. c.TopSurface = 0
  299. c.BottomSurface = 0
  300. c.Size = s
  301. c.Anchored = true
  302. c.CanCollide = wt
  303. c.Transparency = trans
  304. c.BrickColor = BrickColor.new(col)
  305. c.CFrame = x * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
  306. end
  307. end
  308.  
  309. local function getAngles(cf)
  310. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  311. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  312. end
  313. Lerp = {
  314. Number = function(C1,C2,inc)
  315. return C1 + (C2 - C1) * inc
  316. end;
  317. CFrame = function(a,b,m)
  318. local c,d={a:components()},{b:components()}
  319. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  320. return CFrame.new(unpack(c))
  321. end;
  322. }
  323. local function genWeld(a,b)
  324. local w = Instance.new("Weld",a)
  325. w.Part0 = a
  326. w.Part1 = b
  327. w.Name = "The_Weldy-Weld-Weld_of_the_Weld_land."
  328. return w
  329. end
  330. local Neck = genWeld(chara.Torso,chara.Head)
  331. Neck.C0 = CFrame.new(0,1,0)
  332. Neck.C1 = CFrame.new(0,-0.5,0)
  333. local LeftShoulder = genWeld(chara.Torso,chara['Left Arm'])
  334. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  335. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  336. RightShoulder = genWeld(chara.Torso,chara['Right Arm'])
  337. RightShoulder.C0 = CFrame.new(1,0.5,0)
  338. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  339. local LeftHip = genWeld(chara.Torso,chara['Left Leg'])
  340. LeftHip.C0 = CFrame.new(-1,-1,0)
  341. LeftHip.C1 = CFrame.new(-0.5,1,0)
  342. local RightHip = genWeld(chara.Torso,chara['Right Leg'])
  343. RightHip.C0 = CFrame.new(1,-1,0)
  344. RightHip.C1 = CFrame.new(0.5,1,0)
  345. local RootJoint = genWeld(chara.HumanoidRootPart,chara.Torso)
  346. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  347. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  348. local function newLerpTo(weld)
  349. return {
  350. Weld = weld;
  351. To = weld.C0;
  352. Cache = weld.C0;
  353. Speed = 0.1;
  354. }
  355. end
  356. function swait(t)
  357. if t then
  358. for i = 0, t do
  359. game:GetService('RunService').Stepped:wait(0)
  360. end
  361. else
  362. game:GetService('RunService').Stepped:wait(0)
  363. end
  364. return true
  365. end
  366. REEEEEEEEEEEEE = plr
  367. LerpTo = {
  368. Neck = newLerpTo(Neck);
  369. LeftArm = newLerpTo(LeftShoulder);
  370. RightArm = newLerpTo(RightShoulder);
  371. LeftLeg = newLerpTo(LeftHip);
  372. RightLeg = newLerpTo(RightHip);
  373. RootJoint = newLerpTo(RootJoint);
  374. }
  375. function normidle()
  376. anglespeed = 1/2/2
  377. LerpTo.Neck.Speed = (helpme.PlaybackLoudness / 2000)
  378. LerpTo.RightArm.Speed = (helpme.PlaybackLoudness / 2000)
  379. LerpTo.RightLeg.Speed = (helpme.PlaybackLoudness / 2000)
  380. LerpTo.LeftArm.Speed = (helpme.PlaybackLoudness / 2000)
  381. LerpTo.LeftLeg.Speed = (helpme.PlaybackLoudness / 2000)
  382. LerpTo.Neck.To = (LerpTo.Neck.Cache + Vector3.new(0, -math.sin(angle)*(helpme.PlaybackLoudness / 1000), -math.sin(angle)*(helpme.PlaybackLoudness / 1000))) * CFrame.Angles(-math.sin(angle)*(helpme.PlaybackLoudness / 1000),-math.sin(angle)*(helpme.PlaybackLoudness / 1000),-math.sin(angle)*(helpme.PlaybackLoudness / 1000))
  383. LerpTo.RightLeg.To = (LerpTo.RightLeg.Cache + Vector3.new(0, -(helpme.PlaybackLoudness / 1000), 0)) * CFrame.Angles(-math.sin(angle)*(helpme.PlaybackLoudness / 1000),rad(0),(helpme.PlaybackLoudness / 1000))
  384. LerpTo.LeftLeg.To = (LerpTo.LeftLeg.Cache + Vector3.new(0, -(helpme.PlaybackLoudness / 1000), 0)) * CFrame.Angles(math.sin(angle)*(helpme.PlaybackLoudness / 1000),rad(0),-(helpme.PlaybackLoudness / 1000))
  385. LerpTo.RootJoint.To = (LerpTo.RootJoint.Cache + Vector3.new(0, math.sin(angle)*(helpme.PlaybackLoudness / 2000), 0)) * CFrame.Angles(rad(0),rad(0),rad(0))
  386. LerpTo.RightArm.To = (LerpTo.RightArm.Cache + Vector3.new(0.5+(helpme.PlaybackLoudness / 1000), 0, -0.5)) * CFrame.Angles(rad(90),rad(0),rad(90))
  387. LerpTo.LeftArm.To = (LerpTo.LeftArm.Cache + Vector3.new(-0.5-(helpme.PlaybackLoudness / 1000), 0, 0.5)) * CFrame.Angles(rad(-90),rad(0),rad(-90))
  388. end
  389. function walkanim()
  390. anglespeed = 1/2
  391. LerpTo.Neck.Speed = (helpme.PlaybackLoudness / 1000)
  392. LerpTo.RightArm.Speed = (helpme.PlaybackLoudness / 1000)
  393. LerpTo.RightLeg.Speed = (helpme.PlaybackLoudness / 1000)
  394. LerpTo.LeftArm.Speed = (helpme.PlaybackLoudness / 1000)
  395. LerpTo.LeftLeg.Speed = (helpme.PlaybackLoudness / 1000)
  396. LerpTo.Neck.To = (LerpTo.Neck.Cache + Vector3.new(0, 0, 0)) * CFrame.Angles(math.sin(angle)*0.2,0,math.sin(angle)*-0.2)
  397. LerpTo.RightLeg.To = (LerpTo.RightLeg.Cache + Vector3.new(0, math.sin(angle)*-0.2, 0)) * CFrame.Angles(-math.sin(angle)*-1,-math.sin(angle)*1,rad(0))
  398. LerpTo.LeftLeg.To = (LerpTo.LeftLeg.Cache + Vector3.new(0, -math.sin(angle)*-0.2, 0)) * CFrame.Angles(-math.sin(angle)*1,-math.sin(angle)*-1,rad(0))
  399. LerpTo.RootJoint.To = (LerpTo.RootJoint.Cache + Vector3.new(math.sin(angle)*-2, 0, 0)) * CFrame.Angles(rad(0),rad(0),rad(0))
  400. LerpTo.RightArm.To = (LerpTo.RightArm.Cache + Vector3.new(0, 0.5, 0)) * CFrame.Angles(-math.sin(angle)*3.5,rad(0),rad(0))
  401. LerpTo.LeftArm.To = (LerpTo.LeftArm.Cache + Vector3.new(0, 0.5+-math.sin(angle)*-0.102, 0)) * CFrame.Angles(-math.sin(angle)*-3.5,rad(0),rad(0))
  402. end
  403. game:GetService("RunService"):BindToRenderStep("Player",Enum.RenderPriority.Character.Value,function()
  404. angle = (angle % 100) + anglespeed/10
  405. if normanim==true then
  406. if Vector3.new(torso.Velocity.x, torso.Velocity.y, torso.Velocity.z).magnitude < 2 then
  407. normidle()
  408. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  409. walkanim()
  410. end
  411. end
  412.  
  413. for _,v in pairs(LerpTo) do
  414. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  415. end
  416. hum.MaxHealth = math.huge
  417. hum.Health = math.huge
  418.  
  419. end)
  420.  
  421. REEEEEEEEEEEEE.Chatted:connect(function(autism)
  422. if autism:lower():sub(1,6)=='!play ' then
  423. helpme.SoundId = "rbxassetid://"..autism:sub(7)
  424. helpme.TimePosition = 0
  425. end
  426. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement