Sacki

Untitled

Nov 17th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.98 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.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8. plr = game.Players.LocalPlayer
  9. repeat wait() until plr.Character
  10. char = plr.Character
  11.  
  12. local neck = Instance.new("Weld",char)
  13. neck.Part0 = char.Torso
  14. neck.Part1 = char.Head
  15. neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  16. local humanroot = Instance.new("Weld",char)
  17. humanroot.Name = "HumanoidRoot"
  18. humanroot.Part0 = char.HumanoidRootPart
  19. humanroot.Part1 = char.Torso
  20. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  21. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  22. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  23. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  24. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  25. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  26. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  27. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  28. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  29. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  30. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  31. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  32. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  33. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  34. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  35. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  36. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  37. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  38. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  39. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  40. plr:ClearCharacterAppearance()
  41.  
  42. local hat = Instance.new("Part",char)
  43. hat.CanCollide = false
  44. local mesh = Instance.new("FileMesh",hat)
  45. mesh.Offset = Vector3.new(0,0,0)
  46. mesh.Scale = Vector3.new(1.05,1.05,1.05)
  47. mesh.MeshId = "http://www.roblox.com/asset/?id=46834172"
  48. mesh.TextureId = "http://www.roblox.com/asset/?id=47991609"
  49. local weld = Instance.new("Weld",hat)
  50. weld.Part0 = hat
  51. weld.Part1 = char.Head
  52. weld.C0 = CFrame.new(3.93556832e-09, -0.550000191, 0.0997277573, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  53. textColor = BrickColor.new("Institutional white").Color
  54. local naeeym2 = Instance.new("BillboardGui",char)
  55. naeeym2.AlwaysOnTop = true
  56. naeeym2.Size = UDim2.new(5,35,2,35)
  57. naeeym2.StudsOffset = Vector3.new(0,2,0)
  58. naeeym2.Adornee = hed
  59. naeeym2.Name = "Name"
  60.  
  61. local tecks2 = Instance.new("TextLabel",naeeym2)
  62. tecks2.BackgroundTransparency = 1
  63. tecks2.TextScaled = true
  64. tecks2.BorderSizePixel = 0
  65. tecks2.Text = "Sad Guest"
  66. tecks2.Font = Enum.Font.Antique
  67. tecks2.TextSize = 30
  68. tecks2.TextStrokeTransparency = 0
  69. tecks2.TextColor3 = textColor
  70. tecks2.TextStrokeColor3 = textColor
  71. tecks2.Size = UDim2.new(1,0,0.5,0)
  72. tecks2.Parent = naeeym2
  73. textfag = tecks2
  74. tecks2.Text = "Sad Guest"
  75. function swait(num)
  76. if num == 0 or num == nil then
  77. game:service("RunService").Stepped:wait(0)
  78. else
  79. for i = 0, num do
  80. game:service("RunService").Stepped:wait(0)
  81. end
  82. end
  83. end
  84. coroutine.resume(coroutine.create(function()
  85. while textfag ~= nil do
  86. swait()
  87. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  88. textfag.Rotation = math.random(-3,3)
  89. end
  90. end))
  91. game:GetService("RunService").RenderStepped:connect(function()
  92. char["Right Arm"].BrickColor = BrickColor.new("Institutional white")
  93. char["Left Arm"].BrickColor = BrickColor.new("Institutional white")
  94. char.Torso.BrickColor = BrickColor.new("Institutional white")
  95. char.Head.BrickColor = BrickColor.new("Institutional white")
  96. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  97. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  98. end)
  99.  
  100. local shirt = Instance.new("Shirt",char)
  101. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=57282083"
  102. local player = game.Players.LocalPlayer
  103. nottransformed = true
  104. local music = Instance.new("Sound",char)
  105. music.SoundId = "rbxassetid://183166337"
  106. music.Volume = 10
  107. music.Looped = true
  108. music:Play()
  109. local ff = Instance.new("ForceField",char)
  110. ff.Visible = false
  111.  
  112. local chara = workspace:WaitForChild(player.Name)
  113. local human = chara.Humanoid
  114. local pose = "Standing"
  115.  
  116. local speed = 0
  117.  
  118. human.Running:connect(function(s)
  119. speed = s
  120. end)
  121. cananimate = true
  122. local update = game:GetService("RunService")
  123. update.RenderStepped:connect(function()
  124. local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
  125. local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
  126. local dis = (chara.Torso.Position - position).magnitude
  127. if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
  128. pose = "Jumping"
  129. end
  130. if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
  131. pose = "Falling"
  132. end
  133. if dis < 3.8 and speed == 0 then
  134. pose = "Standing"
  135. end
  136. if dis < 3.8 and speed > 0 then
  137. pose = "Walking"
  138. end
  139. end)
  140. using = false
  141. char.Torso.Touched:connect(function(part)
  142. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  143. if human and human.Parent.Name ~= char.Name and not nottransformed then
  144. human.Parent:BreakJoints()
  145. human:Destroy()
  146. end
  147. end)
  148. mouse = plr:GetMouse()
  149. function taqrwrfeshgthtg(key) -- totally not transformation
  150. if key == "e" and not using and nottransformed then
  151. using = true
  152. cananimate = false
  153. for i = 0,1 , 0.05 do
  154. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  155. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  156. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  157. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  158. humanroot.C0 = humanroot.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  159. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  160. update.RenderStepped:wait()
  161. end
  162. wait(1)
  163. local explosion = Instance.new("Explosion",char)
  164. explosion.BlastPressure = 0
  165. explosion.BlastRadius = 1
  166. explosion.Position = char.Torso.Position
  167. nottransformed = false
  168. textfag.Text = "Ultimate Guest"
  169. music:Pause()
  170. music.SoundId = "rbxassetid://167229415"
  171. music:Resume()
  172. using = false
  173. cananimate = true
  174. end
  175. end
  176. mouse.KeyDown:connect(taqrwrfeshgthtg)
  177. while true do
  178. wait()
  179. plr:ClearCharacterAppearance()
  180. shirt.Parent = char
  181. if pose == "Standing" and cananimate and nottransformed then
  182. for i = 0,1 , 0.05 do
  183. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.34439754, -0.273881435, 1, 0, 0, 0, 0.869472563, 0.493981302, 0, -0.493981302, 0.869472563),i)
  184. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.940598965, 0.741546631, -0.9583745, -0.798321903, -0.602230966, 0, 0.602230966, -0.798321903, 0, 0, 0, 1),i)
  185. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.715367317, 0.758066654, -0.808870316, -0.69482702, 0.719177008, 0, -0.719177008, -0.69482702, 0, 0, 0, 1),i)
  186. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.69727612, -0.645241141, 1, 0, 0, 0, 0.905315101, -0.424740821, 0, 0.424740821, 0.905315101),i)
  187. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.66878891, -0.608989954, 1, 0, 0, 0, 0.933777869, -0.357853383, 0, 0.357853383, 0.933777869),i)
  188. humanroot.C0 = humanroot.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.909446001, -0.415821999, 0, 0.415821999, 0.909446001):inverse(),i)
  189. update.RenderStepped:wait()
  190. end
  191. end
  192. if pose == "Standing" and cananimate and not nottransformed then
  193. for i = 0,1 , 0.05 do
  194. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  195. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  196. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  197. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  198. humanroot.C0 = humanroot.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  199. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  200. update.RenderStepped:wait()
  201. end
  202. end
  203. if pose == "Walking" and cananimate then
  204. for i = 0,1 ,0.05 do
  205. humanroot.C0 = humanroot.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  206. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
  207. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
  208. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  209. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  210. game:GetService("RunService").Stepped:wait()
  211. end
  212. for i = 0,1 ,0.05 do
  213. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  214. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  215. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
  216. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
  217. game:GetService("RunService").Stepped:wait()
  218. end
  219. end
  220. if pose == "Jumping" and cananimate then
  221. for i = 0,1 , 0.05 do
  222. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.999999285, 0.000862598419, 1, 0, 0, 0, -0.99999845, 0.00172528333, 0, -0.00172528345, -0.99999851),i)
  223. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.999960184, -0.00631046295, 1, 0, 0, 0, -0.999920309, -0.0126213925, 0, 0.0126213934, -0.999920368),i)
  224. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  225. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  226. update.RenderStepped:wait()
  227. end
  228. end
  229. if pose == "Falling" and cananimate then
  230. for i = 0,1 , 0.05 do
  231. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.999999285, 0.000862598419, 1, 0, 0, 0, -0.99999845, 0.00172528333, 0, -0.00172528345, -0.99999851),i)
  232. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.999960184, -0.00631046295, 1, 0, 0, 0, -0.999920309, -0.0126213925, 0, 0.0126213934, -0.999920368),i)
  233. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  234. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
  235. update.RenderStepped:wait()
  236. end
  237. end
  238. end
Advertisement
Add Comment
Please, Sign In to add comment