Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.40 KB | None | 0 0
  1. local rp = RealPlayer
  2. script.Parent = rp.Character
  3.  
  4. --RemoteEvent for communicating
  5. local Event = Instance.new("RemoteEvent")
  6. Event.Name = "UserInput_Event"
  7.  
  8. --Fake event to make stuff like Mouse.KeyDown work
  9. local function fakeEvent()
  10. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  11. t.connect = t.Connect
  12. return t
  13. end
  14.  
  15. --Creating fake input objects with fake variables
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  19. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  20. end}
  21. --Merged 2 functions into one by checking amount of arguments
  22. CAS.UnbindAction = CAS.BindAction
  23.  
  24. --This function will trigger the events that have been :Connect()'ed
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent then
  28. for _,f in pairs(t.Functions) do
  29. f(...)
  30. end
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=rp then return end
  38. m.Target = io.Target
  39. m.Hit = io.Hit
  40. if not io.isMouse then
  41. local b = io.UserInputState == Enum.UserInputState.Begin
  42. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  43. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  44. end
  45. for _,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  53. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  54. end
  55. end)
  56. Event.Parent = NLS([==[
  57. local Player = game:GetService("Players").LocalPlayer
  58. local Event = script:WaitForChild("UserInput_Event")
  59.  
  60. local Mouse = Player:GetMouse()
  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,Hit=Mouse.Hit,Target=Mouse.Target})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local h,t
  71. --Give the server mouse data 30 times every second, but only if the values changed
  72. --If player is not moving their mouse, client won't fire events
  73. while wait(1/30) do
  74. if h~=Mouse.Hit or t~=Mouse.Target then
  75. h,t=Mouse.Hit,Mouse.Target
  76. Event:FireServer({isMouse=true,Target=t,Hit=h})
  77. end
  78. end]==],Player.Character)
  79.  
  80. ----Sandboxed game object that allows the usage of client-side methods and services
  81. --Real game object
  82. local _rg = game
  83.  
  84. --Metatable for fake service
  85. local fsmt = {
  86. __index = function(self,k)
  87. local s = rawget(self,"_RealService")
  88. if s then return s[k] end
  89. end,
  90. __newindex = function(self,k,v)
  91. local s = rawget(self,"_RealService")
  92. if s then s[k]=v end
  93. end,
  94. __call = function(self,...)
  95. local s = rawget(self,"_RealService")
  96. if s then return s(...) end
  97. end
  98. }
  99. local function FakeService(t,RealService)
  100. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  101. return setmetatable(t,fsmt)
  102. end
  103.  
  104. --Fake game object
  105. local g = {
  106. GetService = function(self,s)
  107. return self[s]
  108. end,
  109. Players = FakeService({
  110. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  111. },"Players"),
  112. UserInputService = FakeService(UIS,"UserInputService"),
  113. ContextActionService = FakeService(CAS,"ContextActionService"),
  114. }
  115. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  116. g.service = g.GetService
  117.  
  118. g.RunService = FakeService({
  119. RenderStepped = _rg:GetService("RunService").Heartbeat,
  120. BindToRenderStep = function(self,name,_,fun)
  121.  
  122. end,
  123. UnbindFromRenderStep = function(self,name)
  124. self._btrs[name]:Disconnect()
  125. end,
  126. },"RunService")
  127.  
  128. setmetatable(g,{
  129. __index=function(self,s)
  130. return _rg:GetService(s) or typeof(_rg[s])=="function"
  131. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  132. end,
  133. __newindex = fsmt.__newindex,
  134. __call = fsmt.__call
  135. })
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139. print("Good sir do not leak this.")
  140. print("Don't u dare report the audio.")
  141.  
  142. local cansilence = true
  143.  
  144. function SHUTUPXDD()
  145. if cansilence then
  146. cansilence = false
  147. local function search(instance)
  148. for i,v in pairs(instance:GetChildren()) do
  149. search(v)
  150. if v.ClassName == "Sound" then
  151. if v.Parent ~= game.Players.LocalPlayer.Character then
  152. v.Volume = 0
  153. end
  154. end
  155. end
  156. end
  157. search(workspace)
  158. wait(3)
  159. cansilence = false
  160. end
  161. end
  162.  
  163. game:GetService("RunService").RenderStepped:connect(SHUTUPXDD)
  164.  
  165. Player_Size = 1 --Size of the player.
  166.  
  167. wait()
  168. local Player = owner
  169. local Character = Player.Character
  170. local plr = owner
  171. local Humanoid = Character.Humanoid
  172. local char = plr.Character
  173. local hum = char.Humanoid
  174. local ra = char["Right Arm"]
  175. local la= char["Left Arm"]
  176. local rl= char["Right Leg"]
  177. local ll = char["Left Leg"]
  178. local hed = char.Head
  179. local root = char.HumanoidRootPart
  180. local rootj = root.RootJoint
  181. local tors = char.Torso
  182. local LeftArm = Character["Left Arm"]
  183. local RightArm = Character["Right Arm"]
  184. local LeftLeg = Character["Left Leg"]
  185. local RightLeg = Character["Right Leg"]
  186. local Head = Character.Head
  187. local Torso = Character.Torso
  188. local mouse = plr:GetMouse()
  189. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  190. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  191. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  192. local cam = game.Workspace.CurrentCamera
  193. trazx = Instance.new("ParticleEmitter")
  194. c = game.Players.LocalPlayer.Character
  195. local sine=0
  196. Character.Head.face.Texture = "rbxassetid://620619801"
  197.  
  198. hum.MaxHealth = "Inf"
  199. hum.Health = "Inf"
  200.  
  201. local forcefield = Instance.new("ForceField",char)
  202. forcefield.Name = "feaqurmam"
  203. forcefield.Visible = false
  204. -----------------------------------------------------------
  205. h = char.Head
  206. t = char.Torso
  207. rs = t["Right Shoulder"]
  208. ls = t["Left Shoulder"]
  209. rh = t["Right Hip"]
  210. lh = t["Left Hip"]
  211. nec = t.Neck
  212. rut = char.HumanoidRootPart
  213. rutj = rut.RootJoint
  214. it = Instance.new
  215.  
  216. local txt = Instance.new("BillboardGui", char)
  217. txt.Adornee = char.Head
  218. txt.Name = "_status"
  219. txt.Size = UDim2.new(2, 0, 1.2, 0)
  220. txt.StudsOffset = Vector3.new(-9, 8, 0)
  221. local text = Instance.new("TextLabel", txt)
  222. text.Size = UDim2.new(10, 0, 7, 0)
  223. text.FontSize = "Size24"
  224. text.TextScaled = true
  225. text.TextTransparency = 0
  226. text.BackgroundTransparency = 1
  227. text.TextTransparency = 0
  228. text.TextStrokeTransparency = 1
  229. text.Font = "Cartoon"
  230. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  231. v = Instance.new("Part")
  232. v.Name = "ColorBrick"
  233. v.Parent = Player.Character
  234. v.FormFactor = "Symmetric"
  235. v.Anchored = true
  236. v.CanCollide = false
  237. v.BottomSurface = "Smooth"
  238. v.TopSurface = "Smooth"
  239. v.Size = Vector3.new(10, 5, 3)
  240. v.Transparency = 1
  241. v.CFrame = char.Torso.CFrame
  242. v.BrickColor = BrickColor.new("Really black")
  243. v.Transparency = 1
  244. v.Shape = "Block"
  245. spawn(function()
  246. local TweenService = game:GetService("TweenService")
  247. local Colours = {Color3.fromRGB(75,151,75),Color3.fromRGB(39,70,45),Color3.fromRGB(164,189,71),Color3.fromRGB(255,176,0),Color3.fromRGB(141,149,123)}
  248. local Int = 0
  249. while wait(0.5) do
  250. if Int == #Colours then Int = 0 end
  251. Int = Int+1
  252. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  253. end
  254. end)
  255. text.Text = "Noti?? "
  256.  
  257.  
  258. local txtd = Instance.new("BillboardGui", char)
  259. txtd.Adornee = char.Head
  260. txtd.Name = "_status"
  261. txtd.Size = UDim2.new(2, 0, 1.2, 0)
  262. txtd.StudsOffset = Vector3.new(-9, 8, 0)
  263. local texth = Instance.new("TextLabel", txtd)
  264. texth.Size = UDim2.new(10, 0, 7, 0)
  265. texth.FontSize = "Size24"
  266. texth.TextScaled = true
  267. texth.TextTransparency = 0
  268. texth.BackgroundTransparency = 1
  269. texth.TextTransparency = 0
  270. texth.TextStrokeTransparency = 1
  271. texth.Font = "Cartoon"
  272. texth.TextStrokeColor3 = Color3.new(0, 0, 0)
  273. v = Instance.new("Part")
  274. v.Name = "ColorBrick"
  275. v.Parent = Player.Character
  276. v.FormFactor = "Symmetric"
  277. v.Anchored = true
  278. v.CanCollide = false
  279. v.BottomSurface = "Smooth"
  280. v.TopSurface = "Smooth"
  281. v.Size = Vector3.new(10, 5, 3)
  282. v.Transparency = 1
  283. v.CFrame = char.Torso.CFrame
  284. v.BrickColor = BrickColor.new("Really black")
  285. v.Transparency = 1
  286. v.Shape = "Block"
  287. spawn(function()
  288. local TweenService = game:GetService("TweenService")
  289. local Colourss = {Color3.fromRGB(72,99,0),Color3.fromRGB(99,21,2),Color3.fromRGB(6,0,99),Color3.fromRGB(99,35,90),Color3.fromRGB(203,213,0)}
  290. local Intt = 0
  291. while wait(0.2) do
  292. if Intt == #Colourss then Intt = 0 end
  293. Intt = Intt+1
  294. TweenService:Create(texth,TweenInfo.new(1),{TextColor3 = Colourss[Intt]}):Play()
  295. end
  296. end)
  297. texth.Text = ""
  298.  
  299.  
  300. spawn(function()
  301. while wait() do
  302. Head.BrickColor = BrickColor.new("Bright yellow")
  303. RightArm.BrickColor = BrickColor.new("Bright yellow")
  304. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  305. Torso.BrickColor = BrickColor.new("Shamrock")
  306. RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  307. LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  308. end
  309. end)
  310. -------------------------------------------------------
  311. --Start Good Stuff--
  312. -------------------------------------------------------
  313. CF = CFrame.new
  314. angles = CFrame.Angles
  315. attack = false
  316. timetofly = true
  317. Euler = CFrame.fromEulerAnglesXYZ
  318. Rad = math.rad
  319. IT = Instance.new
  320. BrickC = BrickColor.new
  321. Cos = math.cos
  322. Acos = math.acos
  323. Sin = math.sin
  324. Asin = math.asin
  325. Abs = math.abs
  326. Mrandom = math.random
  327. Floor = math.floor
  328. random = math.random
  329. radian = math.rad
  330. Vec3 = Vector3.new
  331. cFrame = CFrame.new
  332. Euler = CFrame.fromEulerAnglesXYZ
  333. -------------------------------------------------------
  334. --End Good Stuff--
  335. -------------------------------------------------------
  336. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  337. RSH, LSH = nil, nil
  338. RW = Instance.new("Weld")
  339. LW = Instance.new("Weld")
  340. RH = tors["Right Hip"]
  341. LH = tors["Left Hip"]
  342. RSH = tors["Right Shoulder"]
  343. LSH = tors["Left Shoulder"]
  344. RSH.Parent = nil
  345. LSH.Parent = nil
  346. RW.Name = "RW"
  347. RW.Part0 = tors
  348. RW.C0 = CF(1.5, 0.5, 0)
  349. RW.C1 = CF(0, 0.5, 0)
  350. RW.Part1 = ra
  351. RW.Parent = tors
  352. LW.Name = "LW"
  353. LW.Part0 = tors
  354. LW.C0 = CF(-1.5, 0.5, 0)
  355. LW.C1 = CF(0, 0.5, 0)
  356. LW.Part1 = la
  357. LW.Parent = tors
  358. Effects = {}
  359.  
  360. BTAUNT = Instance.new("Sound", tors)
  361. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1535995263"
  362. BTAUNT.Volume = 10
  363. BTAUNT.Pitch = 1
  364. BTAUNT.Looped = false
  365. BTAUNT.TimePosition = 0.2
  366.  
  367. brda = Instance.new("Part",char) brda.Transparency = 1 brda.CanCollide = false brda.Size = Vector3.new(1.248, 1.264, 0.16) brdam = Instance.new("SpecialMesh",brda) brdam.Scale = Vector3.new(0.003, 0.003, 0.003) brdam.MeshType = "FileMesh" brdam.MeshId = "rbxassetid://1614924885" brdam.TextureId = "rbxassetid://1614940093" brdaw = Instance.new("Weld",ra) brdaw.Part0 = ra brdaw.Part1 = brda brdaw.C0 = CFrame.fromEulerAnglesXYZ(0,4.7,3) brdaw.C0 = brdaw.C0 * CFrame.new(0,1.3,0)
  368.  
  369. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  370. bat.Size = Vector3.new(1, 1, 5)
  371. bat.CanCollide = false
  372. bat:BreakJoints()
  373.  
  374. LeDrink = it("Model")
  375. LeDrink.Parent = char
  376. LeDrink.Name = "LeDrink"
  377. RHe = it("Part")
  378. RHe.Parent = LeDrink
  379. RHe.BrickColor = BrickColor.new("Really black")
  380. RHe.Locked = true
  381. RHe.CanCollide = false
  382. RHe.Transparency = 1
  383. PMesh = it("SpecialMesh")
  384. RHe.formFactor = "Symmetric"
  385. PMesh.MeshType = "FileMesh"
  386. PMesh.MeshId = "rbxassetid://10470609"
  387. PMesh.TextureId = "rbxassetid://111405256"
  388. PMesh.Scale = Vector3.new(1.3, 1.4, 1.3)
  389. PMesh.Parent = RHe
  390. local RWeld = it("Weld")
  391. RWeld.Parent = RHe
  392. RWeld.Part0 = RHe
  393. RWeld.Part1 = ra
  394. RWeld.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  395.  
  396. LeChips = it("Model")
  397. LeChips.Parent = char
  398. LeChips.Name = "LeChips"
  399. RHk = it("Part")
  400. RHk.Parent = LeChips
  401. RHk.BrickColor = BrickColor.new("Really black")
  402. RHk.Locked = true
  403. RHk.CanCollide = false
  404. RHk.Transparency = 1
  405. PMeshe = it("SpecialMesh")
  406. RHk.formFactor = "Symmetric"
  407. PMeshe.MeshType = "FileMesh"
  408. PMeshe.MeshId = "rbxassetid://19106014"
  409. PMeshe.TextureId = "rbxassetid://342435650"
  410. PMeshe.Scale = Vector3.new(1, 1.4, 0.8)
  411. PMeshe.Parent = RHk
  412. local RWelds = it("Weld")
  413. RWelds.Parent = RHk
  414. RWelds.Part0 = RHk
  415. RWelds.Part1 = ra
  416. RWelds.C0 = CF(-1.2, -0.5, 0) * angles(Rad(90), Rad(0), Rad(90))
  417.  
  418. local LeDrink = "wiplolnotyet"
  419. local LeChips = "wipaswelllol"
  420. local Sitt = false
  421.  
  422. -------------------------------------------------------
  423. --Start HeartBeat--
  424. -------------------------------------------------------
  425. ArtificialHB = Instance.new("BindableEvent", script)
  426. ArtificialHB.Name = "Heartbeat"
  427. script:WaitForChild("Heartbeat")
  428.  
  429. frame = 1 / 60
  430. tf = 0
  431. allowframeloss = false
  432. tossremainder = false
  433.  
  434.  
  435. lastframe = tick()
  436. script.Heartbeat:Fire()
  437.  
  438.  
  439. game:GetService("RunService").Heartbeat:connect(function(s, p)
  440. tf = tf + s
  441. if tf >= frame then
  442. if allowframeloss then
  443. script.Heartbeat:Fire()
  444. lastframe = tick()
  445. else
  446. for i = 1, math.floor(tf / frame) do
  447. script.Heartbeat:Fire()
  448. end
  449. lastframe = tick()
  450. end
  451. if tossremainder then
  452. tf = 0
  453. else
  454. tf = tf - frame * math.floor(tf / frame)
  455. end
  456. end
  457. end)
  458. -------------------------------------------------------
  459. --End HeartBeat--
  460. -------------------------------------------------------
  461.  
  462.  
  463. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  464. coroutine.resume(coroutine.create(function()
  465. local intensity = 1 * Intensity
  466. local rotM = 0.01 * Intensity
  467. for i = 0, Length, 0.1 do
  468. swait()
  469. intensity = intensity - 0.05 * Intensity / Length
  470. rotM = rotM - 5.0E-4 * Intensity / Length
  471. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  472. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  473. end
  474. Humanoid.CameraOffset = Vec3(0, 0, 0)
  475. end))
  476. end
  477.  
  478. local joyemoji = Instance.new('ParticleEmitter', tors)
  479. joyemoji.VelocitySpread = 2000
  480. joyemoji.Lifetime = NumberRange.new(1)
  481. joyemoji.Speed = NumberRange.new(40)
  482. joy= {}
  483. for i=0, 19 do
  484. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  485. end
  486. joyemoji.Size = NumberSequence.new(joy)
  487. joyemoji.Rate = 0
  488. joyemoji.LockedToPart = false
  489. joyemoji.LightEmission = 0
  490. joyemoji.Texture = "rbxassetid://1176402123"
  491. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  492.  
  493.  
  494. local LIT = Instance.new('ParticleEmitter', tors)
  495. LIT.VelocitySpread = 2000
  496. LIT.Lifetime = NumberRange.new(1)
  497. LIT.Speed = NumberRange.new(45)
  498. nani= {}
  499. for i=0, 19 do
  500. nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  501. end
  502. LIT.Size = NumberSequence.new(nani)
  503. LIT.Rate = 0
  504. LIT.LockedToPart = false
  505. LIT.LightEmission = 0
  506. LIT.Texture = "rbxassetid://1492670151"
  507. LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  508.  
  509. local toast = Instance.new('ParticleEmitter', tors)
  510. toast.VelocitySpread = 2000
  511. toast.Lifetime = NumberRange.new(1)
  512. toast.Speed = NumberRange.new(60)
  513. toasterstoasttoast= {}
  514. for i=0, 19 do
  515. toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  516. end
  517. toast.Size = NumberSequence.new(toasterstoasttoast)
  518. toast.Rate = 0
  519. toast.LockedToPart = false
  520. toast.LightEmission = 0
  521. toast.Texture = "rbxassetid://436096230"
  522. toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  523.  
  524. local ok = Instance.new('ParticleEmitter', tors)
  525. ok.VelocitySpread = 2000
  526. ok.Lifetime = NumberRange.new(1)
  527. ok.Speed = NumberRange.new(50)
  528. cool= {}
  529. for i=0, 19 do
  530. cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  531. end
  532. ok.Size = NumberSequence.new(cool)
  533. ok.Rate = 0
  534. ok.LockedToPart = false
  535. ok.LightEmission = 0
  536. ok.Texture = "rbxassetid://636768448"
  537. ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  538.  
  539. maincolor = BrickC("Really red")
  540. -------------------------------------------------------
  541. --Start Kyu's shitty stuff--
  542. -------------------------------------------------------
  543. function un_fun()
  544. attack = true
  545. hum.WalkSpeed = 0
  546. BTAUNT:Play()
  547. repeat
  548. swait()
  549. BTAUNT.Parent = tors
  550. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.08)
  551. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-2.5 * Cos(sine / 1.5))), 0.08)
  552. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(10)), 0.08)
  553. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(-10)), 0.08)
  554. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(210)), 0.08)
  555. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  556. until BTAUNT.Playing == false
  557. attack = false
  558. hum.WalkSpeed = 40
  559. end
  560.  
  561. function Tauntmelon()
  562. attack = true
  563. hum.WalkSpeed = 0
  564. CreateSound("1486343908", tors, 10, 1)
  565. for i = 0, 9, 0.1 do
  566. swait()
  567. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  568. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  569. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  570. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  571. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  572. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  573. end
  574. attack = false
  575. hum.WalkSpeed = 40
  576. end
  577.  
  578. function fbiopenup()
  579. attack = true
  580. hum.WalkSpeed = 6
  581. CreateSound("2156386052", tors, 10, 1)
  582. Character.Head.face.Texture = "rbxassetid://12117740"
  583. for i = 0, 5.56, 0.1 do
  584. swait()
  585. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  586. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  587. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  588. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  589. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  590. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  591. end
  592. for i = 0,1.57,0.1 do
  593. swait()
  594. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  595. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  596. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  597. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  598. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  599. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  600. end
  601. for i = 0,1.2,0.1 do
  602. swait()
  603. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  604. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  605. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  606. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  607. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  608. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  609. end
  610. for i = 0,1.2,0.1 do
  611. swait()
  612. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  613. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  614. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  615. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  616. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  617. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  618. end
  619. for i = 0,1.2,0.1 do
  620. swait()
  621. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  622. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3)
  623. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  624. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  625. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  626. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  627. end
  628. for i = 0,1.2,0.1 do
  629. swait()
  630. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  631. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  632. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  633. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  634. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  635. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  636. end
  637. for i = 0,1,0.1 do
  638. swait()
  639. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  640. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  641. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  642. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  643. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(120), Rad(0), Rad(5)), 0.1)
  644. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  645. end
  646. for i = 0,1,0.1 do
  647. swait()
  648. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  649. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  650. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  651. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  652. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  653. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  654. end
  655. attack = false
  656. Character.Head.face.Texture = "rbxassetid://620619801"
  657. hum.WalkSpeed = 40
  658. end
  659.  
  660. function FindNearestHead(Position, Distance, SinglePlayer)
  661. if SinglePlayer then
  662. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  663. end
  664. local List = {}
  665. for i, v in pairs(workspace:GetChildren()) do
  666. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  667. table.insert(List, v)
  668. end
  669. end
  670. return List
  671. end
  672.  
  673. function SoulSteal(dude)
  674. if dude.Name ~= char then
  675. local bgf = IT("BodyGyro", dude.Head)
  676. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  677. local val = IT("BoolValue", dude)
  678. val.Name = "IsHit"
  679. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  680. local soulst = coroutine.wrap(function()
  681. local soul = Instance.new("Part",dude)
  682. soul.Size = Vector3.new(1,1,1)
  683. soul.CanCollide = false
  684. soul.Anchored = false
  685. soul.Position = torso.Position
  686. soul.Transparency = 1
  687. local PartEmmit1 = IT("ParticleEmitter", soul)
  688. PartEmmit1.LightEmission = 1
  689. PartEmmit1.Texture = "rbxassetid://569507414"
  690. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  691. PartEmmit1.Rate = 250
  692. PartEmmit1.Lifetime = NumberRange.new(1.6)
  693. PartEmmit1.Size = NumberSequence.new({
  694. NumberSequenceKeypoint.new(0, 1, 0),
  695. NumberSequenceKeypoint.new(1, 0, 0)
  696. })
  697. PartEmmit1.Transparency = NumberSequence.new({
  698. NumberSequenceKeypoint.new(0, 0, 0),
  699. NumberSequenceKeypoint.new(1, 1, 0)
  700. })
  701. PartEmmit1.Speed = NumberRange.new(0, 0)
  702. PartEmmit1.VelocitySpread = 30000
  703. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  704. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  705. local BodPoss = IT("BodyPosition", soul)
  706. BodPoss.P = 3000
  707. BodPoss.D = 1000
  708. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  709. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  710. wait(1.6)
  711. soul.Touched:connect(function(hit)
  712. if hit.Parent == char then
  713. soul:Destroy()
  714. end
  715. end)
  716. wait(1.2)
  717. while soul do
  718. swait()
  719. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  720. BodPoss.Position = tors.Position
  721. end
  722. end)
  723. soulst()
  724. end
  725. end
  726. function FaceMouse()
  727. local Cam = workspace.CurrentCamera
  728. return {
  729. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  730. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  731. }
  732. end
  733.  
  734. function Eviscerate(dude)
  735. if dude.Name ~= char then
  736. local bgf = IT("BodyGyro", dude.Head)
  737. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  738. local val = IT("BoolValue", dude)
  739. val.Name = "IsHit"
  740. local ds = coroutine.wrap(function()
  741. dude:WaitForChild("Head"):BreakJoints()
  742. wait(0.5)
  743. target = nil
  744. coroutine.resume(coroutine.create(function()
  745. for i, v in pairs(dude:GetChildren()) do
  746. if v:IsA("Accessory") then
  747. v:Destroy()
  748. end
  749. if v:IsA("Humanoid") then
  750. v:Destroy()
  751. end
  752. if v:IsA("CharacterMesh") then
  753. v:Destroy()
  754. end
  755. if v:IsA("Model") then
  756. v:Destroy()
  757. end
  758. if v:IsA("Part") or v:IsA("MeshPart") then
  759. for x, o in pairs(v:GetChildren()) do
  760. if o:IsA("Decal") then
  761. o:Destroy()
  762. end
  763. end
  764. coroutine.resume(coroutine.create(function()
  765. v.Material = "Neon"
  766. v.CanCollide = false
  767. local PartEmmit1 = IT("ParticleEmitter", v)
  768. PartEmmit1.LightEmission = 1
  769. PartEmmit1.Texture = "rbxassetid://284205403"
  770. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  771. PartEmmit1.Rate = 150
  772. PartEmmit1.Lifetime = NumberRange.new(1)
  773. PartEmmit1.Size = NumberSequence.new({
  774. NumberSequenceKeypoint.new(0, 0.75, 0),
  775. NumberSequenceKeypoint.new(1, 0, 0)
  776. })
  777. PartEmmit1.Transparency = NumberSequence.new({
  778. NumberSequenceKeypoint.new(0, 0, 0),
  779. NumberSequenceKeypoint.new(1, 1, 0)
  780. })
  781. PartEmmit1.Speed = NumberRange.new(0, 0)
  782. PartEmmit1.VelocitySpread = 30000
  783. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  784. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  785. local BodPoss = IT("BodyPosition", v)
  786. BodPoss.P = 3000
  787. BodPoss.D = 1000
  788. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  789. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  790. v.Color = maincolor.Color
  791. coroutine.resume(coroutine.create(function()
  792. for i = 0, 49 do
  793. swait(1)
  794. v.Transparency = v.Transparency + 0.08
  795. end
  796. wait(0.5)
  797. PartEmmit1.Enabled = false
  798. wait(3)
  799. v:Destroy()
  800. dude:Destroy()
  801. end))
  802. end))
  803. end
  804. end
  805. end))
  806. end)
  807. ds()
  808. end
  809. end
  810.  
  811. function ragdoll(model)
  812. local char = model
  813. torso = char.HumanoidRootPart
  814. torso2 = char.Torso
  815. LW.Parent = nil
  816. RW.Parent = nil
  817. LH.Parent = nil
  818. RH.Parent = nil
  819. if hum ~= nil then
  820. hum.PlatformStand = true
  821. end
  822.  
  823. local Head = char:FindFirstChild("Head")
  824. if Head then
  825. local Neck = Instance.new("Weld")
  826. Neck.Name = "Neck"
  827. Neck.Part0 = torso
  828. Neck.Part1 = Head
  829. Neck.C0 = CFrame.new(0, 1.5, 0)
  830. Neck.C1 = CFrame.new()
  831. Neck.Parent = torso
  832. end
  833. local Limb = char:FindFirstChild("Right Arm")
  834. if Limb then
  835.  
  836. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  837. local Joint = Instance.new("Glue")
  838. Joint.Name = "RightShoulder"
  839. Joint.Part0 = torso
  840. Joint.Part1 = Limb
  841. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  842. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  843. Joint.Parent = torso
  844.  
  845. local B = Instance.new("Part")
  846. B.TopSurface = 0
  847. B.BottomSurface = 0
  848. B.formFactor = "Symmetric"
  849. B.Size = Vector3.new(1, 1, 1)
  850. B.Transparency = 1
  851. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  852. B.Parent = char
  853. local W = Instance.new("Weld")
  854. W.Part0 = Limb
  855. W.Part1 = B
  856. W.C0 = CFrame.new(0, -0.5, 0)
  857. W.Parent = Limb
  858.  
  859. end
  860. local Limb = char:FindFirstChild("Left Arm")
  861. if Limb then
  862.  
  863. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  864. local Joint = Instance.new("Glue")
  865. Joint.Name = "LeftShoulder"
  866. Joint.Part0 = torso
  867. Joint.Part1 = Limb
  868. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  869. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  870. Joint.Parent = torso
  871.  
  872. local B = Instance.new("Part")
  873. B.TopSurface = 0
  874. B.BottomSurface = 0
  875. B.formFactor = "Symmetric"
  876. B.Size = Vector3.new(1, 1, 1)
  877. B.Transparency = 1
  878. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  879. B.Parent = char
  880. local W = Instance.new("Weld")
  881. W.Part0 = Limb
  882. W.Part1 = B
  883. W.C0 = CFrame.new(0, -0.5, 0)
  884. W.Parent = Limb
  885.  
  886. end
  887. local Limb = char:FindFirstChild("Right Leg")
  888. if Limb then
  889.  
  890. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  891. local Joint = Instance.new("Glue")
  892. Joint.Name = "RightHip"
  893. Joint.Part0 = torso
  894. Joint.Part1 = Limb
  895. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  896. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  897. Joint.Parent = torso
  898.  
  899. local B = Instance.new("Part")
  900. B.TopSurface = 0
  901. B.BottomSurface = 0
  902. B.formFactor = "Symmetric"
  903. B.Size = Vector3.new(1, 1, 1)
  904. B.Transparency = 1
  905. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  906. B.Parent = char
  907. local W = Instance.new("Weld")
  908. W.Part0 = Limb
  909. W.Part1 = B
  910. W.C0 = CFrame.new(0, -0.5, 0)
  911. W.Parent = Limb
  912.  
  913. end
  914. local Limb = char:FindFirstChild("Left Leg")
  915. if Limb then
  916.  
  917. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  918. local Joint = Instance.new("Glue")
  919. Joint.Name = "LeftHip"
  920. Joint.Part0 = torso
  921. Joint.Part1 = Limb
  922. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  923. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  924. Joint.Parent = torso
  925.  
  926. local B = Instance.new("Part")
  927. B.TopSurface = 0
  928. B.BottomSurface = 0
  929. B.formFactor = "Symmetric"
  930. B.Size = Vector3.new(1, 1, 1)
  931. B.Transparency = 1
  932. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  933. B.Parent = char
  934. local W = Instance.new("Weld")
  935. W.Part0 = Limb
  936. W.Part1 = B
  937. W.C0 = CFrame.new(0, -0.5, 0)
  938. W.Parent = Limb
  939.  
  940. end
  941. --[
  942. local Bar = Instance.new("Part")
  943. Bar.TopSurface = 0
  944. Bar.BottomSurface = 0
  945. Bar.formFactor = "Symmetric"
  946. Bar.Size = Vector3.new(1, 1, 1)
  947. Bar.Transparency = 1
  948. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  949. Bar.Parent = char
  950. local Weld = Instance.new("Weld")
  951. Weld.Part0 = torso
  952. Weld.Part1 = Bar
  953. Weld.C0 = CFrame.new(0, 0.5, 0)
  954. Weld.Parent = torso
  955. --]]
  956.  
  957. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  958.  
  959. end
  960.  
  961. -------------------------------------------------------
  962. --End Kyu's shitty stuff--
  963. -------------------------------------------------------
  964.  
  965. -------------------------------------------------------
  966. --Start Important Functions--
  967. -------------------------------------------------------
  968. function swait(num)
  969. if num == 0 or num == nil then
  970. game:service("RunService").Stepped:wait(0)
  971. else
  972. for i = 0, num do
  973. game:service("RunService").Stepped:wait(0)
  974. end
  975. end
  976. end
  977. function thread(f)
  978. coroutine.resume(coroutine.create(f))
  979. end
  980. function clerp(a, b, t)
  981. local qa = {
  982. QuaternionFromCFrame(a)
  983. }
  984. local qb = {
  985. QuaternionFromCFrame(b)
  986. }
  987. local ax, ay, az = a.x, a.y, a.z
  988. local bx, by, bz = b.x, b.y, b.z
  989. local _t = 1 - t
  990. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  991. end
  992. function QuaternionFromCFrame(cf)
  993. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  994. local trace = m00 + m11 + m22
  995. if trace > 0 then
  996. local s = math.sqrt(1 + trace)
  997. local recip = 0.5 / s
  998. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  999. else
  1000. local i = 0
  1001. if m00 < m11 then
  1002. i = 1
  1003. end
  1004. if m22 > (i == 0 and m00 or m11) then
  1005. i = 2
  1006. end
  1007. if i == 0 then
  1008. local s = math.sqrt(m00 - m11 - m22 + 1)
  1009. local recip = 0.5 / s
  1010. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1011. elseif i == 1 then
  1012. local s = math.sqrt(m11 - m22 - m00 + 1)
  1013. local recip = 0.5 / s
  1014. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1015. elseif i == 2 then
  1016. local s = math.sqrt(m22 - m00 - m11 + 1)
  1017. local recip = 0.5 / s
  1018. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1019. end
  1020. end
  1021. end
  1022. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1023. local xs, ys, zs = x + x, y + y, z + z
  1024. local wx, wy, wz = w * xs, w * ys, w * zs
  1025. local xx = x * xs
  1026. local xy = x * ys
  1027. local xz = x * zs
  1028. local yy = y * ys
  1029. local yz = y * zs
  1030. local zz = z * zs
  1031. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1032. end
  1033. function QuaternionSlerp(a, b, t)
  1034. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1035. local startInterp, finishInterp
  1036. if cosTheta >= 1.0E-4 then
  1037. if 1 - cosTheta > 1.0E-4 then
  1038. local theta = math.acos(cosTheta)
  1039. local invSinTheta = 1 / Sin(theta)
  1040. startInterp = Sin((1 - t) * theta) * invSinTheta
  1041. finishInterp = Sin(t * theta) * invSinTheta
  1042. else
  1043. startInterp = 1 - t
  1044. finishInterp = t
  1045. end
  1046. elseif 1 + cosTheta > 1.0E-4 then
  1047. local theta = math.acos(-cosTheta)
  1048. local invSinTheta = 1 / Sin(theta)
  1049. startInterp = Sin((t - 1) * theta) * invSinTheta
  1050. finishInterp = Sin(t * theta) * invSinTheta
  1051. else
  1052. startInterp = t - 1
  1053. finishInterp = t
  1054. end
  1055. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1056. end
  1057. function rayCast(Position, Direction, Range, Ignore)
  1058. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1059. end
  1060. local RbxUtility = LoadLibrary("RbxUtility")
  1061. local Create = RbxUtility.Create
  1062. local insta = true
  1063.  
  1064. MERKIO = Instance.new("Sound", tors) --why
  1065. MERKIO.SoundId = "http://www.roblox.com/asset/?id=195689102"
  1066. MERKIO.Volume = 10
  1067. MERKIO.Pitch = 1
  1068. MERKIO.Looped = false
  1069. MERKIO.TimePosition = 0
  1070.  
  1071. function DANCEFORME()
  1072. Character.Head.face.Texture = "rbxassetid://1676553712"
  1073. fattt = 0
  1074. MERKIO:Play()
  1075. repeat
  1076. for i = 0,0.17,0.03 do
  1077. swait()
  1078. MERKIO.Parent = tors
  1079. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1080. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1081. RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1082. LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1083. RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77)
  1084. LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67)
  1085. end
  1086. for i = 0,0.17,0.03 do
  1087. swait()
  1088. MERKIO.Parent = tors
  1089. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1090. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1091. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1092. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1093. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  1094. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.7)
  1095. end
  1096. fattt = fattt + 1
  1097. until fattt == 99999
  1098. MERKIO:Stop()
  1099. Character.Head.face.Texture = "rbxassetid://620619801"
  1100. hum.WalkSpeed = 40
  1101. end
  1102.  
  1103. DANCEFORME()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement