Advertisement
Mediakiller7Cool

Edit2

Mar 11th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. local Plr = owner
  2. local char = owner.Character
  3. local plr = owner
  4.  
  5. local BillboardGui = Instance.new("BillboardGui")
  6. local TextLabel = Instance.new("TextLabel")
  7.  
  8. local vol = 1
  9. local song = 0
  10. local pitch = 1
  11. local timepos = nil
  12. local mus = Instance.new("Sound",char)
  13. mus:Destroy()
  14.  
  15. BillboardGui.Name = "tag"
  16. BillboardGui.Parent = char.Head
  17. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18. BillboardGui.AlwaysOnTop = false
  19. BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
  20. BillboardGui.LightInfluence = 1
  21. BillboardGui.Size = UDim2.new(0, 200, 0, 50)
  22.  
  23. TextLabel.Parent = BillboardGui
  24. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  25. TextLabel.BackgroundTransparency = 1
  26. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  27. TextLabel.Font = Cartoon
  28. TextLabel.Text = "Mediakiller7 Visualizer"
  29. TextLabel.TextColor3 = Color3.new(126, 255, 240)
  30. TextLabel.TextScaled = true
  31. TextLabel.TextSize = 14
  32. TextLabel.TextWrapped = true
  33.  
  34. -- Chatted Function
  35. function onChatted(msg, recipient, speaker)
  36. local source = string.lower(speaker.Name)
  37.  
  38. if (string.sub(msg,1,6) == "!Play ") then
  39. local id = string.sub(msg,7)
  40. song = id
  41. end
  42.  
  43.  
  44. if (string.sub(msg,1,8) == "!Volume ") then
  45. local id = string.sub(msg,9)
  46. vol = id
  47. end
  48.  
  49.  
  50. if (string.sub(msg,1,7) == "!Pitch ") then
  51. local id = string.sub(msg,8)
  52. pitch = id
  53. end
  54.  
  55. if (string.sub(msg,1,6) == "!play ") then
  56. local id = string.sub(msg,7)
  57. song = id
  58. end
  59.  
  60.  
  61. if (string.sub(msg,1,8) == "!volume ") then
  62. local id = string.sub(msg,9)
  63. vol = id
  64. end
  65.  
  66.  
  67. if (string.sub(msg,1,7) == "!pitch ") then
  68. local id = string.sub(msg,8)
  69. pitch = id
  70. end
  71.  
  72. end
  73.  
  74.  
  75. Plr.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, Plr) end)
  76.  
  77. local hum = char:FindFirstChildOfClass("Humanoid")
  78. local idleanim = Instance.new("Animation")
  79. idleanim.Name = "Roblox Idle Animation"
  80. idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  81. local idleanimplay = hum:LoadAnimation(idleanim)
  82. idleanimplay:Play()
  83. wait(0.1)
  84. if char:FindFirstChild("Animate") then
  85. char.Animate:Destroy()
  86. end
  87. local remote = Instance.new("RemoteEvent", char)
  88. remote.Name = "ReplicationEvent"
  89. local client = NLS([==[
  90. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  91. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  92. spawn(function()
  93. while game:GetService("RunService").Heartbeat:Wait() do
  94. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  95. end
  96. end)
  97. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  98. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  99. remote:FireServer(1, input.KeyCode)
  100. end
  101. end)
  102.  
  103. mouse.Button1Down:Connect(function()
  104. remote:FireServer(2)
  105. end)
  106.  
  107. ]==], char)
  108.  
  109. local RS = char.Torso["Right Shoulder"]
  110. local LS = char.Torso["Left Shoulder"]
  111. local RH = char.Torso["Right Hip"]
  112. local LH = char.Torso["Left Hip"]
  113. local rootj = char.HumanoidRootPart.RootJoint
  114. local normalanim = true
  115. local animpose = "Idle"
  116. local sine = 0
  117. local RSnor = RS.C0
  118. local LSnor = LS.C0
  119. local RHnor = RH.C0
  120. local LHnor = LH.C0
  121. local rootjnor = rootj.C0
  122. local ff = Instance.new("ForceField",char)
  123. ff.Visible = false
  124.  
  125. ---------------------------------
  126. -----------Wrapping up-----------
  127. ---------------------------------
  128.  
  129. while game:GetService("RunService").Heartbeat:Wait() do
  130. hum.Health = 9999999
  131. hum.MaxHealth = 9999999
  132. hum.PlatformStand = false
  133. hum.Sit = false
  134.  
  135. for i,v in pairs(char:GetChildren()) do
  136. if v.ClassName == "Accessory" then
  137. v.Handle.Anchored = false
  138. end
  139.  
  140. if v.ClassName == "Part" then
  141. v.Anchored = false
  142. end
  143. end
  144.  
  145. if normalanim then
  146. sine = sine + 1
  147. end
  148.  
  149. if remote.Parent == char then
  150. remote.Name = "ReplicationEvent"
  151. else
  152. remote = Instance.new("RemoteEvent", char)
  153. end
  154. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  155. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  156. animpose = "Walking"
  157. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  158. animpose = "Jumping"
  159. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  160. animpose = "Falling"
  161. else
  162. animpose = "Idle"
  163. end
  164. if animpose == "Idle" and normalanim then
  165. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-1.3, 0, 0), 0.15)
  166. rootj.C0 = rootj.C0 * CFrame.new(math.sin(sine / 10) / 7, 0, math.sin(sine / 5) / 10)
  167. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0.3, 0, 0), 0.15)
  168. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0.3, 0, 0), 0.15)
  169. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1, 0, 0), 0.15)
  170. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1, 0, 0), 0.15)
  171. elseif animpose == "Walking" and normalanim then
  172. rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
  173. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  174.  
  175. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  176.  
  177. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  178.  
  179. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 5)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  180. elseif animpose == "Jumping" and normalanim then
  181. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
  182. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  183. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  184. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  185. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.3, 0, 0), 0.15)
  186. elseif animpose == "Falling" and normalanim then
  187. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
  188. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  189. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
  190. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  191. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15)
  192. end
  193.  
  194. if mus.Parent == char then
  195. mus.SoundId = "rbxassetid://"..song
  196. timepos = mus.TimePosition
  197. mus.Pitch = pitch
  198. mus.Volume = vol
  199. else
  200. mus = Instance.new("Sound", char)
  201. mus.Playing = true
  202. mus.Looped = true
  203. mus.TimePosition = timepos
  204. end
  205. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement