Advertisement
heyoooooooooo

Untitled

Feb 9th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.44 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local plr,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = plr.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 plr = 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 = plr: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]==],plr.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. local plr = owner
  84. char = plr.Character
  85. torso = char.Torso
  86. head = char.Head
  87. neck = torso.Neck
  88. head.face:Destroy()
  89. sound = Instance.new("Sound", head)
  90. sound.SoundId = "rbxassetid://"
  91. sound.Volume = 100
  92. sound:Play()
  93. sound.Looped = true
  94. plr.Chatted:connect(function(message)
  95. if message:sub(1,4) == "Play" then
  96. sound:Stop()
  97. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  98. sound:Play()
  99. end
  100. end)
  101.  
  102. plr.Chatted:connect(function(message)
  103. sound:Pause()
  104. if sound:Pause() then
  105. else
  106. sound:Resume()
  107. end
  108. end)
  109. --Remastered by WeregoanTwo
  110.  
  111. ---- [[ Left Eye]] ----
  112.  
  113. local RunService = game:GetService("RunService")
  114.  
  115. if RunService:IsStudio() then
  116. print("I am in Roblox Studio")
  117. else
  118. print("I am in an online Roblox Server")
  119. end
  120.  
  121. if RunService:IsRunMode() then
  122. print("Running in Studio")
  123. end
  124.  
  125. if RunService:IsClient() then
  126. print("I am a client")
  127. else
  128. print("I am not a client")
  129. end
  130.  
  131. if RunService:IsServer() then
  132. print("I am a server")
  133.  
  134. else
  135. print("I am not a server")
  136. end
  137.  
  138. if RunService:IsRunning() then
  139. print("The game is running")
  140. else
  141. print("The game is stopped or paused")
  142. end
  143. eye1 = Instance.new("Part", workspace)
  144. eye1.Anchored = false
  145. eye1.Parent = head
  146. eye1.TopSurface = 0
  147. eye1.BrickColor = BrickColor.new("Black")
  148. eye1.BottomSurface = 0
  149. eye1m = Instance.new("SpecialMesh", eye1)
  150. eye1m.MeshType = Enum.MeshType.Sphere
  151. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  152. ogsize = eye1m.Scale
  153. weld = Instance.new("Weld", head)
  154. weld.Part0 = eye1
  155. weld.Part1 = head
  156. weld.C1 = CFrame.new(-.17,.14,-.57)
  157. eye1.Material = Enum.Material.SmoothPlastic
  158.  
  159.  
  160. ---- [[ Right Eye ]] ----
  161. eye2 = Instance.new("Part", workspace)
  162. eye2.Anchored = false
  163. eye2.Parent = head
  164. eye2.TopSurface = 0
  165. eye2.BrickColor = BrickColor.new("Black")
  166. eye2.BottomSurface = 0
  167. eye2m = Instance.new("SpecialMesh", eye2)
  168. eye2m.MeshType = Enum.MeshType.Sphere
  169. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  170. ogsize = eye2m.Scale
  171. weld = Instance.new("Weld", head)
  172. weld.Part0 = eye2
  173. weld.Part1 = head
  174. weld.C1 = CFrame.new(.17,.14,-.57)
  175. eye2.Material = Enum.Material.SmoothPlastic
  176.  
  177.  
  178. ---- [[ Mouth ]] ----
  179.  
  180. mouth = Instance.new("Part", workspace)
  181. mouth.Anchored = false
  182. mouth.Parent = head
  183. mouth.TopSurface = 0
  184. mouth.BrickColor = BrickColor.new("Black")
  185. mouth.BottomSurface = 0
  186. mouth.Material = "SmoothPlastic"
  187. mouth.Transparency = 0
  188. mouthm = Instance.new("SpecialMesh", mouth)
  189. mouthm.MeshType = Enum.MeshType.Sphere
  190. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  191. ogsize = mouthm.Scale
  192. weld = Instance.new("Weld", head)
  193. weld.Part0 = mouth
  194. weld.Part1 = head
  195. weld.C1 = CFrame.new(0,-.25,-.6)
  196. local owner = plr
  197. character = owner.Character
  198. humanoid = character:findFirstChildOfClass("Humanoid")
  199. local rightleg = Instance.new("Weld", owner.Character.Torso)
  200. rightleg.Part0 = owner.Character.Torso
  201. rightleg.Part1 = owner.Character["Right Leg"]
  202. rightleg.C0 = CFrame.new(0.5,-2,0)
  203. rightleg.Name = "RightLegWeld"
  204. local leftleg = Instance.new("Weld", owner.Character.Torso)
  205. leftleg.Part0 = owner.Character.Torso
  206. leftleg.Part1 = owner.Character["Left Leg"]
  207. leftleg.C0 = CFrame.new(-0.5,-1,0)
  208. leftleg.Name = "LeftLegWeld"
  209. local rightarm = Instance.new("Weld", owner.Character.Torso)
  210. rightarm.Part0 = owner.Character.Torso
  211. rightarm.Part1 = owner.Character["Right Arm"]
  212. rightarm.C0 = CFrame.new(1.5,0,0)
  213. rightarm.Name = "RightArmWeld"
  214. local leftarm = Instance.new("Weld", owner.Character.Torso)
  215. leftarm.Part0 = owner.Character.Torso
  216. leftarm.Part1 = owner.Character["Left Arm"]
  217. leftarm.C0 = CFrame.new(-1.5,0,0)
  218. leftarm.Name = "LeftArmWeld"
  219. local humanoidrootpart = Instance.new("Weld", plr.Character.HumanoidRootPart)
  220. humanoidrootpart.Part0 = plr.Character.HumanoidRootPart
  221. humanoidrootpart.Part1 = plr.Character.Torso
  222. humanoidrootpart.Name = "HumanoidRootPartWeld"
  223. rootpart = character.HumanoidRootPart
  224. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  225. neck.C0 = neck.C0:lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(mouthm.Scale.Y*100) +math.rad(-90),0,math.rad(180)),0.1)
  226. if rootpart.Velocity.x > 1 or rootpart.Velocity.x < -1 or rootpart.Velocity.z > 1 or rootpart.Velocity.z < -1 then
  227. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick()*20)/15,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),math.cos(tick()*10)/15) * CFrame.fromEulerAnglesXYZ(humanoid.MoveDirection.z/6,0,-humanoid.MoveDirection.x/6) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0),0.3)
  228. leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()*10)*humanoid.MoveDirection.z/1.5,0,math.sin(tick()*10)*-humanoid.MoveDirection.x/1.5) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-0.5,0),0.3)
  229. rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ(-math.sin(tick()*10)*humanoid.MoveDirection.z/1.5,0,-math.sin(tick()*10)*-humanoid.MoveDirection.x/1.5) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-0.5,0),0.3)
  230. leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.cos(tick()*10)/4,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((-math.sin(tick()*10)*humanoid.MoveDirection.z)/1.5,0,(-math.sin(tick()*10)*-humanoid.MoveDirection.x)/1.5) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
  231. rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(tick()*10)/4,0) * CFrame.Angles(0,math.rad(-rootpart.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((math.sin(tick()*10)*humanoid.MoveDirection.z)/1.5,0,(math.sin(tick()*10)*-humanoid.MoveDirection.x)/1.5) * CFrame.Angles(0,math.rad(rootpart.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
  232. else
  233. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick())/20,0) * CFrame.Angles(0,math.rad(20),math.sin(tick())/30),0.3)
  234. leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-5)+math.cos(tick())/20) * CFrame.new(0,-0.5,0),0.3)
  235. rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,math.rad(5)-math.cos(tick())/20) * CFrame.new(0,-0.5,0),0.3)
  236. leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(-3)-math.sin(tick())/30) * CFrame.new(0,-1,0),0.3)
  237. rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(3)-math.sin(tick())/30) * CFrame.new(0,-1,0),0.3)
  238. end
  239. end
  240. mouth.Material = Enum.Material.SmoothPlastic
  241. repeat wait(10)
  242. eye1.Mesh.Scale = Vector3.new(0.02,0.055,0.03)
  243. eye2.Mesh.Scale = Vector3.new(0.02,0.055,0.03)
  244. wait(0.01)
  245. eye1.Mesh.Scale = Vector3.new(0.02,0.044,0.03)
  246. eye2.Mesh.Scale = Vector3.new(0.02,0.044,0.03)
  247. wait(0.01)
  248. eye1.Mesh.Scale = Vector3.new(0.02,0.033,0.03)
  249. eye2.Mesh.Scale = Vector3.new(0.02,0.033,0.03)
  250. wait(0.01)
  251. eye1.Mesh.Scale = Vector3.new(0.02,0.022,0.03)
  252. eye2.Mesh.Scale = Vector3.new(0.02,0.022,0.03)
  253. wait(0.01)
  254. eye1.Mesh.Scale = Vector3.new(0.02,0.011,0.03)
  255. eye2.Mesh.Scale = Vector3.new(0.02,0.011,0.03)
  256. wait(0.01)
  257. eye1.Mesh.Scale = Vector3.new(0.02,0.022,0.03)
  258. eye2.Mesh.Scale = Vector3.new(0.02,0.022,0.03)
  259. wait(0.01)
  260. eye1.Mesh.Scale = Vector3.new(0.02,0.033,0.03)
  261. eye2.Mesh.Scale = Vector3.new(0.02,0.033,0.03)
  262. wait(0.01)
  263. eye1.Mesh.Scale = Vector3.new(0.02,0.044,0.03)
  264. eye2.Mesh.Scale = Vector3.new(0.02,0.044,0.03)
  265. wait(0.01)
  266. eye1.Mesh.Scale = Vector3.new(0.02,0.12,0.03)
  267. eye2.Mesh.Scale = Vector3.new(0.02,0.12,0.03)
  268. until false
  269. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement