Advertisement
HenloMyDude

switcher

Nov 17th, 2019
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.57 KB | None | 0 0
  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")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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. function Smooth(part)
  7. part.TopSurface = "Smooth"
  8. part.BottomSurface = "Smooth"
  9. part.RightSurface = "Smooth"
  10. part.LeftSurface = "Smooth"
  11. end
  12.  
  13. plr = owner
  14. char = plr.Character
  15. ra = char["Right Arm"]
  16. la = char["Left Arm"]
  17. rl = char["Right Leg"]
  18. ll = char["Left Leg"]
  19. run = false
  20. root = char.HumanoidRootPart
  21. hum = char.Humanoid
  22.  
  23. clerp = function(toclerp, cf, number)
  24. local joint = toclerp
  25. joint.C0 = joint.C0:Lerp(cf, number)
  26. end
  27.  
  28. clerp2 = function(toclerp, cf)
  29. local joint = toclerp
  30. joint.C0 = cf
  31. end
  32.  
  33. clerp3 = function(toclerp, cf, number)
  34. local joint = toclerp
  35. joint.C1 = joint.C1:Lerp(cf, number)
  36. end
  37.  
  38. Swait,swait = function(number)
  39. if number == 0 or number == nil then
  40. game:GetService("RunService").Heartbeat:Wait()
  41. else
  42. for i = 1,number do
  43. game:GetService("RunService").Heartbeat:Wait()
  44. end
  45. end
  46. end
  47.  
  48. ArtificialHB = Instance.new("BindableEvent", script)
  49. ArtificialHB.Name = "ArtificialHB"
  50.  
  51. script:WaitForChild("ArtificialHB")
  52.  
  53. Frame_Speed = 1 / 60
  54. frame = Frame_Speed
  55. tf = 0
  56. allowframeloss = false
  57. tossremainder = false
  58. lastframe = tick()
  59. script.ArtificialHB:Fire()
  60.  
  61. game:GetService("RunService").Heartbeat:connect(function(s, p)
  62. tf = tf + s
  63. if tf >= frame then
  64. if allowframeloss then
  65. script.ArtificialHB:Fire()
  66. lastframe = tick()
  67. else
  68. for i = 1, math.floor(tf / frame) do
  69. script.ArtificialHB:Fire()
  70. end
  71. lastframe = tick()
  72. end
  73. if tossremainder then
  74. tf = 0
  75. else
  76. tf = tf - frame * math.floor(tf / frame)
  77. end
  78. end
  79. end)
  80.  
  81. function Swait2(NUMBER)
  82. if NUMBER == 0 or NUMBER == nil then
  83. ArtificialHB.Event:wait()
  84. else
  85. for i = 1, NUMBER do
  86. ArtificialHB.Event:wait()
  87. end
  88. end
  89. end
  90.  
  91. ezweld = function(p, a, b, cf)
  92. local weld = Instance.new("Weld",p)
  93. weld.Part0 = a
  94. weld.Part1 = b
  95. weld.C0 = cf
  96. return weld
  97. end
  98.  
  99. IT = Instance.new
  100. Rad = math.rad
  101. Cos = math.cos
  102. Sin = math.sin
  103. BrickC = BrickColor.new
  104. C3 = Color3.new
  105. VT = Vector3.new
  106.  
  107. --more stuff--
  108.  
  109. function Snap(Part)
  110. local FeelGood = Instance.new("ParticleEmitter")
  111. FeelGood.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.0509804, 0.411765, 0.67451)), ColorSequenceKeypoint.new(1, Color3.new(0.0509804, 0.411765, 0.67451))})
  112. FeelGood.LightInfluence = 1
  113. FeelGood.Lifetime = NumberRange.new(1, 2)
  114. FeelGood.Speed = NumberRange.new(0, 0)
  115. FeelGood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15000000596046, 0), NumberSequenceKeypoint.new(0.80000001192093, 0.15000000596046, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  116. FeelGood.Acceleration = Vector3.new(0, 1, 3)
  117. FeelGood.Rate = 100
  118. FeelGood.Rotation = NumberRange.new(-360, 360)
  119. FeelGood.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
  120. FeelGood.Name = "FeelGood"
  121. FeelGood.Texture = "rbxassetid://282305485"
  122. U = FeelGood
  123. U.Parent = Part
  124. U.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Part.Color), ColorSequenceKeypoint.new(1, Part.Color)})
  125. coroutine.resume(coroutine.create(function()
  126. local PT = (1 - Part.Transparency)/150
  127. for i = 1,150 do
  128. game:GetService("RunService").Stepped:wait()
  129. Part.Transparency = Part.Transparency + PT
  130. end
  131. U.Enabled = false
  132. for i = 1,100 do
  133. game:GetService("RunService").Stepped:wait()
  134. end
  135. Part:Destroy()
  136. end))
  137. end
  138.  
  139. function Goodbye(Model)
  140. local mesg = Instance.new("NumberValue",Model)
  141. mesg.Name = "goodbye"
  142. for _,v in pairs (Model:GetDescendants()) do
  143. if v:IsA("Part") or v:IsA("MeshPart") and v.Name ~= "HumanoidRootPart" then
  144. Snap(v)
  145. if v.Name == "Head" then
  146. local change = Instance.new("Sound",v) change.Volume = 10 change.Pitch = 1.15 change.SoundId = "rbxassetid://3854597632" change:Play()
  147. end
  148. end
  149. end
  150. end
  151.  
  152. anim = "Idle"
  153. mode = "memer"
  154. attack = false
  155. sped = 16
  156. local RS = char.Torso["Right Shoulder"]
  157. local LS = char.Torso["Left Shoulder"]
  158. local RH = char.Torso["Right Hip"]
  159. local LH = char.Torso["Left Hip"]
  160. local neck = char.Torso["Neck"]
  161. local anim = "Idle"
  162. local rootj = char.HumanoidRootPart.RootJoint
  163. local timepos = 0
  164. local sine = 0
  165. local RSnor = RS.C0
  166. local LSnor = LS.C0
  167. local RHnor = RH.C0
  168. local LHnor = LH.C0
  169. local RSnor2 = RS.C1
  170. local LSnor2 = LS.C1
  171. local RHnor2 = RH.C1
  172. local LHnor2 = LH.C1
  173. local rootjnor = rootj.C0
  174. local necknor = neck.C0
  175. RootJoint = root["RootJoint"]
  176. Neck = char.Torso["Neck"]
  177. RightShoulder = char.Torso["Right Shoulder"]
  178. LeftShoulder = char.Torso["Left Shoulder"]
  179. RightHip = char.Torso["Right Hip"]
  180. LeftHip = char.Torso["Left Hip"]
  181. hum.Animator:Destroy()
  182. hold = false
  183. mouse = plr:GetMouse()
  184. hold = false
  185. Debris = game:GetService("Debris")
  186.  
  187. local sur = Instance.new("BillboardGui", char.Head)
  188. sur.Name = "BillboardGui"
  189. sur.Adornee = char.Head
  190. sur.Size = UDim2.new(10 / 2, 0, 5 / 2, 0)
  191. sur.StudsOffset = Vector3.new(0, 5 / 2, 0)
  192. local text = Instance.new("TextLabel", sur)
  193. text.Text = "Memer"
  194. text.Size = UDim2.new(1 / 2, 0, 1 / 2, 0)
  195. text.TextScaled = true
  196. text.BackgroundTransparency = 1
  197. text.Font = Enum.Font.Arcade
  198. text.TextColor3 = BrickColor.new("Cyan").Color
  199. text.TextStrokeColor3 = BrickColor.new("Dark blue").Color
  200. text.TextStrokeTransparency = 0
  201.  
  202. local desc = Instance.new("BillboardGui", char.Head)
  203. desc.Name = "desc"
  204. desc.Adornee = char.Head
  205. desc.Size = UDim2.new(10 / 2, 0, 5 / 2, 0)
  206. desc.StudsOffset = Vector3.new(0, 2.5 / 2, 0)
  207. local desct = Instance.new("TextLabel", sur)
  208. desct.Text = "The power of memes.. They're too powerful!"
  209. desct.Size = UDim2.new(3 / 2, 0, 0.5 / 2, 0)
  210. desct.TextScaled = true
  211. desct.BackgroundTransparency = 1
  212. desct.Font = Enum.Font.Arcade
  213. desct.TextColor3 = BrickColor.new("Cyan").Color
  214. desct.TextStrokeColor3 = BrickColor.new("Dark blue").Color
  215. desct.TextStrokeTransparency = 0
  216.  
  217. function Clerp(a, b, t)
  218. return a:lerp(b,t)
  219. end
  220.  
  221. IT = Instance.new
  222. CF = CFrame.new
  223. VT = Vector3.new
  224. RAD = math.rad
  225. C3 = Color3.new
  226. UD2 = UDim2.new
  227. BRICKC = BrickColor.new
  228. ANGLES = CFrame.Angles
  229. EULER = CFrame.fromEulerAnglesXYZ
  230. COS = math.cos
  231. ACOS = math.acos
  232. SIN = math.sin
  233. ASIN = math.asin
  234. ABS = math.abs
  235. MRANDOM = math.random
  236. FLOOR = math.floor
  237.  
  238. Animation_Speed = 3
  239. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  240. local Speed = 45
  241. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  242. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  243. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  244. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  245.  
  246. local magic = Instance.new("Model",nil)
  247. magic.Name = "Magician"
  248. local rhats = Instance.new("Model",nil)
  249. rhats.Name = "RemovedHats"
  250. local mhat = Instance.new("Part",magic)
  251. mhat.CanCollide = false
  252. mhat.Size = Vector3.new(0.1, 0.1, 0.1)
  253. mhat.BrickColor = BrickColor.new("Maroon")
  254. local mesh = Instance.new("SpecialMesh",mhat)
  255. mesh.MeshId = "rbxassetid://57475891"
  256. mesh.Offset = Vector3.new(0, 1, 0)
  257. local mhweld = ezweld(char, mhat, char.Head, CFrame.new())
  258.  
  259. cors = {}
  260. mas = Instance.new("Model",game:GetService("Lighting"))
  261. Model0 = Instance.new("Model")
  262. Part1 = Instance.new("Part")
  263. Weld2 = Instance.new("Weld")
  264. Weld3 = Instance.new("Weld")
  265. Weld4 = Instance.new("Weld")
  266. Part5 = Instance.new("Part")
  267. CylinderMesh6 = Instance.new("CylinderMesh")
  268. ParticleEmitter7 = Instance.new("ParticleEmitter")
  269. Model8 = Instance.new("Model")
  270. Part9 = Instance.new("Part")
  271. CylinderMesh10 = Instance.new("CylinderMesh")
  272. Part11 = Instance.new("Part")
  273. CylinderMesh12 = Instance.new("CylinderMesh")
  274. Model0.Name = "Wand"
  275. Model0.Parent = mas
  276. Model0.PrimaryPart = Part1
  277. Part1.Name = "Base"
  278. Part1.Parent = Model0
  279. Part1.CFrame = CFrame.new(99.6891098, 0.100066148, 124.775757, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  280. Part1.Position = Vector3.new(99.6891098, 0.100066148, 124.775757)
  281. Part1.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  282. Part1.BottomSurface = Enum.SurfaceType.Smooth
  283. Part1.CanCollide = false
  284. Part1.Material = Enum.Material.SmoothPlastic
  285. Part1.TopSurface = Enum.SurfaceType.Smooth
  286. Weld2.Name = "Joint"
  287. Weld2.Parent = Part1
  288. Weld2.C0 = CFrame.new(-4.76837158e-06, -4.57763672e-05, -1.69998741, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  289. Weld2.Part0 = Part1
  290. Weld2.Part1 = Part5
  291. Weld2.part1 = Part5
  292. Weld3.Name = "BTWeld"
  293. Weld3.Parent = Part1
  294. Weld3.C1 = CFrame.new(7.62939453e-06, -0.499984741, 4.57763672e-05, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  295. Weld3.Part0 = Part1
  296. Weld3.Part1 = Part11
  297. Weld3.part1 = Part11
  298. Weld4.Name = "BTWeld"
  299. Weld4.Parent = Part1
  300. Weld4.C1 = CFrame.new(7.62939453e-06, 0.700012207, 4.57763672e-05, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  301. Weld4.Part0 = Part1
  302. Weld4.Part1 = Part9
  303. Weld4.part1 = Part9
  304. Part5.Name = "Head"
  305. Part5.Parent = Model0
  306. Part5.CFrame = CFrame.new(99.6891022, 0.100020371, 123.075768, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  307. Part5.Orientation = Vector3.new(-90, 0, 0)
  308. Part5.Position = Vector3.new(99.6891022, 0.100020371, 123.075768)
  309. Part5.Rotation = Vector3.new(-90, 0, 0)
  310. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  311. Part5.Size = Vector3.new(0.200000003, 0.199999928, 0.200000003)
  312. Part5.BottomSurface = Enum.SurfaceType.Smooth
  313. Part5.BrickColor = BrickColor.new("Institutional white")
  314. Part5.CanCollide = false
  315. Part5.Material = Enum.Material.SmoothPlastic
  316. Part5.TopSurface = Enum.SurfaceType.Smooth
  317. Part5.brickColor = BrickColor.new("Institutional white")
  318. CylinderMesh6.Parent = Part5
  319. ParticleEmitter7.Name = "Sparkles"
  320. ParticleEmitter7.Parent = Part5
  321. ParticleEmitter7.Speed = NumberRange.new(5, 15)
  322. ParticleEmitter7.Rotation = NumberRange.new(0, 360)
  323. ParticleEmitter7.Enabled = false
  324. ParticleEmitter7.LightEmission = 1
  325. ParticleEmitter7.Texture = "rbxassetid://1053546634"
  326. ParticleEmitter7.Transparency = NumberSequence.new(1,0,1)
  327. ParticleEmitter7.ZOffset = -0.10000000149012
  328. ParticleEmitter7.Size = NumberSequence.new(0.40000000596046,0.40000000596046)
  329. ParticleEmitter7.Drag = 15
  330. ParticleEmitter7.Lifetime = NumberRange.new(1, 1)
  331. ParticleEmitter7.Rate = 45
  332. ParticleEmitter7.SpreadAngle = Vector2.new(360, 360)
  333. ParticleEmitter7.VelocitySpread = 360
  334. Model8.Name = "Union"
  335. Model8.Parent = Model0
  336. Part9.Parent = Model8
  337. Part9.CFrame = CFrame.new(99.6891022, 0.100020371, 125.475769, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  338. Part9.Orientation = Vector3.new(-90, 0, 0)
  339. Part9.Position = Vector3.new(99.6891022, 0.100020371, 125.475769)
  340. Part9.Rotation = Vector3.new(-90, 0, 0)
  341. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  342. Part9.Size = Vector3.new(0.200000003, 0.199999928, 0.200000003)
  343. Part9.Anchored = true
  344. Part9.BottomSurface = Enum.SurfaceType.Smooth
  345. Part9.BrickColor = BrickColor.new("Institutional white")
  346. Part9.Material = Enum.Material.SmoothPlastic
  347. Part9.TopSurface = Enum.SurfaceType.Smooth
  348. Part9.brickColor = BrickColor.new("Institutional white")
  349. CylinderMesh10.Parent = Part9
  350. Part11.Parent = Model8
  351. Part11.CFrame = CFrame.new(99.6891022, 0.100020371, 124.275772, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  352. Part11.Orientation = Vector3.new(-90, 0, 0)
  353. Part11.Position = Vector3.new(99.6891022, 0.100020371, 124.275772)
  354. Part11.Rotation = Vector3.new(-90, 0, 0)
  355. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  356. Part11.Size = Vector3.new(0.200000003, 2.19999981, 0.200000003)
  357. Part11.Anchored = true
  358. Part11.BottomSurface = Enum.SurfaceType.Smooth
  359. Part11.BrickColor = BrickColor.new("Really black")
  360. Part11.Material = Enum.Material.SmoothPlastic
  361. Part11.TopSurface = Enum.SurfaceType.Smooth
  362. Part11.brickColor = BrickColor.new("Really black")
  363. CylinderMesh12.Parent = Part11
  364. for i,v in pairs(mas:GetChildren()) do
  365. v.Parent = script
  366. pcall(function() v:MakeJoints() end)
  367. end
  368. for i,v in pairs(Model0:GetChildren()) do
  369. if v:IsA("Part") then
  370. v.Anchored = false
  371. end
  372. end
  373. for i,v in pairs(Model8:GetChildren()) do
  374. v.Anchored = false
  375. end
  376. mas:Destroy()
  377. for i,v in pairs(cors) do
  378. spawn(function()
  379. pcall(v)
  380. end)
  381. end
  382.  
  383. WAND = Model0
  384.  
  385. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  386. local NEWWELD = IT(TYPE)
  387. NEWWELD.Part0 = PART0
  388. NEWWELD.Part1 = PART1
  389. NEWWELD.C0 = C0
  390. NEWWELD.C1 = C1
  391. NEWWELD.Parent = PARENT
  392. return NEWWELD
  393. end
  394.  
  395. function SpawnWand(ARM)
  396. local STAFF = WAND:Clone()
  397. STAFF.Parent = magic
  398. local WELD = CreateWeldOrSnapOrMotor("Weld", ARM, ARM, STAFF.Base, CF(0,-1.1,0), CF(0,0,0))
  399. return STAFF,WELD,STAFF.Head.Sparkles
  400. end
  401.  
  402. SpawnWand(la)
  403.  
  404. --------------
  405.  
  406. hum.MaxHealth = 550
  407. hum.Health = 550
  408. home = 0.15
  409. smashed = false
  410. grat = false
  411. size = 1
  412.  
  413. NewSound = function(p, id, pit, vol, loop)
  414. local Sound = Instance.new("Sound",p)
  415. Sound.Pitch = pit
  416. Sound.Volume = vol
  417. Sound.SoundId = "rbxassetid://" ..id
  418. Sound.Looped = loop
  419. Sound:Play()
  420. return Sound
  421. end
  422.  
  423. local theme = NewSound(root, 243832038, 1, 10, true)
  424.  
  425. function mememode()
  426. mode = "memer"
  427. magic.Parent = nil
  428. theme.SoundId = "rbxassetid://243832038"
  429. theme.Pitch = 1
  430. text.Font = Enum.Font.Arcade
  431. text.Text = "Memer"
  432. text.TextColor3 = BrickColor.new("Cyan").Color
  433. text.TextStrokeColor3 = BrickColor.new("Dark blue").Color
  434. text.TextStrokeTransparency = 0
  435. desct.Text = "The power of memes.. They're too powerful!"
  436. desct.Font = Enum.Font.Arcade
  437. desct.TextColor3 = BrickColor.new("Cyan").Color
  438. desct.TextStrokeColor3 = BrickColor.new("Dark blue").Color
  439. desct.TextStrokeTransparency = 0
  440. end
  441.  
  442. function mayhemmode()
  443. mode = "mayhem"
  444. magic.Parent = nil
  445. theme.SoundId = "rbxassetid://729622879"
  446. theme.Pitch = 0.85
  447. text.Font = Enum.Font.Fantasy
  448. text.Text = "Mayhem"
  449. text.TextColor3 = BrickColor.new("Really red").Color
  450. text.TextStrokeColor3 = BrickColor.new("Reddish brown").Color
  451. text.TextStrokeTransparency = 0
  452. desct.Text = "The chaos, make it stop!"
  453. desct.Font = Enum.Font.Fantasy
  454. desct.TextColor3 = BrickColor.new("Really red").Color
  455. desct.TextStrokeColor3 = BrickColor.new("Reddish brown").Color
  456. desct.TextStrokeTransparency = 0
  457. end
  458.  
  459. function magician()
  460. mode = "magician"
  461. magic.Parent = char
  462. theme.SoundId = "rbxassetid://1583302174"
  463. theme.Pitch = 1
  464. text.Font = Enum.Font.Antique
  465. text.Text = "Magician"
  466. text.TextColor3 = BrickColor.new("Bright yellow").Color
  467. text.TextStrokeColor3 = BrickColor.new("Bright red").Color
  468. text.TextStrokeTransparency = 0
  469. desct.Text = "Prepare for an amazing magic trick!"
  470. desct.Font = Enum.Font.Antique
  471. desct.TextColor3 = BrickColor.new("Bright yellow").Color
  472. desct.TextStrokeColor3 = BrickColor.new("Bright red").Color
  473. desct.TextStrokeTransparency = 0
  474. end
  475.  
  476. function TakeDamage(Char,Damage)
  477. local Hum = Char:FindFirstChildOfClass("Humanoid")
  478. if Hum then
  479. if Hum ~= hum then
  480. if Hum.Health > Damage then
  481. Hum:TakeDamage(Damage)
  482. else
  483. local yes = true
  484. for i,g in pairs(Char:GetDescendants()) do
  485. if g.Name == "FeelGood" then
  486. yes = false
  487. end
  488. end
  489. if yes == true then
  490. for i,g in pairs(Char:GetDescendants()) do
  491. if g:IsA("BasePart") then
  492. Snap(g)
  493. end
  494. end
  495. end
  496. end
  497. end
  498. end
  499. end
  500.  
  501. function turnto(position)
  502. root.CFrame=CFrame.new(root.CFrame.p,VT(position.X,root.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  503. end
  504.  
  505. function ezweld2(P1,P2,CFRAME)
  506. local ezw = CreateWeldOrSnapOrMotor("Weld",P1,P1,P2,CFRAME,CF(0,0,0))
  507. return ezw
  508. end
  509.  
  510. function TestIt(PART)
  511. local yes = true
  512. if PART.Parent == char or PART.Parent == char then
  513. yes = false
  514. end
  515. if PART.Parent.Parent == char then
  516. yes = false
  517. end
  518. return yes
  519. end
  520.  
  521. function CreatePart(PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  522. local NEWPART = Instance.new("Part",PARENT)
  523. NEWPART.Reflectance = REFLECTANCE
  524. NEWPART.Transparency = TRANSPARENCY
  525. NEWPART.CanCollide = false
  526. NEWPART.Locked = true
  527. if ANCHOR == true then
  528. NEWPART.Anchored = true
  529. end
  530. NEWPART.BrickColor = BrickColor.new(BRICKCOLOR)
  531. NEWPART.Name = NAME
  532. NEWPART.Size = SIZE
  533. NEWPART.Position = char.Torso.Position
  534. NEWPART.Material = MATERIAL
  535. return NEWPART
  536. end
  537.  
  538. function AntiGravity(PART)
  539. local bodyForced = Instance.new('BodyForce', PART)
  540. bodyForced.Name = 'Antigravity'
  541. bodyForced.Force = Vector3.new(0, PART:GetMass() * game.Workspace.Gravity, 0)
  542. return bodyForced
  543. end
  544.  
  545. local S = IT("Sound")
  546. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  547. local NEWSOUND = nil
  548. coroutine.resume(coroutine.create(function()
  549. NEWSOUND = S:Clone()
  550. NEWSOUND.Parent = PARENT
  551. NEWSOUND.Volume = VOLUME
  552. NEWSOUND.Pitch = PITCH
  553. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  554. NEWSOUND:play()
  555. NEWSOUND.Name = "Audio"
  556. if DOESLOOP == true then
  557. NEWSOUND.Looped = true
  558. else
  559. repeat Swait() until NEWSOUND.Playing == false
  560. NEWSOUND:remove()
  561. end
  562. end))
  563. return NEWSOUND
  564. end
  565.  
  566. function ApplyDamage(Humanoid,Damage)
  567. if Damage > 0 then
  568. Damage = Damage * 1
  569. if Humanoid.Health < 2000 then
  570. if Humanoid.Health - Damage > 0 then
  571. Humanoid.Health = Humanoid.Health - Damage
  572. else
  573. Humanoid.Parent:BreakJoints()
  574. end
  575. else
  576. Humanoid.Parent:BreakJoints()
  577. end
  578. end
  579. end
  580.  
  581. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,FLINGTO,INSTAKILL)
  582. for index, CHILD in pairs(workspace:GetDescendants()) do
  583. if CHILD.ClassName == "Model" and CHILD ~= char then
  584. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  585. if HUM then
  586. local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  587. if TORSO then
  588. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  589. if INSTAKILL == true then
  590. CHILD:BreakJoints()
  591. else
  592. local DMG = MRANDOM(MINDMG,MAXDMG)
  593. ApplyDamage(HUM,DMG)
  594. end
  595. if FLING ~= "Twist" then
  596. for _, c in pairs(CHILD:GetChildren()) do
  597. if c:IsA("BasePart") then
  598. local bv = Instance.new("BodyVelocity",c)
  599. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  600. if FLINGTO == nil then
  601. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  602. else
  603. bv.velocity = CF(TORSO.Position,TORSO.Position + FLINGTO).lookVector*FLING
  604. end
  605. Debris:AddItem(bv,0.01)
  606. end
  607. end
  608. else
  609. TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(0),RAD(10),RAD(0))
  610. local bv = Instance.new("BodyVelocity",TORSO)
  611. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  612. bv.velocity = VT(0,0,0)
  613. Debris:AddItem(bv,0.01)
  614. end
  615. end
  616. end
  617. end
  618. end
  619. end
  620. end
  621.  
  622. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  623. local NEWMESH = IT(MESH)
  624. if MESH == "SpecialMesh" then
  625. NEWMESH.MeshType = MESHTYPE
  626. if MESHID ~= "nil" and MESHID ~= "" then
  627. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  628. end
  629. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  630. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  631. end
  632. end
  633. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  634. NEWMESH.Scale = SCALE
  635. NEWMESH.Parent = PARENT
  636. return NEWMESH
  637. end
  638.  
  639. local Torso = char.Torso
  640. local Effects = IT("Model", script)
  641. Effects.Name = "some effects"
  642.  
  643. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  644. function WACKYEFFECT(Table)
  645. local TYPE = (Table.EffectType or "Sphere")
  646. local SIZE = (Table.Size or VT(1,1,1))
  647. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  648. local TRANSPARENCY = (Table.Transparency or 0)
  649. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  650. local CFRAME = (Table.CFrame or Torso.CFrame)
  651. local MOVEDIRECTION = (Table.MoveToPos or nil)
  652. local ROTATION1 = (Table.RotationX or 0)
  653. local ROTATION2 = (Table.RotationY or 0)
  654. local ROTATION3 = (Table.RotationZ or 0)
  655. local MATERIAL = (Table.Material or "Neon")
  656. local COLOR = (Table.Color or C3(1,1,1))
  657. local TIME = (Table.Time or 45)
  658. local SOUNDID = (Table.SoundID or nil)
  659. local SOUNDPITCH = (Table.SoundPitch or nil)
  660. local SOUNDVOLUME = (Table.SoundVolume or nil)
  661. coroutine.resume(coroutine.create(function()
  662. local PLAYSSOUND = false
  663. local SOUND = nil
  664. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  665. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  666. PLAYSSOUND = true
  667. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  668. end
  669. EFFECT.Color = COLOR
  670. local MSH = nil
  671. if TYPE == "Sphere" then
  672. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  673. elseif TYPE == "Block" or TYPE == "Box" then
  674. MSH = IT("BlockMesh",EFFECT)
  675. MSH.Scale = SIZE
  676. elseif TYPE == "Wave" then
  677. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  678. elseif TYPE == "Ring" then
  679. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  680. elseif TYPE == "Slash" then
  681. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  682. elseif TYPE == "Round Slash" then
  683. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  684. elseif TYPE == "Swirl" then
  685. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  686. elseif TYPE == "Skull" then
  687. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  688. elseif TYPE == "Crystal" then
  689. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  690. elseif TYPE == "Duck" then
  691. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9419831", "9419827", SIZE, VT(0,0,0))
  692. end
  693. if MSH ~= nil then
  694. local MOVESPEED = nil
  695. if MOVEDIRECTION ~= nil then
  696. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  697. end
  698. local GROWTH = SIZE - ENDSIZE
  699. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  700. if TYPE == "Block" then
  701. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  702. else
  703. EFFECT.CFrame = CFRAME
  704. end
  705. for LOOP = 1, TIME+1 do
  706. Swait2()
  707. MSH.Scale = MSH.Scale - GROWTH/TIME
  708. if TYPE == "Wave" then
  709. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  710. end
  711. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  712. if TYPE == "Block" then
  713. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  714. else
  715. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  716. end
  717. if MOVEDIRECTION ~= nil then
  718. local ORI = EFFECT.Orientation
  719. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  720. EFFECT.Orientation = ORI
  721. end
  722. end
  723. --EFFECT.Transparency = 1
  724. if PLAYSSOUND == false then
  725. EFFECT:remove()
  726. else
  727. repeat Swait2() until SOUND.Playing == false
  728. EFFECT:remove()
  729. end
  730. else
  731. if PLAYSSOUND == false then
  732. EFFECT:remove()
  733. else
  734. repeat Swait2() until SOUND.Playing == false
  735. EFFECT:remove()
  736. end
  737. end
  738. end))
  739. end
  740.  
  741. function gratting()
  742. local spinny = 0
  743. attack = true
  744. hold = true
  745. local s = Instance.new("Sound",root) s.SoundId = "rbxassetid://991269011" s.Volume = 3 s:Play()
  746. local hitbox = char.Torso.Touched:connect(function(hit)
  747. if hit.Parent ~= workspace and not hit.Parent:FindFirstChild("goodbye") then
  748. Goodbye(hit.Parent)
  749. end
  750. end)
  751. repeat
  752. Swait()
  753. sped = 50
  754. spinny = spinny + 35
  755. clerp(rootj, rootjnor * CFrame.Angles(Rad(90), Rad(0), Rad(0)), 0.15)
  756. rootj.C0 = rootj.C0 * CFrame.Angles(Rad(0), Rad(0), Rad(spinny))
  757. clerp(neck, necknor, 0.15)
  758. clerp(RS, RSnor * CFrame.new(-0.5, -0.5, 0) * CFrame.Angles(Rad(-90), 0, 0), 0.15)
  759. clerp(LS, LSnor * CFrame.new(0.5, -0.5, 0) * CFrame.Angles(Rad(-90), 0, 0), 0.15)
  760. clerp(RH, RHnor, 0.15)
  761. clerp(LH, LHnor, 0.15)
  762. until grat == false
  763. sped = 16
  764. hitbox:disconnect()
  765. s:remove()
  766. attack = false
  767. hold = false
  768. local spinny = 0
  769. end
  770.  
  771. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  772. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  773. end
  774.  
  775. function Twister()
  776. local DIST = (root.Position - mouse.Hit.p).Magnitude
  777. if DIST > 25 then
  778. DIST = 25
  779. end
  780. local HIT,POS = Raycast(root.Position, (CF(root.Position, mouse.Hit.p)).lookVector, DIST, workspace)
  781. attack = true
  782. --Rooted = true
  783. local WAND,WELD,SPARKS = SpawnWand(la)
  784. CreateSound(769380905, WAND.Base, 2, 1.5, false)
  785. for i=0, 0.5, 0.1 / Animation_Speed do
  786. Swait2()
  787. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  788. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  790. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(40), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  791. end
  792. SPARKS.Enabled = true
  793. local SPIN = 0
  794. for i = 1, 25 do
  795. Swait2()
  796. SPIN = SPIN + 1
  797. ApplyAoE(POS,7,1,1,"Twist",nil,false)
  798. WACKYEFFECT({Time = 10, EffectType = "Swirl", Size = VT(10,10,10), Size2 = VT(11,11,11), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 6, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  799. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  800. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  801. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  802. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90+15*SIN(SPIN/4)), RAD(0), RAD(-15*COS(SPIN/4))) * LEFTSHOULDERC0, 2 / Animation_Speed)
  803. end
  804. for i = 1, 50 do
  805. Swait2()
  806. if FINISHER == true then
  807. break
  808. end
  809. SPIN = SPIN + 1
  810. ApplyAoE(POS,7,1,1,"Twist",nil,false)
  811. WACKYEFFECT({Time = 10, EffectType = "Swirl", Size = VT(10,10,10), Size2 = VT(11,11,11), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 6, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  812. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  813. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  814. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  815. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90+15*SIN(SPIN/4)), RAD(0), RAD(-15*COS(SPIN/4))) * LEFTSHOULDERC0, 2 / Animation_Speed)
  816. end
  817. if FINISHER == true then
  818. coroutine.resume(coroutine.create(function()
  819. ApplyAoE(POS,10,15,25,170,VT(0,15,0),false)
  820. WACKYEFFECT({EffectType = "Wave", Size = VT(10,2,10), Size2 = VT(22,4,22), Transparency = 0, Transparency2 = 1, CFrame = CF(POS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 6, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  821. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 174580476, SoundPitch = 1, SoundVolume = 6})
  822. for i = 1, 15 do
  823. Swait()
  824. WACKYEFFECT({Time = 35-(i*2), EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = POS+VT(0,15,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  825. end
  826. end))
  827. for i = 1, 35 do
  828. Swait2()
  829. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.12 + (i/30)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 0.6 / Animation_Speed)
  830. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  831. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  832. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  833. end
  834. end
  835. WAND:remove()
  836. attack = false
  837. end
  838.  
  839. RootPart = root
  840. PLAY = true
  841.  
  842. function AudiencePlay()
  843. attack = true
  844. --Rooted = true
  845. PLAY = false
  846. local PLAYING = true
  847. local SONG = CreateSound(322621962, RootPart, 10, 1, true)
  848. for i=0, 2, 0.1 / Animation_Speed do
  849. Swait2()
  850. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  851. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  854. end
  855. coroutine.resume(coroutine.create(function()
  856. repeat
  857. Swait2()
  858. local ANGLE = CF(RootPart.Position-VT(0,10,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(5,25))
  859. local COLORS = {"New Yeller","Deep blue","Lime green","Really red","Royal purple","Pearl"}
  860. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(2,2,2), Size2 = VT(0,60,0), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC(COLORS[MRANDOM(1,#COLORS)]).Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 6})
  861. until PLAYING == false
  862. end))
  863. local WAND,WELD,SPARKS = SpawnWand(ra)
  864. repeat
  865. for i=0, 0.3, 0.1 / Animation_Speed do
  866. Swait2()
  867. if PLAYING == false then
  868. break
  869. end
  870. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
  871. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  872. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  873. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  874. end
  875. for i=0, 0.13, 0.1 / Animation_Speed do
  876. Swait2()
  877. if PLAYING == false then
  878. break
  879. end
  880. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
  881. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  882. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  883. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  884. end
  885. SPARKS:Emit(15)
  886. for i = 1, 5 do
  887. local ANGLE = CF(WAND.Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  888. WACKYEFFECT({Time = MRANDOM(10,50), EffectType = "Duck", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  889. end
  890. for i=0, 0.13, 0.1 / Animation_Speed do
  891. Swait2()
  892. if PLAYING == false then
  893. break
  894. end
  895. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.5 / Animation_Speed)
  896. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  897. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  898. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  899. end
  900. for i=0, 0.3, 0.1 / Animation_Speed do
  901. Swait2()
  902. if PLAYING == false then
  903. break
  904. end
  905. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
  906. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  907. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  908. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  909. end
  910. for i=0, 0.13, 0.1 / Animation_Speed do
  911. Swait2()
  912. if PLAYING == false then
  913. break
  914. end
  915. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
  916. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  917. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  919. end
  920. SPARKS:Emit(15)
  921. for i = 1, 5 do
  922. local ANGLE = CF(WAND.Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  923. WACKYEFFECT({Time = MRANDOM(10,50), EffectType = "Duck", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = ANGLE, MoveToPos = ANGLE*CF(0,30,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"New Yeller".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  924. end
  925. for i=0, 0.13, 0.1 / Animation_Speed do
  926. Swait2()
  927. if PLAYING == false then
  928. break
  929. end
  930. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
  931. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  932. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(12)) * CF(0,-1,0) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  933. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-12)) * CF(0,-1,0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  934. end
  935. until PLAYING == false or SONG.Parent ~= RootPart or PLAY == true
  936. SONG:remove()
  937. theme.Playing = true
  938. WAND:remove()
  939. for i=0, 6, 0.1 / Animation_Speed do
  940. Swait()
  941. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  942. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  943. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  944. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  945. end
  946. PLAY = true
  947. attack = false
  948. --Rooted = false
  949. end
  950.  
  951. function GameSmash()
  952. attack = true
  953. turnto(mouse.Hit.p)
  954. local Cube = Instance.new("Part")
  955. Cube.Parent = char
  956. Cube.CanCollide = false
  957. Cube.Size = Vector3.new(1.675, 1.188, 2.111)
  958. local Mesh = Instance.new("SpecialMesh",Cube)
  959. Mesh.MeshId = "rbxassetid://468760905"
  960. Mesh.TextureId = "rbxassetid://468760911"
  961. ezweld2(Cube,ra,CF(0,1 + (Cube.Size.Y/2),0))
  962. for i = 1,9 do
  963. Swait()
  964. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-30 + 0 * SIN(SINE / 12)), RAD(0), RAD(-40)), 1 / Animation_Speed)
  965. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + 0 * COS(SINE / 2.5)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0 * SIN(SINE / 24))), 1 / Animation_Speed)
  966. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(160 - 0 * COS(SINE/12)), RAD(0 * SIN(SINE / 12)), RAD(10 + 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  967. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  968. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  969. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  970. end
  971. for i = 1,9 do
  972. Swait()
  973. if i == 6 then
  974. Cube:BreakJoints()
  975. Cube.RotVelocity = VT(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  976. Cube.Velocity = CF(Cube.Position,mouse.Hit.p).lookVector * 100
  977. AntiGravity(Cube)
  978. end
  979. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(20 + 0 * SIN(SINE / 12)), RAD(0), RAD(40)), 1 / Animation_Speed)
  980. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + 0 * COS(SINE / 2.5)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0 * SIN(SINE / 24))), 1 / Animation_Speed)
  981. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(160 - 0 * COS(SINE/12)), RAD(0 * SIN(SINE / 12)), RAD(10 + 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  982. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  983. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(20 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  984. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(20 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  985. end
  986. attack = false
  987. Cube.Touched:Connect(function(k)
  988. local yes = TestIt(k)
  989. if yes == true then
  990. local SPart = CreatePart(char,"SmoothPlastic",0,1,"White","SPart",VT(0.1,0.1,0.1),true)
  991. local s = CreateSound(933420402,SPart,2,1,false)
  992. s.TimePosition = 4.3
  993. SPart.Position = Cube.Position
  994. SPart.ChildRemoved:Connect(function()
  995. SPart:Destroy()
  996. end)
  997. local AlreadyHit = {}
  998. for i,g in pairs(game.Workspace:GetDescendants()) do
  999. if g:IsA("BasePart") and not g:IsA("Terrain") then
  1000. local yos = TestIt(k)
  1001. for i,k in pairs(AlreadyHit) do
  1002. if k.Parent == g.Parent then
  1003. yos = false
  1004. end
  1005. end
  1006. if yos == true then
  1007. if (g.Position - Cube.Position).Magnitude < 10 then
  1008. table.insert(AlreadyHit,g)
  1009. TakeDamage(g.Parent,math.random(20,40))
  1010. end
  1011. end
  1012. end
  1013. end
  1014. Cube:Destroy()
  1015. end
  1016. end)
  1017. end
  1018.  
  1019. raycast = function(pos, direct, range, decendants)
  1020. return workspace:FindPartOnRay(Ray.new(pos, direct.unit * range), decendants)
  1021. end
  1022.  
  1023. function Swirl(Table)
  1024. local Position = (Table.Position or root.CFrame)
  1025. local SpinXE = (Table.SpinXE or 380)
  1026. local Speed = (Table.Speed or 0.15)
  1027. local SpinYE = (Table.SpinYE or 0)
  1028. local SpinZE = (Table.SpinZE or 380)
  1029. local SpinXS = (Table.SpinXS or 1)
  1030. local TSpeed = (Table.TSpeed or 0.1)
  1031. local SpinYS = (Table.SpinYS or 1)
  1032. local SpinZS = (Table.SpinZS or 1)
  1033. local STransparency = (Table.StartT or 0)
  1034. local Color = (Table.Color or Color3.new(1, 1, 1))
  1035. local ETransparency = (Table.EndT or 1)
  1036. local Size = (Table.Size or Vector3.new(1, 1, 1))
  1037. local ESize = (Table.EndSize or Vector3.new(5, 5, 5))
  1038. local Part = Instance.new("Part",char)
  1039. Part.Size = Size
  1040. Part.CFrame = Position
  1041. Part.CanCollide = false
  1042. Part.Transparency = STransparency
  1043. Part.Size = Size
  1044. Part.Anchored = true
  1045. Part.Orientation = Vector3.new(SpinXS, SpinYS, SpinZS)
  1046. local Mesh = Instance.new("SpecialMesh",Part)
  1047. Mesh.MeshId = "rbxassetid://2671071329"
  1048. coroutine.resume(coroutine.create(function()
  1049. repeat
  1050. Swait()
  1051. Mesh.Scale = Mesh.Scale:Lerp(ESize, Speed)
  1052. Part.Transparency = Part.Transparency + TSpeed
  1053. Part.Orientation = Part.Orientation:Lerp(Vector3.new(SpinXE, SpinYE, SpinZE), Speed)
  1054. until Part.Transparency == ETransparency
  1055. Part:Destroy()
  1056. end))
  1057. end
  1058.  
  1059. function snapnub()
  1060. local target = mouse.Target
  1061. if target and target.Parent ~= workspace then
  1062. Goodbye(target.Parent)
  1063. end
  1064. end
  1065.  
  1066. mouse.Button1Down:connect(function()
  1067. hold = true
  1068. if attack == true and mode == "magician" then
  1069. FINISHER = true
  1070. elseif attack == false and mode == "magician" then
  1071. Twister()
  1072. end
  1073. end)
  1074.  
  1075. mouse.Button1Up:connect(function()
  1076. hold = false
  1077. end)
  1078.  
  1079. mouse.KeyDown:connect(function(key)
  1080. if key == "z" and mode == "memer" then
  1081. snapnub()
  1082. end
  1083. if key == "c" and mode == "memer" then
  1084. if grat then
  1085. grat = false
  1086. hold = false
  1087. else
  1088. grat = true
  1089. hold = true
  1090. gratting()
  1091. end
  1092. end
  1093. if key == "q" then
  1094. mayhemmode()
  1095. end
  1096. if key == "e" then
  1097. mememode()
  1098. end
  1099. if key == "r" then
  1100. magician()
  1101. end
  1102. if key == "m" and mode == "magician" then
  1103. if PLAY then
  1104. PLAY = false
  1105. AudiencePlay()
  1106. else
  1107. PLAY = true
  1108. end
  1109. end
  1110. end)
  1111.  
  1112. SINE = 0
  1113.  
  1114. while true do
  1115. Swait()
  1116. sine = sine + 1
  1117. SINE = SINE + 2 / Animation_Speed
  1118. neckrad = math.random(1, 15)
  1119. neckclrad = math.random(-6, 6)
  1120. hum.WalkSpeed = sped
  1121. if PLAY == true then
  1122. theme.Playing = true
  1123. else
  1124. theme.Playing = false
  1125. end
  1126. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  1127. if TORSOVELOCITY < 1 then
  1128. anim = "Idle"
  1129. if attack == false and mode == "memer" then
  1130. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1131. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + 0 * COS(SINE / 2.5)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0 * SIN(SINE / 24))), 1 / Animation_Speed)
  1132. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * COS(SINE/12)), RAD(0 * SIN(SINE / 12)), RAD(12 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1133. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-12 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1134. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1135. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1136. elseif attack == false and mode == "frankie" then
  1137. clerp(rootj, rootjnor * CFrame.new(0 + 0.05 * Cos(sine / 36), 0, 0.05 + 0.05 * Cos(sine / 18)) * CFrame.Angles(0, 0, Rad(15)), 0.15)
  1138. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-15)), 0.15)
  1139. clerp(RH, RHnor * CFrame.new(0, -0.05 - 0.05 * Cos(sine / 18), 0 + 0.05 * Cos(sine / 36)) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  1140. clerp(LH, LHnor * CFrame.new(0, -0.05 - 0.05 * Cos(sine / 18), 0 - 0.05 * Cos(sine / 36)) * CFrame.Angles(0, Rad(10), 0), 0.15)
  1141. clerp(RS, RSnor * CFrame.Angles(Rad(-10 - 5 * Cos(sine / 18)), Rad(-25), 0), 0.15)
  1142. clerp(LS, LSnor * CFrame.Angles(Rad(-10 - 5 * Cos(sine / 18)), Rad(25), Rad(0)), 0.15)
  1143. elseif attack == false and mode == "mayhem" then
  1144. clerp(rootj, rootjnor * CFrame.new(0 + 0.05 * Cos(sine / 36), 0, 0.05 + 0.05 * Cos(sine / 18)) * CFrame.Angles(0, 0, Rad(0)), 0.15)
  1145. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), 0, 0), 0.15)
  1146. clerp(RH, RHnor * CFrame.new(0, -0.05 - 0.05 * Cos(sine / 18), 0 + 0.05 * Cos(sine / 36)) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  1147. clerp(LH, LHnor * CFrame.new(0, -0.05 - 0.05 * Cos(sine / 18), 0 - 0.05 * Cos(sine / 36)) * CFrame.Angles(0, Rad(10), 0), 0.15)
  1148. clerp(RS, RSnor * CFrame.Angles(Rad(-15 - 7 * Cos(sine / 18)), Rad(0), 0), 0.15)
  1149. clerp(LS, LSnor * CFrame.Angles(Rad(-35), Rad(0), Rad(-160)), 0.15)
  1150. elseif attack == false and mode == "magician" then
  1151. --[[
  1152. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.15 * Cos(sine / 15)) * CFrame.Angles(0, 0, Rad(0)), 0.15)
  1153. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(0)), 0.15)
  1154. clerp(RH, RHnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 15), 0) * CFrame.Angles(Rad(-3), Rad(-3), 0), 0.15)
  1155. clerp(LH, LHnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 15), 0) * CFrame.Angles(Rad(-3), Rad(3), 0), 0.15)
  1156. clerp(RS, RSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), 0, 0), 0.15)
  1157. clerp(LS, LSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1158. ]]--
  1159. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.15 * Cos(SINE / 12)) * CFrame.Angles(0, 0, Rad(0)), 0.15)
  1160. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(0)), 0.15)
  1161. clerp(RH, RHnor * CFrame.new(0, 0 - 0.15 * Cos(SINE / 12), 0) * CFrame.Angles(Rad(-3), Rad(-3), 0), 0.15)
  1162. clerp(LH, LHnor * CFrame.new(0, 0 - 0.15 * Cos(SINE / 12), 0) * CFrame.Angles(Rad(-3), Rad(3), 0), 0.15)
  1163. --[[
  1164. clerp(RS, RSnor * CFrame.new(0, -0.15, 0) * CFrame.Angles(Rad(-15 - 7 * Cos(sine / 18)), 0, 0), 0.15)
  1165. clerp(LS, LSnor * CFrame.Angles(Rad(-35), Rad(0), Rad(-160)), 0.15)
  1166. ]]--
  1167. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(170), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1168. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.5, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-20 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1169. end
  1170. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1171. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1172. clerp3(LS, LSnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1173. else
  1174. anim = "Walk"
  1175. if attack == false then
  1176. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.15 * Cos(sine / 15)) * CFrame.Angles(Rad(15), 0, 0), 0.15)
  1177. clerp(neck, necknor, 0.15)
  1178. clerp(RH, RHnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 15), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  1179. clerp(LH, LHnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 15), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  1180. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  1181. clerp(LS, LSnor * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  1182. --[[
  1183. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 4)) * ANGLES(RAD(15 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1184. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + 0 * COS(SINE / 2.5)) * ANGLES(RAD(-10 + 0 * SIN(SINE / 12)), RAD(0), RAD(0 * SIN(SINE / 24))), 1 / Animation_Speed)
  1185. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(30 * COS(SINE/4)), RAD(0 * SIN(SINE / 12)), RAD(10 + 0 * SIN(SINE / 20))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1186. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(-30 * COS(SINE/4)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1187. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.2 + 0.3 * COS(SINE / 4), 0) * ANGLES(RAD(30 * SIN(SINE / 4)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1188. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.2 - 0.3 * COS(SINE / 4), 0) * ANGLES(RAD(-30 * SIN(SINE / 4)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1189. ]]--
  1190. end
  1191. clerp3(RH, RHnor2 * CFrame.new(0 + 0.25 * Cos(sine / 4), -0 + 0.25 * Cos(sine / 4), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 8)), 0.15)
  1192. clerp3(LH, LHnor2 * CFrame.new(0 + 0.25 * Cos(sine / 4), -0 + 0.25 * Cos(sine / 4), 0) * CFrame.Angles(0, 0, 0 + 1 * Cos(sine / 8)), 0.15)
  1193. --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  1194. end
  1195. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement