kevin151515

Untitled

Feb 6th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 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 Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  21. local plr = game.Players.LocalPlayer
  22. repeat wait() until plr.Character
  23. plr = game.Players.LocalPlayer
  24. char = plr.Character
  25. torso = char.Torso
  26. head = char.Head
  27. neck = torso.Neck
  28. head.face:Destroy()
  29. sound = Instance.new("Sound", head)
  30. sound.SoundId = "rbxassetid://"
  31. sound.Volume = 100
  32. sound:Play()
  33. sound.Looped = true
  34. plr.Chatted:connect(function(message)
  35. if message:sub(1,4) == "Play" then
  36. sound:Stop()
  37. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  38. sound:Play()
  39. end
  40. end)
  41.  
  42.  
  43.  
  44.  
  45. ---- [[ Left Eye]] ----
  46.  
  47. eye1 = Instance.new("Part", workspace)
  48. eye1.Anchored = false
  49. eye1.Parent = head
  50. eye1.TopSurface = 0
  51. eye1.BrickColor = BrickColor.new("Black")
  52. eye1.BottomSurface = 0
  53. eye1m = Instance.new("SpecialMesh", eye1)
  54. eye1m.MeshType = Enum.MeshType.Sphere
  55. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  56. ogsize = eye1m.Scale
  57. weld = Instance.new("Weld", head)
  58. weld.Part0 = eye1
  59. weld.Part1 = head
  60. weld.C1 = CFrame.new(-.17,.14,-.57)
  61.  
  62.  
  63.  
  64. ---- [[ Right Eye ]] ----
  65.  
  66.  
  67. eye2 = Instance.new("Part", workspace)
  68. eye2.Anchored = false
  69. eye2.Parent = head
  70. eye2.TopSurface = 0
  71. eye2.BrickColor = BrickColor.new("Black")
  72. eye2.BottomSurface = 0
  73. eye2m = Instance.new("SpecialMesh", eye2)
  74. eye2m.MeshType = Enum.MeshType.Sphere
  75. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  76. ogsize = eye2m.Scale
  77. weld = Instance.new("Weld", head)
  78. weld.Part0 = eye2
  79. weld.Part1 = head
  80. weld.C1 = CFrame.new(.17,.14,-.57)
  81.  
  82.  
  83.  
  84. ---- [[ Mouth ]] ----
  85.  
  86. mouth = Instance.new("Part", workspace)
  87. mouth.Anchored = false
  88. mouth.Parent = head
  89. mouth.TopSurface = 0
  90. mouth.BrickColor = BrickColor.new("Black")
  91. mouth.BottomSurface = 0
  92. mouth.Material = "SmoothPlastic"
  93. mouthm = Instance.new("SpecialMesh", mouth)
  94. mouthm.MeshType = Enum.MeshType.Sphere
  95. mouthm.Scale = Vector3.new(.13,0.1,0.05)
  96. ogsize = mouthm.Scale
  97. weld = Instance.new("Weld", head)
  98. weld.Part0 = mouth
  99. weld.Part1 = head
  100. weld.C1 = CFrame.new(0,-.25,-.6)
  101. game:service'RunService'.RenderStepped:connect(function()
  102. mouthm.Scale = mouthm.Scale:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/1000,ogsize.Z),0.8)
  103. 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)
  104. end)
Advertisement
Add Comment
Please, Sign In to add comment