View difference between Paste ID: 66VSD9Cz and 5nMzBtzF
SHOW: | | - or go back to the newest paste.
1
local Plr = owner
2
local char = owner.Character
3
local plr = owner
4
5
-- [[ Color Functions ]] --
6
7
h = math.random(0, 100)
8
color = Color3.fromHSV(h / 100, 1, 0.9)
9
lastbeat = 0
10
lastloud = 0
11
12
-- [[ Cone ]] --
13
14
local cone = Instance.new("Part")
15
cone.Anchored = true
16
cone.CanCollide = false
17
cone.Locked = true
18
cone.Size = Vector3.new(0.5, 0.5, 0.5)
19
cone.Parent = char
20
cone.Transparency = 1
21
22
local conem = Instance.new("SpecialMesh")
23
conem.MeshType = Enum.MeshType.FileMesh
24
conem.MeshId = "rbxassetid://120647846"
25
conem.Scale = Vector3.new(1, 1, 1)
26
conem.Parent = cone
27
28
29
--[[ Particles ]]--
30
31
local partic = Instance.new("ParticleEmitter")
32
partic.Rate = 50
33
partic.EmissionDirection = Enum.NormalId.Right
34
partic.Texture = "rbxassetid://443789987"
35
partic.LightEmission = 5
36
partic.LightInfluence = 1
37
partic.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
38
partic.Parent = cone
39
40
--[[ Light ]]--
41
42
local lite = Instance.new("PointLight")
43
lite.Range = 0
44
lite.Brightness = 0
45
lite.Parent = char.HumanoidRootPart
46
47
--[[ Sound ]]--
48
49
local sound = Instance.new("Sound")
50
sound.Parent = char.HumanoidRootPart
51
sound.Volume = 10
52
sound.Name = "Music"
53
sound.Looped = true
54
55
plr.Chatted:connect(function(msg)
56
        if msg:sub(1, 6):lower()=='visual' then
57
                local val = Instance.new("NumberValue", char)
58
                val.Value = tonumber(msg:sub(7))
59
                local id = val.Value
60
                sound:Stop()
61
                sound.SoundId = 'rbxassetid://'..id
62
                sound:Play()
63
                sound.Looped = true
64
                wait()
65
        elseif msg:sub(1,5):lower()=='pitch' then
66
                local val2 = Instance.new("NumberValue", char)
67
                val2.Value = tonumber(msg:sub(6))
68
                local Pitch = val2.Value
69
                sound.Pitch = Pitch
70
        elseif msg:sub(1,3):lower()=='vol' then
71
                local val3 = Instance.new("NumberValue", char)
72
                val3.Value = tonumber(msg:sub(5))
73
                local Volume = val3.Value
74
                sound.Volume = Volume
75
end
76
end)
77
78
--[[ Remote ]]--
79
80
local Remote = Instance.new("RemoteEvent", char) 
81
Remote.Name = "Event"
82
local PlaybackSound = 0
83
84
--[[ Visual ]]--
85
86
local spin = 0
87
88
Remote.OnServerEvent:connect(function(plr, Playback)
89
	
90
spin = spin + 0.08 + Playback/10000
91
92
	local beat = math.abs(PlaybackSound - lastloud)
93
		if beat > lastbeat then
94
			lastbeat = beat
95
		else
96
			lastbeat = lastbeat - 10
97
			if lastbeat < 0 then
98
				lastbeat = 0
99
			end
100
		end
101
102
		h = (h + beat / 250) % 100
103
		lastloud = PlaybackSound
104
		color = Color3.fromHSV(h / 100, 5, 0.5 + lastbeat / 50)
105
		
106
lite.Range = 10 + Playback/25
107
lite.Brightness = 5 + Playback/5
108
lite.Color = lite.Color:lerp(Color3.fromHSV(h / 100, 1, 1), 0.25)
109
110
cone.CFrame = cone.CFrame:lerp(char.Head.CFrame * CFrame.new(0, 5, 0) * CFrame.Angles(0, spin, 0), 0.25)
111
cone.Color = cone.Color:lerp(Color3.fromHSV(h / 100, 1, 1), 0.25)
112
113
conem.Scale = conem.Scale:lerp(Vector3.new(1 + Playback/250, 1 + Playback/250, 1 + Playback/250), 0.25)
114
115
partic.Speed = NumberRange.new(5 + Playback/1000)
116
partic.Lifetime = NumberRange.new(5 + Playback/1000)
117
partic.Drag = 5 - Playback/50
118
partic.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0 + Playback/1000), NumberSequenceKeypoint.new(1, 0.25 + Playback/1000)})
119
partic.Color = ColorSequence.new(Color3.fromHSV(h / 100, 1, 1), Color3.fromHSV(h / 100, 1, 1))
120
partic.RotSpeed = NumberRange.new(0 - sound.PlaybackLoudness/-250, 0 + sound.PlaybackLoudness/250)
121
partic.SpreadAngle = Vector2.new(0 - sound.PlaybackLoudness/-25, 0 + sound.PlaybackLoudness/25)
122
123
PlaybackSound = Playback
124
125
end)
126
127
--[[ Fire Remote ]]--
128
129
NLS([==[
130
    while wait() do
131
        game:service'Players'.LocalPlayer.Character.Event:FireServer(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Music.PlaybackLoudness)
132
    end
133
]==], char)
134
135
--[[ Debounce ]]--
136
137
function debounce(func)
138
    local isRunning = false
139
    return function(...)
140
        if not isRunning then
141
            isRunning = true
142
 
143
            func(...)
144
 
145
            isRunning = false
146
        end
147
    end
148
end
149
150
local BillboardGui = Instance.new("BillboardGui")
151
local TextLabel = Instance.new("TextLabel")
152
153
local vol = 1
154
local song = 0
155
local pitch = 1
156
local timepos = nil
157
local mus = Instance.new("Sound",char)
158
mus:Destroy()
159
160
BillboardGui.Name = "tag"
161
BillboardGui.Parent = char.Head
162
BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
163
BillboardGui.AlwaysOnTop = false
164
BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
165
BillboardGui.LightInfluence = 1
166
BillboardGui.Size = UDim2.new(0, 200, 0, 50)
167
 
168
TextLabel.Parent = BillboardGui
169
TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
170
TextLabel.BackgroundTransparency = 1
171
TextLabel.Size = UDim2.new(0, 200, 0, 50)
172
TextLabel.Font = Enum.Font.SourceSans
173
TextLabel.Text = ".Tame vis."
174
TextLabel.TextColor3 = Color3.new(126, 255, 240)
175
TextLabel.TextScaled = true
176
TextLabel.TextSize = 14
177
TextLabel.TextWrapped = true
178
179
180-
local hum = char:FindFirstChildOfClass("Humanoid")
180+
181-
local idleanim = Instance.new("Animation")
181+
182-
idleanim.Name = "Roblox Idle Animation"
182+
183-
idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
183+
184-
local idleanimplay = hum:LoadAnimation(idleanim)
184+
185-
idleanimplay:Play()
185+
186-
wait(0.1)
186+
187-
if char:FindFirstChild("Animate") then
187+
188-
	char.Animate:Destroy()
188+
189
		end
190
	end)
191
	game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
192
		if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
193
			remote:FireServer(1, input.KeyCode)
194
		end
195
	end)
196
197
    mouse.Button1Down:Connect(function()
198
        remote:FireServer(2)
199
    end)
200
201
]==], char)
202
203
local RS = char.Torso["Right Shoulder"]
204
local LS = char.Torso["Left Shoulder"]
205
local RH = char.Torso["Right Hip"]
206
local LH = char.Torso["Left Hip"]
207
local rootj = char.HumanoidRootPart.RootJoint
208
local anim = 'Idle'
209
local idle = 0
210
local sine = 0
211
local RSnor = RS.C0
212
local LSnor = LS.C0
213
local RHnor = RH.C0
214
local LHnor = LH.C0
215
local rootjnor = rootj.C0
216
local ff = Instance.new("ForceField",char)
217-
local normalanim = true
217+
218-
local animpose = "Idle"
218+
219
---------------------------------
220
-----------Wrapping up-----------
221
---------------------------------
222
223
while game:GetService("RunService").Heartbeat:Wait() do
224
hum.Health = 9999999
225
hum.MaxHealth = 9999999
226
hum.PlatformStand = false
227
hum.Sit = false
228
229
for i,v in pairs(char:GetChildren()) do
230
if v.ClassName == "Accessory" then
231
v.Handle.Anchored = false
232
end
233
234
if v.ClassName == "Part" then
235
v.Anchored = false
236
end
237
end
238
239
	if normalanim then
240
		sine = sine + 1
241
	end
242
243
	if remote.Parent == char then
244
		remote.Name = "ReplicationEvent"
245
	else
246
		remote = Instance.new("RemoteEvent", char)
247
	end
248
	TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
249
	Velocity = RootPart.Velocity.y
250
	Sine = Sine + Change
251
	local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
252
	if RootPart.Velocity.y > 1 and hit == nil then 
253
		Anim = "Jump"
254
		if Attack == false then
255
			Change = 1
256
		PlayAnimationFromTable({
257
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
258
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
259
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
260
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
261
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
262
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
263
		}, .3, false)
264
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
265
		end
266
	elseif RootPart.Velocity.y < -1 and hit == nil then 
267
		Anim = "Fall"
268
		if Attack == false then
269
			Change = 1
270
		PlayAnimationFromTable({
271
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
272
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
273
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
274
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
275
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
276
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
277
		}, .3, false)
278
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
279
		end	
280
	elseif TorsoVelocity < 1 and hit ~= nil then
281
		Anim = "Idle"
282
		if Attack == false then
283
			Change = 1
284
		PlayAnimationFromTable({
285
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
286
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0), 
287
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
288
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
289
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
290
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
291
		}, .3, false)
292
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
293
		end
294
	elseif TorsoVelocity > 2 and hit ~= nil then
295
		Anim = "Walk"
296
            if Attack == false then
297
		PlayAnimationFromTable({
298
         CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0), 
299
         CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0), 
300
         CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
301
         CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0), 
302
         CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0), 
303
         CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0), 
304
		}, .3, false)
305
		MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
306
		end
307
	end
308
    if mus.Parent == char then
309
        mus.SoundId = "rbxassetid://"..song
310
        timepos = mus.TimePosition
311
mus.Pitch = pitch
312
        mus.Volume = vol
313
    else
314
        mus = Instance.new("Sound", char)
315
mus.Playing = true
316
mus.Looped = true
317
        mus.TimePosition = timepos
318
end
319
end