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