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 | ||
21 | local conem = Instance.new("SpecialMesh") | |
22 | conem.MeshType = Enum.MeshType.FileMesh | |
23 | - | conem.MeshId = "rbxassetid://0" |
23 | + | conem.MeshId = "rbxassetid://120647846" |
24 | conem.Scale = Vector3.new(1, 1, 1) | |
25 | conem.Parent = cone | |
26 | ||
27 | --[[ Particles ]]-- | |
28 | ||
29 | local partic = Instance.new("ParticleEmitter") | |
30 | partic.Rate = 50 | |
31 | partic.EmissionDirection = Enum.NormalId.Right | |
32 | partic.Texture = "rbxassetid://443789987" | |
33 | partic.LightEmission = 5 | |
34 | partic.LightInfluence = 1 | |
35 | partic.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)}) | |
36 | partic.Parent = cone | |
37 | ||
38 | --[[ Light ]]-- | |
39 | ||
40 | local lite = Instance.new("PointLight") | |
41 | lite.Range = 0 | |
42 | lite.Brightness = 0 | |
43 | lite.Parent = char.HumanoidRootPart | |
44 | ||
45 | --[[ Sound ]]-- | |
46 | ||
47 | local sound = Instance.new("Sound") | |
48 | sound.Parent = char.HumanoidRootPart | |
49 | sound.Volume = 10 | |
50 | sound.Name = "Music" | |
51 | sound.Looped = true | |
52 | ||
53 | plr.Chatted:connect(function(msg) | |
54 | if msg:sub(1, 6):lower()=='visual' then | |
55 | local val = Instance.new("NumberValue", char) | |
56 | val.Value = tonumber(msg:sub(7)) | |
57 | local id = val.Value | |
58 | sound:Stop() | |
59 | sound.SoundId = 'rbxassetid://'..id | |
60 | sound:Play() | |
61 | sound.Looped = true | |
62 | wait() | |
63 | elseif msg:sub(1,5):lower()=='pitch' then | |
64 | local val2 = Instance.new("NumberValue", char) | |
65 | val2.Value = tonumber(msg:sub(6)) | |
66 | local Pitch = val2.Value | |
67 | sound.Pitch = Pitch | |
68 | elseif msg:sub(1,3):lower()=='vol' then | |
69 | local val3 = Instance.new("NumberValue", char) | |
70 | val3.Value = tonumber(msg:sub(5)) | |
71 | local Volume = val3.Value | |
72 | sound.Volume = Volume | |
73 | end | |
74 | end) | |
75 | ||
76 | --[[ Remote ]]-- | |
77 | ||
78 | local Remote = Instance.new("RemoteEvent", char) | |
79 | Remote.Name = "Event" | |
80 | local PlaybackSound = 0 | |
81 | ||
82 | --[[ Visual ]]-- | |
83 | ||
84 | local spin = 0 | |
85 | ||
86 | Remote.OnServerEvent:connect(function(plr, Playback) | |
87 | ||
88 | spin = spin + 0.08 + Playback/10000 | |
89 | ||
90 | local beat = math.abs(PlaybackSound - lastloud) | |
91 | if beat > lastbeat then | |
92 | lastbeat = beat | |
93 | else | |
94 | lastbeat = lastbeat - 10 | |
95 | if lastbeat < 0 then | |
96 | lastbeat = 0 | |
97 | end | |
98 | end | |
99 | ||
100 | h = (h + beat / 250) % 100 | |
101 | lastloud = PlaybackSound | |
102 | color = Color3.fromHSV(h / 100, 5, 0.5 + lastbeat / 50) | |
103 | ||
104 | lite.Range = 10 + Playback/25 | |
105 | lite.Brightness = 5 + Playback/5 | |
106 | lite.Color = lite.Color:lerp(Color3.fromHSV(h / 100, 1, 1), 0.25) | |
107 | ||
108 | cone.CFrame = cone.CFrame:lerp(char.Head.CFrame * CFrame.new(0, 5, 0) * CFrame.Angles(0, spin, 0), 0.25) | |
109 | cone.Color = cone.Color:lerp(Color3.fromHSV(h / 100, 1, 1), 0.25) | |
110 | ||
111 | conem.Scale = conem.Scale:lerp(Vector3.new(1 + Playback/250, 1 + Playback/250, 1 + Playback/250), 0.25) | |
112 | ||
113 | partic.Speed = NumberRange.new(5 + Playback/1000) | |
114 | partic.Lifetime = NumberRange.new(5 + Playback/1000) | |
115 | partic.Drag = 5 - Playback/50 | |
116 | partic.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0 + Playback/1000), NumberSequenceKeypoint.new(1, 0.25 + Playback/1000)}) | |
117 | partic.Color = ColorSequence.new(Color3.fromHSV(h / 100, 1, 1), Color3.fromHSV(h / 100, 1, 1)) | |
118 | partic.RotSpeed = NumberRange.new(0 - sound.PlaybackLoudness/-250, 0 + sound.PlaybackLoudness/250) | |
119 | partic.SpreadAngle = Vector2.new(0 - sound.PlaybackLoudness/-25, 0 + sound.PlaybackLoudness/25) | |
120 | ||
121 | PlaybackSound = Playback | |
122 | ||
123 | end) | |
124 | ||
125 | --[[ Fire Remote ]]-- | |
126 | ||
127 | NLS([==[ | |
128 | while wait() do | |
129 | game:service'Players'.LocalPlayer.Character.Event:FireServer(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Music.PlaybackLoudness) | |
130 | end | |
131 | ]==], char) | |
132 | ||
133 | --[[ Debounce ]]-- | |
134 | ||
135 | function debounce(func) | |
136 | local isRunning = false | |
137 | return function(...) | |
138 | if not isRunning then | |
139 | isRunning = true | |
140 | ||
141 | func(...) | |
142 | ||
143 | isRunning = false | |
144 | end | |
145 | end | |
146 | end | |
147 | ||
148 | local BillboardGui = Instance.new("BillboardGui") | |
149 | local TextLabel = Instance.new("TextLabel") | |
150 | ||
151 | local vol = 1 | |
152 | local song = 0 | |
153 | local pitch = 1 | |
154 | local timepos = nil | |
155 | local mus = Instance.new("Sound",char) | |
156 | mus:Destroy() | |
157 | ||
158 | BillboardGui.Name = "tag" | |
159 | BillboardGui.Parent = char.Head | |
160 | BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling | |
161 | BillboardGui.AlwaysOnTop = false | |
162 | BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0) | |
163 | BillboardGui.LightInfluence = 1 | |
164 | BillboardGui.Size = UDim2.new(0, 200, 0, 50) | |
165 | ||
166 | TextLabel.Parent = BillboardGui | |
167 | TextLabel.BackgroundColor3 = Color3.new(0, 0, 0) | |
168 | TextLabel.BackgroundTransparency = 1 | |
169 | TextLabel.Size = UDim2.new(0, 200, 0, 50) | |
170 | TextLabel.Font = Enum.Font.SourceSans | |
171 | TextLabel.Text = ".Tame vis." | |
172 | TextLabel.TextColor3 = Color3.new(126, 255, 240) | |
173 | TextLabel.TextScaled = true | |
174 | TextLabel.TextSize = 14 | |
175 | TextLabel.TextWrapped = true | |
176 | ||
177 | ||
178 | Plr.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, Plr) end) | |
179 | ||
180 | local hum = char:FindFirstChildOfClass("Humanoid") | |
181 | local idleanim = Instance.new("Animation") | |
182 | idleanim.Name = "Roblox Idle Animation" | |
183 | idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
184 | local idleanimplay = hum:LoadAnimation(idleanim) | |
185 | idleanimplay:Play() | |
186 | wait(0.1) | |
187 | if char:FindFirstChild("Animate") then | |
188 | char.Animate:Destroy() | |
189 | end | |
190 | local remote = Instance.new("RemoteEvent", char) | |
191 | remote.Name = "ReplicationEvent" | |
192 | local client = NLS([==[ | |
193 | local mouse = game:GetService("Players").LocalPlayer:GetMouse() | |
194 | local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
195 | spawn(function() | |
196 | while game:GetService("RunService").Heartbeat:Wait() do | |
197 | remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent") | |
198 | end | |
199 | end) | |
200 | game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping) | |
201 | if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then | |
202 | remote:FireServer(1, input.KeyCode) | |
203 | end | |
204 | end) | |
205 | ||
206 | mouse.Button1Down:Connect(function() | |
207 | remote:FireServer(2) | |
208 | end) | |
209 | ||
210 | ]==], char) | |
211 | ||
212 | local RS = char.Torso["Right Shoulder"] | |
213 | local LS = char.Torso["Left Shoulder"] | |
214 | local RH = char.Torso["Right Hip"] | |
215 | local LH = char.Torso["Left Hip"] | |
216 | local rootj = char.HumanoidRootPart.RootJoint | |
217 | local normalanim = true | |
218 | local animpose = "Idle" | |
219 | local sine = 0 | |
220 | local RSnor = RS.C0 | |
221 | local LSnor = LS.C0 | |
222 | local RHnor = RH.C0 | |
223 | local LHnor = LH.C0 | |
224 | local rootjnor = rootj.C0 | |
225 | local ff = Instance.new("ForceField",char) | |
226 | ff.Visible = false | |
227 | ||
228 | --------------------------------- | |
229 | -----------Wrapping up----------- | |
230 | --------------------------------- | |
231 | ||
232 | while game:GetService("RunService").Heartbeat:Wait() do | |
233 | hum.Health = 9999999 | |
234 | hum.MaxHealth = 9999999 | |
235 | hum.PlatformStand = false | |
236 | hum.Sit = false | |
237 | ||
238 | for i,v in pairs(char:GetChildren()) do | |
239 | if v.ClassName == "Accessory" then | |
240 | v.Handle.Anchored = false | |
241 | end | |
242 | ||
243 | if v.ClassName == "Part" then | |
244 | v.Anchored = false | |
245 | end | |
246 | end | |
247 | ||
248 | if normalanim then | |
249 | sine = sine + 1 | |
250 | end | |
251 | ||
252 | if remote.Parent == char then | |
253 | remote.Name = "ReplicationEvent" | |
254 | else | |
255 | remote = Instance.new("RemoteEvent", char) | |
256 | end | |
257 | 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) | |
258 | if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then | |
259 | animpose = "Walking" | |
260 | elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then | |
261 | animpose = "Jumping" | |
262 | elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then | |
263 | animpose = "Falling" | |
264 | else | |
265 | animpose = "Idle" | |
266 | end | |
267 | if animpose == "Idle" and normalanim then | |
268 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-1.3, 0, 0), 0.15) | |
269 | rootj.C0 = rootj.C0 * CFrame.new(math.sin(sine / 10) / 7, 0, math.sin(sine / 5) / 10) | |
270 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0.3, 0, 0), 0.15) | |
271 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0.3, 0, 0), 0.15) | |
272 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.1, 0, 0), 0.15) | |
273 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.1, 0, 0), 0.15) | |
274 | elseif animpose == "Walking" and normalanim then | |
275 | rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15) | |
276 | 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) | |
277 | ||
278 | 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) | |
279 | ||
280 | 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) | |
281 | ||
282 | 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) | |
283 | elseif animpose == "Jumping" and normalanim then | |
284 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15) | |
285 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
286 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
287 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
288 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.3, 0, 0), 0.15) | |
289 | elseif animpose == "Falling" and normalanim then | |
290 | rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15) | |
291 | RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15) | |
292 | LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15) | |
293 | RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(-0.2, 0, 0), 0.15) | |
294 | LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(-0.2, 0, 0), 0.15) | |
295 | end | |
296 | ||
297 | if mus.Parent == char then | |
298 | mus.SoundId = "rbxassetid://"..song | |
299 | timepos = mus.TimePosition | |
300 | mus.Pitch = pitch | |
301 | mus.Volume = vol | |
302 | else | |
303 | mus = Instance.new("Sound", char) | |
304 | mus.Playing = true | |
305 | mus.Looped = true | |
306 | mus.TimePosition = timepos | |
307 | end | |
308 | end |