SHOW:
|
|
- or go back to the newest paste.
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,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer | |
5 | script.Parent = InternalData.RealOwner.Character | |
6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event | |
7 | local function createObject (connections, index) | |
8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end; | |
11 | meta.__index = function (self, i) | |
12 | if (i == 'TriggerEvent') then return runbind end; | |
13 | return connections[i] and connections[i].Event or index[i]; | |
14 | end; | |
15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
16 | end; | |
17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()}) | |
18 | local UserInputService = createObject({"InputBegan","InputEnded"},{}) | |
19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
23 | if FiredBy ~= InternalData.RealOwner then return end | |
24 | if Input.MouseEvent then | |
25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
26 | elseif Input.Sound then | |
27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
28 | else | |
29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
31 | for _,Action in pairs(ContextActionService.Actions) do | |
32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
33 | end | |
34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
35 | end | |
36 | end) | |
37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
38 | Event.Parent = NLS([[ | |
39 | local Player = owner; | |
40 | local Sounds = {}; | |
41 | local Event = script:WaitForChild("UserInput"); | |
42 | local UserInputService = game:GetService("UserInputService"); | |
43 | local Mouse = Player:GetMouse(); | |
44 | local Input = function(Input,gameProcessedEvent) | |
45 | if gameProcessedEvent then return end | |
46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
47 | end | |
48 | Event.OnClientEvent:connect(function(Args) | |
49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
50 | end) | |
51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
52 | local Hit,Target | |
53 | while wait(1/30) do | |
54 | for x,Sound in pairs(Sounds) do | |
55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end | |
56 | end | |
57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
60 | end | |
61 | end | |
62 | ]],InternalData.RealOwner.Character) | |
63 | end | |
64 | InternalData.NewOwner = setmetatable({},{ | |
65 | __index = function (self,Index) | |
66 | local Type = type(InternalData.RealOwner[Index]) | |
67 | if Type == "function" then | |
68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
69 | return function (self)return InternalData["Mouse"] end | |
70 | end | |
71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
72 | elseif Index == "FakePlayer" then | |
73 | return true | |
74 | end | |
75 | return InternalData.RealOwner[Index] | |
76 | end; | |
77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
78 | }) | |
79 | --LoadLibrary("RbxUtility").Create | |
80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
81 | if Library == "RbxUtility" then | |
82 | return setmetatable({},{ | |
83 | __tostring = function() return "RbxUtility" end; | |
84 | __index = function(self, Index) | |
85 | if Index:lower() == "create" then | |
86 | return function(Type) | |
87 | return function(Data) | |
88 | Data = Data or {} | |
89 | local Inst = Instance.new(Type) | |
90 | for x,y in pairs(Data) do | |
91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
92 | if y == owner then y = InternalData.RealOwner end | |
93 | Inst[x] = y | |
94 | end | |
95 | return Inst | |
96 | end | |
97 | end | |
98 | end | |
99 | return InternalData.LoadLibrary(Library)[Index] | |
100 | end | |
101 | }) | |
102 | end | |
103 | return InternalData.LoadLibrary(Library) | |
104 | end | |
105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{ | |
106 | __index = function (self,Index) | |
107 | if Index:lower() == 'new' then | |
108 | return function (Type, Parent) | |
109 | if Parent == owner then Parent = InternalData.RealOwner end | |
110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
112 | if not Type then return end | |
113 | if Type == "BillboardGui" then | |
114 | local ToReturn = setmetatable({},{ | |
115 | __index = function (self,Index) | |
116 | if type(Real[Index]) == "function" then | |
117 | if Index:lower() == "clone" then | |
118 | return function (self) | |
119 | local Real = Real:Clone() | |
120 | local ToReturn = setmetatable({RealObject = Real},{ | |
121 | __index = function (self,Index) | |
122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
123 | return Real[Index] | |
124 | end; | |
125 | __newindex = function (self,Index,Value) | |
126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
127 | if Value == owner then Value = InternalData.RealOwner end | |
128 | Real[Index] = Value | |
129 | end; | |
130 | __tostring = function(self) return tostring(Real) end; | |
131 | }) | |
132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
133 | end | |
134 | end | |
135 | return function (self,...) return Real[Index](Real,...)end | |
136 | end | |
137 | return Real[Index] | |
138 | end; | |
139 | __newindex = function (self,Index,Value) | |
140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
141 | if Value == owner then Value = InternalData.RealOwner end | |
142 | Real[Index] = Value | |
143 | end; | |
144 | __tostring = function(self) return tostring(Real) end; | |
145 | }) | |
146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
147 | elseif Type:lower() == "sound" then | |
148 | Real.Parent = owner.Character; | |
149 | local ToReturn = setmetatable({RealObject = Real},{ | |
150 | __index = function (self,Index) | |
151 | if Index:lower() == "playbackloudness" then | |
152 | return InternalData.SoundLoudness[Real] or 0 | |
153 | elseif type(Real[Index]) == "function" then | |
154 | if Index:lower() == "clone" then | |
155 | return function (self) | |
156 | local Real = Real:Clone() | |
157 | local ToReturn = setmetatable({},{ | |
158 | __index = function (self,Index) | |
159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
160 | return Real[Index] | |
161 | end; | |
162 | __newindex = function (self,Index,Value) | |
163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
164 | if Value == owner then Value = InternalData.RealOwner end | |
165 | Real[Index] = Value | |
166 | end; | |
167 | __tostring = function(self) return tostring(Real) end; | |
168 | }) | |
169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
170 | end | |
171 | end | |
172 | return function (self,...) return Real[Index](Real,...)end | |
173 | end | |
174 | return Real[Index] | |
175 | end; | |
176 | __newindex = function (self,Index,Value) | |
177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
178 | if Value == owner then Value = InternalData.RealOwner end | |
179 | Real[Index] = Value | |
180 | end; | |
181 | __tostring = function(self) return tostring(Real) end; | |
182 | }) | |
183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn; | |
184 | else | |
185 | local ToReturn = setmetatable({RealObject = Real},{ | |
186 | __index = function (self,Index) | |
187 | if type(Real[Index]) == "function" then | |
188 | if Index:lower() == "clone" then | |
189 | return function (self) | |
190 | local Real = Real:Clone() | |
191 | local ToReturn = setmetatable({},{ | |
192 | __index = function (self,Index) | |
193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
194 | return Real[Index] | |
195 | end; | |
196 | __newindex = function (self,Index,Value) | |
197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
198 | if Value == owner then Value = InternalData.RealOwner end | |
199 | Real[Index] = Value | |
200 | end; | |
201 | __tostring = function(self) return tostring(Real) end; | |
202 | }) | |
203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
204 | end | |
205 | end | |
206 | return function (self,...) return Real[Index](Real,...)end | |
207 | end | |
208 | return Real[Index] | |
209 | end; | |
210 | __newindex = function (self,Index,Value) | |
211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
212 | if Value == owner then Value = InternalData.RealOwner end | |
213 | Real[Index] = Value | |
214 | end; | |
215 | __tostring = function(self) return tostring(Real) end; | |
216 | }) | |
217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
218 | end | |
219 | end | |
220 | end | |
221 | return InternalData.RealInstance[Index] | |
222 | end; | |
223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
224 | }); | |
225 | InternalData.RealGame = game;game = setmetatable({},{ | |
226 | __index = function (self,Index) | |
227 | if InternalData.RealGame[Index] then | |
228 | local Type = type(InternalData.RealGame[Index]) | |
229 | if Type == "function" then | |
230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
231 | return function (self,Service) | |
232 | local FakeServices = { | |
233 | ["players"] = function() | |
234 | return setmetatable({},{ | |
235 | __index = function (self2,Index2) | |
236 | local RealService = InternalData.RealGame:GetService(Service) | |
237 | local Type2 = type(RealService[Index2]) | |
238 | if Type2 == "function" then | |
239 | return function (self,...) return RealService[Index2](RealService,...)end | |
240 | else | |
241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
242 | return RealService[Index2] | |
243 | end | |
244 | end; | |
245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
246 | }) | |
247 | end; | |
248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
250 | ["debris"] = function() | |
251 | return setmetatable({},{ | |
252 | __index = function(self2,Index2) | |
253 | local RealService = InternalData.RealGame:GetService(Service) | |
254 | local Type2 = type(RealService[Index2]) | |
255 | if Type2 == "function" then | |
256 | if Index2:lower() == "additem" then | |
257 | return function (self,Item,Time) | |
258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
259 | return RealService:AddItem(Item,Time) | |
260 | end | |
261 | end | |
262 | return function (self,...) return RealService[Index2](RealService,...) end | |
263 | end | |
264 | return RealService[Index2] | |
265 | end; | |
266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end | |
267 | }) | |
268 | end; | |
269 | ["runservice"] = function() | |
270 | return setmetatable({},{ | |
271 | __index = function(self2,Index2) | |
272 | local RealService = InternalData.RealGame:GetService(Service) | |
273 | local Type2 = type(RealService[Index2]) | |
274 | if Type2 == "function" then | |
275 | return function (self,...) return RealService[Index2](RealService,...) end | |
276 | else | |
277 | local RunServices = { | |
278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
280 | } | |
281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
282 | return RealService[Index2] | |
283 | end | |
284 | end; | |
285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end | |
286 | }) | |
287 | end | |
288 | } | |
289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
290 | return InternalData.RealGame:GetService(Service) | |
291 | end | |
292 | end | |
293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
294 | else | |
295 | if game:GetService(Index) then return game:GetService(Index) end | |
296 | return InternalData.RealGame[Index] | |
297 | end | |
298 | end | |
299 | return nil | |
300 | end; | |
301 | __tostring = function(self) return tostring(InternalData.game) end | |
302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!") | |
303 | ||
304 | wait(0) | |
305 | Player = game.Players.LocalPlayer | |
306 | ||
307 | local count = 0 | |
308 | local countspeed = 1 | |
309 | local sine = 0 | |
310 | local sinespeed = 1 | |
311 | local angle = nil | |
312 | local global_wait = 0 | |
313 | local showtag = false | |
314 | ||
315 | ||
316 | --dance booleans-- | |
317 | local jerk = false | |
318 | local party = false | |
319 | local canttouch = false | |
320 | local happy = false | |
321 | local spin = false | |
322 | local thriller = false | |
323 | local barrel = false | |
324 | local sax = false | |
325 | local spooky = false | |
326 | local stride = false | |
327 | local shuffle = false | |
328 | local rock = false | |
329 | local gagnam = false | |
330 | local snoop = false | |
331 | local darude = false | |
332 | local taco = false | |
333 | ------------------ | |
334 | --dance accessory-- | |
335 | local barrelbrick = nil | |
336 | local saxtool = nil | |
337 | ------------------- | |
338 | --custom animate-- | |
339 | local walk = false | |
340 | local jump = false | |
341 | local sit = false | |
342 | local run = false | |
343 | ------------------ | |
344 | --walk keys-- | |
345 | local W = false | |
346 | local A = false | |
347 | local S = false | |
348 | local D = false | |
349 | ------------- | |
350 | local m = Instance.new("Model",game.Players.LocalPlayer.Character) m.Name = "ModelParts" | |
351 | local miniweld = nil | |
352 | local rootpart = nil | |
353 | ||
354 | local Mouse = nil | |
355 | local Animate = nil | |
356 | local Music = nil | |
357 | local Asset = "http://www.roblox.com/asset/?id=" | |
358 | local Animating = nil | |
359 | local humanoid = nil | |
360 | local face = nil | |
361 | ||
362 | local head = nil | |
363 | local torso = nil | |
364 | local ra = nil | |
365 | local la = nil | |
366 | local rl = nil | |
367 | local ll = nil | |
368 | local rs = nil | |
369 | local ls = nil | |
370 | local rh = nil | |
371 | local lh = nil | |
372 | local neck = nil | |
373 | local rj = nil | |
374 | ||
375 | local char = nil | |
376 | local Hat1 = nil | |
377 | local Hat2 = nil | |
378 | local a,b = nil | |
379 | ||
380 | ----------musics----------------- | |
381 | local M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16 = nil | |
382 | --------------------------------- | |
383 | ||
384 | local mesh,meshids,textureids,w | |
385 | ||
386 | function fm(parent,meshid,x,y,z,meshtexture) | |
387 | if meshid == "cylinder" then | |
388 | mesh = Instance.new("CylinderMesh",parent) | |
389 | mesh.Scale = Vector3.new(x,y,z) | |
390 | return mesh | |
391 | else | |
392 | mesh = Instance.new("SpecialMesh",parent) | |
393 | if meshid ~= "sphere" then | |
394 | if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else | |
395 | mesh.MeshId = "rbxassetid://"..meshids[meshid] | |
396 | end | |
397 | else mesh.MeshType = 3 end | |
398 | mesh.Scale = Vector3.new(x,y,z) | |
399 | if meshtexture ~= nil then | |
400 | if type(meshtexture) == "number" then | |
401 | mesh.TextureId = "rbxassetid://"..meshtexture | |
402 | else | |
403 | mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end | |
404 | end | |
405 | return mesh | |
406 | end | |
407 | end | |
408 | ||
409 | function P(x,y,z,color,transparency,cancollide,anchored,parent,typee) | |
410 | if typee ~= nil then | |
411 | c = Instance.new("WedgePart",m) | |
412 | else | |
413 | c = Instance.new("Part",m) | |
414 | end | |
415 | c.TopSurface,c.BottomSurface = 0,0 | |
416 | c.Locked = true | |
417 | c.formFactor = "Custom" | |
418 | c.Size = Vector3.new(x,y,z) | |
419 | if color ~= "random" then | |
420 | c.BrickColor = BrickColor.new(color) | |
421 | else | |
422 | c.BrickColor = BrickColor:random() | |
423 | end | |
424 | c.Transparency = transparency | |
425 | c.CanCollide = cancollide | |
426 | if anchored ~= nil then | |
427 | c.Anchored = anchored | |
428 | end | |
429 | if parent ~= nil then | |
430 | c.Parent = parent | |
431 | end | |
432 | return c | |
433 | end | |
434 | ||
435 | function We(part0,part1,x,y,z,rx,ry,rz,parent) | |
436 | w = Instance.new("Motor",m) | |
437 | if parent ~= nil then w.Parent = parent end | |
438 | w.Part0,w.Part1 = part0,part1 | |
439 | w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz) | |
440 | return w | |
441 | end | |
442 | ||
443 | function SetAnimation(id,humanoid) | |
444 | if Animating ~= nil then | |
445 | Animating:Stop() | |
446 | end | |
447 | Animate.AnimationId = Asset .. id | |
448 | Animating = humanoid:LoadAnimation(Animate) | |
449 | Animating:Play() | |
450 | end | |
451 | ||
452 | function AnimationStop() | |
453 | jerk = false | |
454 | party = false | |
455 | canttouch = false | |
456 | happy = false | |
457 | spin = false | |
458 | thriller = false | |
459 | barrel = false | |
460 | sax = false | |
461 | spooky = false | |
462 | stride = false | |
463 | shuffle = false | |
464 | rock = false | |
465 | gagnam = false | |
466 | snoop = false | |
467 | darude = false | |
468 | taco = false | |
469 | if barrelbrick ~= nil then | |
470 | barrelbrick:Remove() | |
471 | barrelbrick = nil | |
472 | end | |
473 | if saxtool ~= nil then | |
474 | saxtool:Remove() | |
475 | saxtool = nil | |
476 | end | |
477 | if sandstorm ~= nil then | |
478 | sandstorm:Remove() | |
479 | sandstorm = nil | |
480 | end | |
481 | end | |
482 | ||
483 | local Musical | |
484 | function SetMusic(id,volume) | |
485 | Musical = Instance.new("Sound",char.Head) | |
486 | if volume == nil then | |
487 | Musical.Volume = 1 | |
488 | else | |
489 | Musical.Volume = volume | |
490 | end | |
491 | Musical.Looped = true | |
492 | Musical.SoundId = Asset .. id | |
493 | return Musical | |
494 | end | |
495 | ||
496 | function GenerateGui() | |
497 | a=Instance.new("ScreenGui") | |
498 | a.Name = "Memer" | |
499 | b=Instance.new("ImageLabel",a) | |
500 | b.BackgroundTransparency = 1 | |
501 | b.Size = UDim2.new(0,250,0,100) | |
502 | b.Position = UDim2.new(0,0,1,0) | |
503 | b.Image = Asset .. "http://www.roblox.com/asset/?id=534247804" | |
504 | b.Name = "Logo" | |
505 | c=Instance.new("Sound",a) | |
506 | c.Name = "Intro" | |
507 | c.Volume = 1 | |
508 | c.SoundId = Asset .. "rbxassetid://533871935" | |
509 | c.Looped = false | |
510 | return a | |
511 | end | |
512 | ||
513 | function Generate(player) | |
514 | char = player.Character | |
515 | Hat1 = P(1,1,1,'Bright violet ',0,false,false) | |
516 | Hat2 = P(1,1,1,'Bright violet ',0,false,false) | |
517 | wait() | |
518 | a=fm(Hat1,0,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1) | |
519 | b=fm(Hat2,0,1,1,1,18987684) b.VertexColor = Vector3.new(1,1,1) | |
520 | wait() | |
521 | if char:FindFirstChild("Head") then | |
522 | We(Hat1,char.Head,0,0.25,-0.135,0,0,0) | |
523 | We(Hat2,char.Head,0,0.8,0,0,0,0) | |
524 | if char.Head:FindFirstChild("face") ~= nil then | |
525 | face = char.Head:FindFirstChild("face") | |
526 | face.Texture = "rbxasset://textures/face.png" | |
527 | end | |
528 | c=char.Head:clone() | |
529 | c.Name = "FalseHead" | |
530 | c.CanCollide = false | |
531 | c.Parent = char | |
532 | We(c,char.Head,0,0,0,0,0,0) | |
533 | char.Head.Transparency = 1 | |
534 | for i,v in pairs(char:GetChildren()) do | |
535 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then | |
536 | v:Remove() | |
537 | end | |
538 | if v.ClassName == "BodyColors" then | |
539 | v.HeadColor = BrickColor.new("Bright yellow") | |
540 | v.LeftArmColor = BrickColor.new("Bright yellow") | |
541 | v.LeftLegColor = BrickColor.new("Br. yellowish green") | |
542 | v.RightArmColor = BrickColor.new("Bright yellow") | |
543 | v.RightLegColor = BrickColor.new("Br. yellowish green") | |
544 | v.TorsoColor = BrickColor.new("Bright Blue") | |
545 | end | |
546 | if v.ClassName == "Part" then | |
547 | if v.Name == "Head" or v.Name == "FalseHead" then | |
548 | v.BrickColor = BrickColor.new("Bright yellow") | |
549 | else | |
550 | v.BrickColor = BrickColor.new("Bright yellow") | |
551 | end | |
552 | end | |
553 | end | |
554 | ||
555 | local p = game.Players.LocalPlayer | |
556 | local char = p.Character | |
557 | ||
558 | shirt = Instance.new("Shirt", char) | |
559 | shirt.Name = "Shirt" | |
560 | pants = Instance.new("Pants", char) | |
561 | pants.Name = "Pants" | |
562 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=638410890" | |
563 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=247266984" | |
564 | ||
565 | for i,v in pairs(char:children()) do | |
566 | if v:IsA("Accessory") then | |
567 | v:Destroy() | |
568 | end | |
569 | end | |
570 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") | |
571 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown") | |
572 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") | |
573 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") | |
574 | Hair99 = Instance.new("Part") | |
575 | ||
576 | Hair99.Parent = p.Character | |
577 | Hair99.Name = "Hair" | |
578 | Hair99.formFactor = "Symmetric" | |
579 | Hair99.Size = Vector3.new(1, 1, 1) | |
580 | Hair99.CFrame = p.Character.Head.CFrame | |
581 | Hair99:BreakJoints() | |
582 | Hair99.CanCollide = false | |
583 | Hair99.TopSurface = "Smooth" | |
584 | Hair99.BottomSurface = "Smooth" | |
585 | Hair99.BrickColor = BrickColor.new("New Yeller") | |
586 | Hair99.Transparency = 1 | |
587 | ||
588 | Weld = Instance.new("Weld") | |
589 | Weld.Part0 = p.Character.Head | |
590 | Weld.Part1 = Hair99 | |
591 | Weld.Parent = p.Character.Head | |
592 | Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
593 | ||
594 | Hair7 = Instance.new("Part") | |
595 | Hair7.Parent = p.Character | |
596 | Hair7.Name = "Hair" | |
597 | Hair7.CanCollide = false | |
598 | Hair7.Locked = true | |
599 | Hair7.TopSurface = "Smooth" | |
600 | Hair7.BottomSurface = "Smooth" | |
601 | Hair7.formFactor = "Symmetric" | |
602 | Hair7.Material = "Metal" | |
603 | Hair7.BrickColor = BrickColor.new("Really black") | |
604 | Hair7.CFrame = p.Character.Torso.CFrame | |
605 | Hair7.Size = Vector3.new(1, 1, 1) | |
606 | Hair7.Transparency = 0 | |
607 | ||
608 | Weld1 = Instance.new("Weld") | |
609 | Weld1.Parent = p.Character.Head | |
610 | Weld1.Part0 = p.Character.Head | |
611 | Weld1.Part1 = Hair7 | |
612 | Weld1.C0 = CFrame.new(0, 1, 0) | |
613 | ||
614 | Mesh = Instance.new("SpecialMesh") | |
615 | Mesh.Offset = Vector3.new(0.2, -0.2, 0.2) | |
616 | Mesh.Parent = Hair7 | |
617 | Mesh.Scale = Vector3.new(1.2, 1.2, 1.2) | |
618 | Mesh.MeshType = "FileMesh" | |
619 | Mesh.MeshId = "http://www.roblox.com/asset/?id=476757756" | |
620 | Mesh.TextureId = "" | |
621 | ----------musics--------------- | |
622 | M1=SetMusic(142524640) | |
623 | M1.Volume = 50 | |
624 | M2=SetMusic(663760008) | |
625 | M2.Volume = 50 | |
626 | M3=SetMusic(148047526) | |
627 | M3.Volume = 50 | |
628 | M4=SetMusic(518673637) | |
629 | M4.Volume = 50 | |
630 | M5=SetMusic(194380361) | |
631 | M5.Volume = 50 | |
632 | M6=SetMusic(540190383) | |
633 | M6.Volume = 50 | |
634 | M7=SetMusic(253827644) | |
635 | M7.Volume = 50 | |
636 | M8=SetMusic(534878097) | |
637 | M8.Volume = 50 | |
638 | M9=SetMusic(178297940) | |
639 | M9.Volume = 50 | |
640 | M10=SetMusic(241814102) | |
641 | M10.Volume = 50 | |
642 | M11=SetMusic(533874013) | |
643 | M11.Volume = 50 | |
644 | M12=SetMusic(316168561) | |
645 | M12.Volume = 50 | |
646 | M13=SetMusic(142300879) | |
647 | M13.Volume = 50 | |
648 | M14=SetMusic(684159363) | |
649 | M14.Volume = 50 | |
650 | M15=SetMusic(787297457) | |
651 | M15.Volume = 50 | |
652 | M16=SetMusic(597084853) | |
653 | M16.Volume = 50 | |
654 | boi=SetMusic(597084853) | |
655 | ------------------------------- | |
656 | ||
657 | if char:FindFirstChild("HumanoidRootPart") ~= nil then | |
658 | rootpart = char:FindFirstChild("HumanoidRootPart") | |
659 | end | |
660 | if showtag == true then | |
661 | local bbg = Instance.new("BillboardGui",c) | |
662 | bbg.Adornee = c | |
663 | bbg.Name = "satuttava" | |
664 | bbg.Size = UDim2.new(6,0,2,0) | |
665 | bbg.StudsOffset = Vector3.new(0,2,0) | |
666 | local box = Instance.new("TextLabel",bbg) | |
667 | box.Size = UDim2.new(1,0,1,0) | |
668 | box.BackgroundColor = BrickColor.new("White") | |
669 | box.TextColor3 = Color3.new(255,0,0) | |
670 | box.TextStrokeTransparency = 0.5 | |
671 | box.Font = "Arcade" | |
672 | box.Text = Player.Name | |
673 | box.BackgroundTransparency = 1 | |
674 | box.Position = UDim2.new(0,0,0,0) | |
675 | box.TextScaled = true | |
676 | end | |
677 | if char:FindFirstChild("Humanoid") ~= nil then | |
678 | char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100 | |
679 | wait() | |
680 | char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth | |
681 | --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name | |
682 | humanoid = char:FindFirstChild("Humanoid") | |
683 | if humanoid:FindFirstChild("Animator") ~= nil then | |
684 | humanoid:FindFirstChild("Animator"):Remove() | |
685 | --Instance.new("Animator",humanoid) | |
686 | end | |
687 | if char:FindFirstChild("Animate") ~= nil then | |
688 | char:FindFirstChild("Animate"):Remove() | |
689 | end | |
690 | end | |
691 | Mouse = player:GetMouse() | |
692 | Music = Instance.new("Sound",char.Head) | |
693 | Music.Volume = 1 | |
694 | Music.Looped = true | |
695 | Music.SoundId = Asset | |
696 | Animate = Instance.new("Animation",char.Head) | |
697 | Animate.AnimationId = Asset | |
698 | ||
699 | ||
700 | ||
701 | head = char:FindFirstChild("Head") | |
702 | torso = char:FindFirstChild("Torso") | |
703 | ra = char:findFirstChild("Right Arm") | |
704 | la = char:findFirstChild("Left Arm") | |
705 | rl = char:findFirstChild("Right Leg") | |
706 | ll = char:findFirstChild("Left Leg") | |
707 | rs = torso:findFirstChild("Right Shoulder") | |
708 | ls = torso:findFirstChild("Left Shoulder") | |
709 | rh = torso:findFirstChild("Right Hip") | |
710 | lh = torso:findFirstChild("Left Hip") | |
711 | neck = torso:findFirstChild("Neck") | |
712 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
713 | ||
714 | state = humanoid:GetState() | |
715 | local ca = nil | |
716 | ca=GenerateGui() | |
717 | ca.Parent = player.PlayerGui | |
718 | if ca:FindFirstChild("Logo") ~= nil then | |
719 | ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true) | |
720 | if ca:FindFirstChild("Intro") ~= nil then | |
721 | ca:FindFirstChild("Intro"):Play() | |
722 | coroutine.resume(coroutine.create(function() | |
723 | for i=0,30 do | |
724 | ca:FindFirstChild("Intro").Volume = 1/(i/2) | |
725 | wait(0.5) | |
726 | if i >= 30 then | |
727 | break | |
728 | end | |
729 | end | |
730 | end)) | |
731 | end | |
732 | end | |
733 | ||
734 | if humanoid ~= nil then | |
735 | humanoid.Changed:connect(function(pro) | |
736 | if pro == "MoveDirection" or pro == "Jump" then | |
737 | if Music.IsPlaying == true then | |
738 | AnimationStop() | |
739 | end | |
740 | end | |
741 | end) | |
742 | humanoid.Died:connect(function() | |
743 | AnimationStop() | |
744 | end) | |
745 | ||
746 | Mouse.KeyUp:connect(function(key) | |
747 | if key == "w" then | |
748 | W = false | |
749 | end | |
750 | if key == "a" then | |
751 | A = false | |
752 | end | |
753 | if key == "s" then | |
754 | S = false | |
755 | end | |
756 | if key == "d" then | |
757 | D = false | |
758 | end | |
759 | if string.byte(key) == 48 then | |
760 | run = false | |
761 | end | |
762 | end) | |
763 | ||
764 | Mouse.KeyDown:connect(function(key) | |
765 | if key == "w" then | |
766 | W = true | |
767 | AnimationStop() | |
768 | end | |
769 | if key == "a" then | |
770 | A = true | |
771 | AnimationStop() | |
772 | end | |
773 | if key == "s" then | |
774 | S = true | |
775 | AnimationStop() | |
776 | end | |
777 | if key == "d" then | |
778 | D = true | |
779 | AnimationStop() | |
780 | end | |
781 | end) | |
782 | ||
783 | ||
784 | ||
785 | Mouse.KeyDown:connect(function(key) | |
786 | KeyUsed(key) | |
787 | end) | |
788 | end | |
789 | end | |
790 | print'fuck you!' | |
791 | end | |
792 | ||
793 | function KeyUsed(key) | |
794 | if humanoid ~= nil then | |
795 | if humanoid.Health > 0 then | |
796 | if string.byte(key) == 32 then | |
797 | jump = true | |
798 | AnimationStop() | |
799 | --sit = false | |
800 | end | |
801 | if string.byte(key) == 50 then | |
802 | AnimationStop() | |
803 | if sit == true then | |
804 | sit = false | |
805 | else | |
806 | sit = true | |
807 | end | |
808 | end | |
809 | if string.byte(key) == 48 then | |
810 | run = true | |
811 | end | |
812 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
813 | if key == "Q" or key == "q" then | |
814 | AnimationStop() | |
815 | canttouch = true | |
816 | M1:Play() | |
817 | end | |
818 | if key == "E" or key == "e" then | |
819 | AnimationStop() | |
820 | party = true | |
821 | M2:Play() | |
822 | end | |
823 | if key == "R" or key == "r" then | |
824 | AnimationStop() | |
825 | jerk = true | |
826 | M3:Play() | |
827 | end | |
828 | if key == "T" or key == "t" then | |
829 | AnimationStop() | |
830 | happy = true | |
831 | M4:Play() | |
832 | end | |
833 | if key == "Y" or key == "y" then | |
834 | AnimationStop() | |
835 | spin = true | |
836 | M5:Play() | |
837 | end | |
838 | if key == "U" or key == "u" then | |
839 | AnimationStop() | |
840 | thriller = true | |
841 | M6:Play() | |
842 | end | |
843 | if key == "F" or key == "f" then | |
844 | AnimationStop() | |
845 | barrel = true | |
846 | M7:Play() | |
847 | if barrelbrick == nil and barrel == true then | |
848 | barrelbrick = P(2,2,1,'Black',0,false,false) | |
849 | a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1) | |
850 | We(barrelbrick,char.Torso,0,-0.2,0,0,0,0) | |
851 | end | |
852 | end | |
853 | if key == "P" or key == "p" then | |
854 | AnimationStop() | |
855 | sax = true | |
856 | M8:Play() | |
857 | if saxtool == nil and sax == true then | |
858 | saxtool = P(1,2,2,'Black',0,false,false) | |
859 | a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1) | |
860 | b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0) | |
861 | b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8) | |
862 | end | |
863 | end | |
864 | if key == "G" or key == "g" then | |
865 | AnimationStop() | |
866 | spooky = true | |
867 | M9:Play() | |
868 | end | |
869 | if key == "H" or key == "h" then | |
870 | AnimationStop() | |
871 | stride = true | |
872 | M10:Play() | |
873 | end | |
874 | if key == "J" or key == "j" then | |
875 | AnimationStop() | |
876 | shuffle = true | |
877 | M11:Play() | |
878 | end | |
879 | if key == "K" or key == "k" then | |
880 | AnimationStop() | |
881 | rock = true | |
882 | M12:Play() | |
883 | end | |
884 | if key == "L" or key == "l" then | |
885 | AnimationStop() | |
886 | gagnam = true | |
887 | M13:Play() | |
888 | end | |
889 | if key == "Z" or key == "z" then | |
890 | AnimationStop() | |
891 | snoop = true | |
892 | M14:Play() | |
893 | end | |
894 | if key == "X" or key == "x" then | |
895 | AnimationStop() | |
896 | darude = true | |
897 | M15:Play() | |
898 | if sandstorm == nil and darude == true then | |
899 | sandstorm = P(1,1,1,'Black',0,false,false) | |
900 | sandstorm.Transparency = 1 | |
901 | a=Instance.new("Smoke",sandstorm) | |
902 | a.Color = Color3.new(255/255,255/255,175/255) | |
903 | a.Size = 0.4 | |
904 | a.RiseVelocity = 3 | |
905 | a.Opacity = 0.75 | |
906 | b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0) | |
907 | b.C1 = CFrame.new(0, -2, 0) | |
908 | end | |
909 | end | |
910 | if key == "C" or key == "c" then | |
911 | AnimationStop() | |
912 | taco = true | |
913 | M16:Play() | |
914 | boi:Stop() | |
915 | end | |
916 | end | |
917 | end | |
918 | end | |
919 | end | |
920 | ||
921 | Generate(Player) | |
922 | ||
923 | game:service'RunService'.Stepped:connect(function() | |
924 | count = (count % 100) + countspeed | |
925 | angle = math.pi * math.sin(math.pi*2/100*count) | |
926 | countspeed = 1 | |
927 | ||
928 | state = humanoid:GetState() | |
929 | if state ~= Enum.HumanoidStateType.Freefall then | |
930 | jump = false | |
931 | else | |
932 | jump = true | |
933 | sit = false | |
934 | AnimationStop() | |
935 | end | |
936 | ||
937 | local mesh1anan = Instance.new("SpecialMesh") | |
938 | mesh1anan.MeshType = Enum.MeshType.FileMesh | |
939 | mesh1anan.Scale = Vector3.new(0.3,0.3,0.3) | |
940 | mesh1anan.MeshId = "http://www.roblox.com/asset/?id=430210147" | |
941 | mesh1anan.TextureId = "http://www.roblox.com/asset/?id=430210159" | |
942 | mesh1anan.Scale = Vector3.new(0.1,0.1,0.1) | |
943 | ||
944 | if taco == true then | |
945 | if char ~= nil then | |
946 | local locationanan = char:GetModelCFrame() | |
947 | local tacoa = Instance.new("Part") | |
948 | tacoa.CanCollide = false | |
949 | tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
950 | local meshanananan = mesh1anan:clone() | |
951 | meshanananan.Parent = tacoa | |
952 | tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250) | |
953 | tacoa.Parent = workspace | |
954 | game:GetService("Debris"):AddItem(tacoa,4) | |
955 | end | |
956 | end | |
957 | ||
958 | ||
959 | ||
960 | ||
961 | if canttouch == false then | |
962 | M1:Stop() | |
963 | end | |
964 | if party == false then | |
965 | M2:Stop() | |
966 | end | |
967 | if jerk == false then | |
968 | M3:Stop() | |
969 | end | |
970 | if happy == false then | |
971 | M4:Stop() | |
972 | end | |
973 | if spin == false then | |
974 | M5:Stop() | |
975 | end | |
976 | if thriller == false then | |
977 | M6:Stop() | |
978 | end | |
979 | if barrel == false then | |
980 | M7:Stop() | |
981 | end | |
982 | if sax == false then | |
983 | M8:Stop() | |
984 | end | |
985 | if spooky == false then | |
986 | M9:Stop() | |
987 | end | |
988 | if stride == false then | |
989 | M10:Stop() | |
990 | end | |
991 | if shuffle == false then | |
992 | M11:Stop() | |
993 | end | |
994 | if rock == false then | |
995 | M12:Stop() | |
996 | end | |
997 | if gagnam == false then | |
998 | M13:Stop() | |
999 | end | |
1000 | if snoop == false then | |
1001 | M14:Stop() | |
1002 | end | |
1003 | if darude == false then | |
1004 | M15:Stop() | |
1005 | end | |
1006 | if taco == false then | |
1007 | M16:Stop() | |
1008 | boi:Stop() | |
1009 | end | |
1010 | ||
1011 | if run == true and sit == false then | |
1012 | humanoid.WalkSpeed = 25 | |
1013 | elseif sit == true then | |
1014 | humanoid.WalkSpeed = 0 | |
1015 | else | |
1016 | humanoid.WalkSpeed = 16 | |
1017 | end | |
1018 | ||
1019 | if global_wait == 380 then global_wait = 0 end | |
1020 | ||
1021 | if (W == false or A == false or S == false or D == false) and jump == false and sit == false then | |
1022 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
1023 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75) | |
1024 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
1025 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75) | |
1026 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0) | |
1027 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1028 | end | |
1029 | ||
1030 | ||
1031 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
1032 | local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0)) | |
1033 | local hitz,enz = workspace:FindPartOnRay(ray, char) | |
1034 | if hitz then | |
1035 | if rootpart:FindFirstChild("Weld") == nil then | |
1036 | miniweld = Instance.new("Weld", rootpart) | |
1037 | miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame) | |
1038 | miniweld.Part0 = hitz | |
1039 | miniweld.Part1 = rootpart | |
1040 | humanoid.PlatformStand = true | |
1041 | end | |
1042 | end | |
1043 | else | |
1044 | if rootpart:FindFirstChild("Weld") ~= nil then | |
1045 | rootpart:FindFirstChild("Weld"):Destroy() | |
1046 | humanoid.PlatformStand = false | |
1047 | end | |
1048 | end | |
1049 | ||
1050 | if (W == false or A == false or S == false or D == false) and jump == false and sit == true then | |
1051 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15) | |
1052 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15) | |
1053 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15) | |
1054 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15) | |
1055 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
1056 | rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0) | |
1057 | end | |
1058 | ||
1059 | if jump == true and sit == false then | |
1060 | countspeed = 2 | |
1061 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
1062 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12) | |
1063 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
1064 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12) | |
1065 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
1066 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
1067 | end | |
1068 | ||
1069 | if (W == true or A == true or S == true or D == true) and jump == false and sit == false then | |
1070 | if run == true then | |
1071 | countspeed = 4 | |
1072 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
1073 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
1074 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
1075 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5) | |
1076 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
1077 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0) | |
1078 | else | |
1079 | countspeed = 2 | |
1080 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
1081 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4) | |
1082 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
1083 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6) | |
1084 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
1085 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0) | |
1086 | end | |
1087 | end | |
1088 | ||
1089 | if W == false and A == false and S == false and D == false and jump == false and sit == false then | |
1090 | if jerk == true and jump == false and sit == false then | |
1091 | countspeed = 2 | |
1092 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4) | |
1093 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4) | |
1094 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(angle*0.5, 0, -math.abs(angle*0.15)) | |
1095 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(-angle*0.5, 0, math.abs(angle*0.15)) | |
1096 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
1097 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0) | |
1098 | elseif party == true and jump == false and sit == false then | |
1099 | countspeed = 4 | |
1100 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
1101 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15) | |
1102 | ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
1103 | rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10) | |
1104 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0) | |
1105 | rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1106 | elseif canttouch == true and jump == false and sit == false then | |
1107 | countspeed = 2 | |
1108 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12) | |
1109 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12) | |
1110 | lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8) | |
1111 | rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8) | |
1112 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
1113 | rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1114 | elseif happy == true and jump == false and sit == false then | |
1115 | countspeed = 4 | |
1116 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8) | |
1117 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8) | |
1118 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
1119 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10) | |
1120 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15) | |
1121 | rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1122 | elseif spin == true and jump == false and sit == false then | |
1123 | global_wait = (global_wait % 360) + 4 | |
1124 | countspeed = 4 | |
1125 | ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10) | |
1126 | rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10) | |
1127 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
1128 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10) | |
1129 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1130 | rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
1131 | elseif thriller == true and jump == false and sit == false then | |
1132 | countspeed = 2 | |
1133 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15) | |
1134 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15) | |
1135 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15) | |
1136 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15) | |
1137 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0) | |
1138 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50) | |
1139 | elseif barrel == true and jump == false and sit == false then | |
1140 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
1141 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi) | |
1142 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
1143 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0) | |
1144 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1145 | rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle) | |
1146 | elseif sax == true and jump == false and sit == false then | |
1147 | countspeed = 2 | |
1148 | ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30)) | |
1149 | rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30)) | |
1150 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30)) | |
1151 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30)) | |
1152 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1153 | rj.C0 = CFrame.new(0, -math.abs(angle*0.05), math.abs(angle*0.025)) * CFrame.Angles(math.pi/2 + math.abs(angle/20), math.pi, 0) | |
1154 | elseif spooky == true and jump == false and sit == false then | |
1155 | countspeed = 3 | |
1156 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5) | |
1157 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5) | |
1158 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16) | |
1159 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16) | |
1160 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/12, math.pi, 0) | |
1161 | rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0) | |
1162 | elseif stride == true and jump == false and sit == false then | |
1163 | countspeed = 2.5 | |
1164 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8) | |
1165 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8) | |
1166 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
1167 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16) | |
1168 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1169 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0) | |
1170 | elseif shuffle == true and jump == false and sit == false then | |
1171 | countspeed = 2 | |
1172 | ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5) | |
1173 | rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5) | |
1174 | lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
1175 | rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15) | |
1176 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0) | |
1177 | rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0) | |
1178 | elseif rock == true and jump == false and sit == false then | |
1179 | countspeed = 4 | |
1180 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2) | |
1181 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2) | |
1182 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32) | |
1183 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32) | |
1184 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1185 | rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1186 | elseif gagnam == true and jump == false and sit == false then | |
1187 | countspeed = 5 | |
1188 | ls.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20) | |
1189 | rs.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20) | |
1190 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
1191 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0) | |
1192 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0) | |
1193 | rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1194 | elseif snoop == true and jump == false and sit == false then | |
1195 | countspeed = 2 | |
1196 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4) | |
1197 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4) | |
1198 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
1199 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4) | |
1200 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0) | |
1201 | rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0) | |
1202 | elseif darude == true and jump == false and sit == false then | |
1203 | countspeed = 3 | |
1204 | ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5) | |
1205 | rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3) | |
1206 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3) | |
1207 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5) | |
1208 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0) | |
1209 | rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0) | |
1210 | elseif taco == true and jump == false and sit == false then | |
1211 | countspeed = 20 | |
1212 | global_wait = (global_wait % 360) + 4 | |
1213 | ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
1214 | rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi) | |
1215 | lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
1216 | rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16) | |
1217 | neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0) | |
1218 | rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4)) | |
1219 | end | |
1220 | end | |
1221 | end) |