gray_alli28codesrbx

notsonormal switcher v1

Aug 29th, 2020 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.23 KB | None | 0 0
  1. --h/https://pastebin.com/raw/pgfA6xGC
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3.  
  4. local RootPart = Player.Character.HumanoidRootPart
  5. local mode = 1
  6. local modes = {1,2,3,4,5,6,7,8,9,10,11}
  7. local modenames = {"Label","Memey","MaYhEm","DUAL DOOM","GET STICK BUGGED LOL","Milkman Karl son","Russian","YOU'RE GOING TO BRAZIL","water.","AYAYAY","Target Time"}
  8. local modemusic = {0,2124067887,614032233,2516100492,2562631515,5064944982,743478138,1844397277,5492784409,607462546,347026026}
  9. local modecolors = {BrickColor.new("INVALID BRICKCOLOR CODE GOES HERE"),BrickColor.new("Lapis"),BrickColor.new("Dark red"),BrickColor.new("Bright red"),BrickColor.new("Light green (Mint)"),BrickColor.new("White"),BrickColor.new("Earth orange"),BrickColor.new("Earth green"),BrickColor.new("Bright bluish green"),BrickColor.new("Bright reddish lilac"),BrickColor.new("Med. yellowish green")}
  10. local modespeed = {11,20,100,50,16,50,30,30,30,11,30}
  11. local Attack = false
  12. local Torso = Player.Character.Torso
  13. local LeftArm = Player.Character["Left Arm"]
  14. local RightArm = Player.Character["Right Arm"]
  15. local LeftLeg = Player.Character["Left Leg"]
  16. local RightLeg = Player.Character["Right Leg"]
  17. local Head = Player.Character.Head
  18. local RS = Torso["Right Shoulder"]
  19. local LS = Torso["Left Shoulder"]
  20. local RH = Torso["Right Hip"]
  21. local LH = Torso["Left Hip"]
  22. local N = Torso.Neck
  23. local R = Player.Character.HumanoidRootPart.RootJoint
  24. Player.Character.Humanoid.Animator.Parent = nil
  25. Player.Character.Animate.Parent = nil
  26. Player.Character.Humanoid.JumpPower = 50
  27.  
  28. Player.Chatted:Connect(function(msg)
  29. local BM = string.split(msg," ")
  30. if BM[1] == "/e" then
  31. table.remove(BM[1])
  32. end
  33.  
  34. if string.lower(BM[1]) == ".addmode" then
  35. table.insert(modes,#modes+1,modes[#modes]+1)
  36. table.insert(modenames,#modenames+1,BM[2])
  37. table.insert(modemusic,#modemusic+1,BM[3])
  38. table.insert(modecolors,#modecolors+1,BrickColor.new(BM[4]))
  39. table.insert(modespeed,#modespeed+1,20)
  40. end
  41. end)
  42.  
  43. local playing = true
  44. local Music = Instance.new("Sound",Player.Character.Head)
  45. Music.Looped = true
  46. Music.Volume = 3
  47. Music.SoundId = "rbxassetid://"..modemusic[mode]
  48. Music:Play()
  49.  
  50. local armthing = Instance.new("Model",LeftArm)
  51. local basething = Instance.new("Part",armthing)
  52. basething.Color = Color3.new(0,0,0)
  53. basething.TopSurface = "Smooth"
  54. basething.BottomSurface = "Smooth"
  55. basething.Size = LeftArm.Size + Vector3.new(0.1,-0.25,0.1)
  56. local colorthing = Instance.new("Part",armthing)
  57. colorthing.Color = Color3.fromRGB(0,168,255)
  58. colorthing.TopSurface = "Smooth"
  59. colorthing.BottomSurface = "Smooth"
  60. colorthing.Size = LeftArm.Size + Vector3.new(0.2,-1.75,0.2)
  61. colorthing.Material = Enum.Material.Neon
  62. local colorthing2 = colorthing:Clone()
  63. colorthing2.Parent = basething
  64. local w = Instance.new("Weld",colorthing)
  65. w.Part0 = w.Parent
  66. w.Part1 = basething
  67. colorthing.Position = colorthing.Position + Vector3.new(0,0.50,0)
  68. local w = Instance.new("Weld",colorthing2)
  69. w.Part0 = w.Parent
  70. w.Part1 = basething
  71. colorthing2.Position = colorthing2.Position + Vector3.new(0,-0.50,0)
  72. local w = Instance.new("Weld",basething)
  73. w.Part0 = w.Parent
  74. w.Part1 = LeftArm
  75.  
  76. me=Player.Character.Head
  77. title=Instance.new('BillboardGui',me);
  78. title.Name='stuf';
  79. title.Adornee=me;
  80. title.Size=UDim2.new(2.5,0,2.5,0);
  81. title.StudsOffset=Vector3.new(-0.3,Player.Character.Head.Position.Y/2.5,0);
  82. local tlb=Instance.new'TextLabel';
  83. tlb.Text=modenames[mode];
  84. tlb.Font='SourceSansBold';
  85. tlb.FontSize='Size60';
  86. tlb.TextColor3=Color3.fromRGB(0,168,255);
  87. tlb.Size=UDim2.new(1.25,0,1.25,0);
  88. tlb.BackgroundTransparency=1;
  89. tlb.Parent=title;
  90.  
  91. local title = Player.Character.Head.stuf
  92.  
  93. local function music(id)
  94. Music.SoundId = "rbxassetid://"..id
  95. end
  96. local function nameupdate(name)
  97. title.TextLabel.Text = name
  98. end
  99.  
  100. local Events = Instance.new("Folder",Player.Character)
  101. Events.Name = "Events"
  102. Instance.new("RemoteEvent",Events)
  103. Events.RemoteEvent.Name = "ToggleMusic"
  104. Events.ToggleMusic.OnServerEvent:Connect(function(p)
  105. if playing == true then
  106. Music:Stop()
  107. playing = false
  108. else
  109. Music:Play()
  110. playing = true
  111. end
  112. end)
  113. Instance.new("RemoteEvent",Events)
  114. Events.RemoteEvent.Name = "Attack"
  115. Instance.new("RemoteEvent",Events)
  116. Events.RemoteEvent.Name = "ModeForward"
  117. Events.ModeForward.OnServerEvent:Connect(function()
  118. if mode ~= modes[#modes] then
  119. mode = modes[mode+1]
  120. Player.Character.Humanoid.WalkSpeed = modespeed[mode]
  121. if mode ~= 1 then
  122. nameupdate(modenames[mode])
  123. else
  124. nameupdate("Normal")
  125. end
  126. music(modemusic[mode])
  127. else
  128. mode = modes[1]
  129. if mode ~= 2 then
  130. nameupdate(modenames[mode])
  131. else
  132. nameupdate(modenames[2])
  133. end
  134. music(modemusic[mode])
  135. end
  136. end)
  137. Instance.new("Folder",Events)
  138. Events.Folder.Name = [[getout
  139. potatoes
  140. *&(#(##(
  141. #*(($#]]
  142. Instance.new("RemoteEvent",Events:FindFirstChildWhichIsA("Folder"))
  143. Events:FindFirstChildWhichIsA("Folder").RemoteEvent.Name = "EndRemote"
  144. Events:FindFirstChildWhichIsA("Folder").EndRemote.OnServerEvent:Connect(function()
  145. Player:LoadCharacter()
  146. script:Destroy()
  147. end)
  148. Instance.new("RemoteEvent",Events)
  149. Events.RemoteEvent.Name = "UploadVolume"
  150. Events.UploadVolume.OnServerEvent:Connect(function(p,vol)
  151. if mode == 2 then
  152. Player.Character.Head.Size = Vector3.new(vol/50,vol/50,vol/50)
  153. Player.Character.Head.Mesh.Offset = Vector3.new(0,vol/100,0)
  154. else
  155. Player.Character.Head.Size = Vector3.new(2,1,1)
  156. Player.Character.Head.Mesh.Offset = Vector3.new(0,0,0)
  157. end
  158. end)
  159.  
  160. NLS([==[
  161. local UIS = game:GetService("UserInputService")
  162. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  163. UIS.InputBegan:Connect(function(input, gameProcessed)
  164. if input.UserInputType == Enum.UserInputType.Keyboard then
  165. if input.KeyCode == Enum.KeyCode.M then
  166. game:GetService("Players").LocalPlayer.Character.Events.ToggleMusic:FireServer()
  167. end
  168. if input.KeyCode == Enum.KeyCode.E then
  169. game:GetService("Players").LocalPlayer.Character.Events.ModeForward:FireServer()
  170. end
  171. end
  172. game:GetService("Players").LocalPlayer.Chatted:Connect(function(msg)
  173. if msg == "`stop" then
  174. game:GetService("Players").LocalPlayer.Character.Events:FindFirstChildWhichIsA("Folder").EndRemote:FireServer()
  175. script:Destroy()
  176. end
  177. end)
  178. end)
  179. Mouse.Button1Down:Connect(function()
  180. game:GetService("Players").LocalPlayer.Character.Events.Attack:FireServer()
  181. end)
  182. while wait() do
  183. game:GetService("Players").LocalPlayer.Character.Events.UploadVolume:FireServer(game:GetService("Players").LocalPlayer.Character.Head.Sound.PlaybackLoudness)
  184. end
  185. ]==],Player.Character)
  186.  
  187. -- attacks
  188. function FindNearestTorso(Position, Distance, SinglePlayer)
  189. if SinglePlayer then
  190. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  191. end
  192. local List = {}
  193. for i, v in pairs(workspace:GetDescendants()) do
  194. if v:IsA("Model") then
  195. if v:findFirstChild("Head") then
  196. if v ~= char then
  197. if (v.Head.Position - Position).magnitude <= Distance then
  198. table.insert(List, v)
  199. end
  200. end
  201. end
  202. end
  203. end
  204. return List
  205. end
  206. function MagnitudeDamage(par,magni,dam1,dam2)
  207. for _, c in pairs(workspace:GetDescendants()) do
  208. local hum = c:FindFirstChildOfClass("Humanoid")
  209. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  210. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  211. if head ~= nil then
  212. local targ = head.Position - par.Position
  213. local mag = targ.magnitude
  214. if magni >= mag and c.Name ~= Player.Name then
  215. if mode == 1 then
  216. hum:TakeDamage(math.rad(dam1*10,dam2*10))
  217. elseif mode == 2 then
  218. hum.Parent:Destroy()
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225. local rightP = function()
  226. if Attack == false then
  227. Attack = true
  228. for i = 1,5 do
  229. wait()
  230. RS.C1 = RS.C1:Lerp(CFrame.new(-0.5, 0.5, -0.187422484, -0.0718948096, -0.0187933743, 0.997235179, -0.964816689, -0.252204031, -0.0743105263, 0.252903253, -0.967491627, 0), .1)
  231. LS.C1 = LS.C1:Lerp(CFrame.new(0.49999997, 0.500003994, -0.262935877, 0.120593168, -0.0638016537, -0.990649581, 0.875649571, -0.463275731, 0.1364308, -0.467648447, -0.88391453, 0), .1)
  232. RH.C1 = RH.C1:Lerp(CFrame.new(0.5, 1, 0, -0.0961953178, 0, 0.995362461, 0, 1, 0, -0.995362461, 0, -0.0961953178), .1)
  233. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 1, 0, -0.202228427, 0, -0.979338408, 0, 1, 0, 0.979338408, 0, -0.202228427), .1)
  234. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -0.966057837, -0.258325964, 0, 0, 0, 1, -0.258325964, 0.966057837, 0), .1)
  235. R.C1 = R.C1:Lerp(CFrame.new(0, 0, 0, -0.949905455, 0.312537313, 0, 0, 0, 1, 0.312537313, 0.949905455, 0), .1)
  236. end
  237. wait()
  238. for i = 1,10 do
  239. wait()
  240. RS.C1 = RS.C1:Lerp(CFrame.new(-0.135920152, 1.35490298, 0.0614488125, -0.477063239, -0.111048073, 0.871825755, -0.876346529, -0.0150161684, -0.481448948, 0.0665550977, -0.993702352, -0.0901528001), .3)
  241. LS.C1 = LS.C1:Lerp(CFrame.new(0.49999997, 0.47479701, -0.44037348, 0.12059316, -0.0638016462, -0.990649521, 0.801170588, -0.582992554, 0.135074586, -0.586159348, -0.809968472, -0.0191889144), .3)
  242. RH.C1 = RH.C1:Lerp(CFrame.new(0.643624306, 0.996344924, -0.0862400383, -0.0889028534, 0.0728455186, 0.993372977, 0.102898262, 0.992657542, -0.0635840595, -0.990710974, 0.0965635553, -0.0957457796), .3)
  243. LH.C1 = LH.C1:Lerp(CFrame.new(-0.519013166, 1, -0.119114846, -0.201933101, -0.0540247262, -0.977908194, -0.0109253358, 0.998539627, -0.0529084876, 0.979338408, 0, -0.202228427), .3)
  244. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -0.882024407, 0.471204519, 0, 0, 0, 1, 0.471204519, 0.882024407, 0), .3)
  245. R.C1 = R.C1:Lerp(CFrame.new(-0.755004644, 0, 0.90099299, -0.827862859, -0.560930133, 0, 0, 0, 1, -0.560930133, 0.827862859, 0), .3)
  246. MagnitudeDamage(RightArm,10,30,40)
  247. end
  248. wait()
  249. Attack = false
  250. end
  251. end
  252. local rightK = function()
  253. if Attack == false then
  254. Attack = true
  255. for i = 1,5 do
  256. wait()
  257. RS.C1 = RS.C1:Lerp(CFrame.new(-0.427565575, 0.500681043, 0.00667876005, 0.0433156192, 0.0814886838, 0.995732605, -0.925858974, 0.377753466, 0.0093614608, -0.375378579, -0.922313392, 0.0918096453), .1)
  258. LS.C1 = LS.C1:Lerp(CFrame.new(0.5, 0.5, -5.96046448e-08, 0.36732918, 0.0370193906, -0.929354072, 0.925524175, 0.084349446, 0.369175285, 0.0920571983, -0.995748401, -0.00327832298), .1)
  259. RH.C1 = RH.C1:Lerp(CFrame.new(0.538636088, 0.649744391, -0.0384899229, -0.442445815, 0.0976285264, 0.891465306, 0.0779323727, 0.994481802, -0.0702315122, -0.893402696, 0.038400352, -0.447612762), .1)
  260. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 1, 0, 0.125489339, 0.0140298074, -0.991995752, -0.111108556, 0.99380827, 0, 0.985853553, 0.110219218, 0.126271173), .1)
  261. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -0.833201945, 0.547637403, 0.0766014978, 0.00212202221, -0.135360092, 0.990794182, 0.552964687, 0.825694203, 0.111620195), .1)
  262. R.C1 = R.C1:Lerp(CFrame.new(0, 0, 0, -0.706091702, -0.708120406, 0, -0.107229836, 0.106922634, 0.98846817, -0.69995451, 0.697949171, -0.151428819), .1)
  263. end
  264. wait()
  265. for i = 1,5 do
  266. wait()
  267. RS.C1 = RS.C1:Lerp(CFrame.new(-0.431088686, 0.522314966, 0.00671452284, 0.312176675, -0.0718659163, 0.947301984, -0.819365263, 0.484294355, 0.306756437, -0.480818361, -0.8719486, 0.0923009813), .3)
  268. LS.C1 = LS.C1:Lerp(CFrame.new(0.50000006, 0.5, -5.96046448e-08, 0.292190671, 0.0301601663, -0.955884516, 0.951919317, 0.0870380923, 0.293724805, 0.0920571983, -0.995748401, -0.00327832298), .3)
  269. RH.C1 = RH.C1:Lerp(CFrame.new(0.323883295, 0.441512823, 0.112886727, -0.0550715551, 0.878051817, 0.475386262, -0.388012409, 0.419869661, -0.820460856, -0.920007348, -0.229639784, 0.317572027), .3)
  270. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 0.571952939, 0, 0.16213198, -0.436101109, -0.885171711, -0.0424959324, 0.893122315, -0.447801918, 0.985853553, 0.110219218, 0.126271173), .3)
  271. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -0.709908664, 0.678890646, 0.187449321, -0.240874887, -0.484140158, 0.841182232, 0.661822438, 0.552010655, 0.50722295), .3)
  272. R.C1 = R.C1:Lerp(CFrame.new(-1.28870928, 1.04500353, 0, -0.373688936, -0.814299762, 0.444153577, -0.0925806016, 0.509197056, 0.855655968, -0.922922254, 0.278629184, -0.265669644), .3)
  273. MagnitudeDamage(RightLeg,10,40,50)
  274. end
  275. wait()
  276. Attack = false
  277. end
  278. end
  279.  
  280. --// Mouse \\--
  281. local mousebutton = 1
  282. Events.Attack.OnServerEvent:Connect(function(p)
  283. if mousebutton == 1 then
  284. rightP()
  285. mousebutton = 2
  286. elseif mousebutton == 2 then
  287. rightK()
  288. mousebutton = 1
  289. end
  290. end)
  291.  
  292. -- anims
  293. local Torsovelocity
  294. local sine = 0
  295.  
  296. while wait() do
  297. sine = sine +1
  298. colorthing.BrickColor = title.TextLabel.TextColor
  299. colorthing2.BrickColor = title.TextLabel.TextColor
  300. title.TextLabel.TextColor = modecolors[mode]
  301. title.StudsOffset = Vector3.new(-0.3,Player.Character.Head.Mesh.Offset.Y+1*5,0)
  302. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  303. if RootPart.Velocity.y > 1 and Attack == false then
  304. RS.C1 = RS.C1:Lerp(CFrame.new(-0.5, 0.5, 7.4505806e-08, 0, 0, 0.99999994, -0.497522831, 0.867450893, 0, -0.867450893, -0.497522831, 0), .2)
  305. LS.C1 = LS.C1:Lerp(CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0.348640621, 0.937256515, 0, 0.937256515, -0.348640621, 0), .2)
  306. RH.C1 = RH.C1:Lerp(CFrame.new(0.5, 0.789102316, 0.137064487, 0, 0, 1, -0.0487239137, 0.998812318, 0, -0.998812318, -0.0487239137, 0), .2)
  307. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 0.875732064, 0.120091446, 0, 0, -1, -0.119774885, 0.99280107, 0, 0.99280107, 0.119774885, 0), .2)
  308. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0603569299, 0.998176813, 0, 0.998176813, -0.0603569299), .2)
  309. R.C1 = R.C1:Lerp(CFrame.new(0, 0, 0, -0.999992251, 0.00389606552, -0.000566223694, -0.000414719456, 0.0387779698, 0.999247789, 0.00391509198, 0.999240279, -0.0387760475), .2)
  310. elseif RootPart.Velocity.y < -1 and Attack == false then
  311. RS.C1 = RS.C1:Lerp(CFrame.new(-0.126525939, 0.688768268, 0, 0, 0.822544992, 0.568699956, 0, 0.568699956, -0.822544992, -1, 0, 0), .2)
  312. LS.C1 = LS.C1:Lerp(CFrame.new(0.12283361, 0.713689446, 0, 0, -0.850200832, -0.526458561, 0, 0.526458561, -0.850200832, 1, 0, 0), .2)
  313. RH.C1 = RH.C1:Lerp(CFrame.new(0.5, 0.740077853, 0.141034126, 0, 0, 1, 0, 1, 0, -1, 0, 0), .2)
  314. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 0.932061553, 0.142322361, 0, 0, -1, 0.176991582, 0.984212339, 0, 0.984212339, -0.176991582, 0), .2)
  315. N.C1 = N.C1:Lerp(CFrame.new(-0.0128097534, -0.5, 0, -1, 0, 0, 0, -0.27696237, 0.960880756, 0, 0.960880756, 0.27696237), .2)
  316. R.C1 = R.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.027730247, 0.999615431, 0, 0.999615431, 0.027730247), .2)
  317. elseif Torsovelocity < 1 and Attack == false then
  318. RS.C1 = RS.C1:Lerp(CFrame.new(-0.5, 0.5+0.05*math.cos(sine/20), 0, 0, -0.0341873281, 0.999415457, 0, 0.999415457, 0.0341873281+0.2*math.sin(sine/20), -1, 0, 0), .2)
  319. LS.C1 = LS.C1:Lerp(CFrame.new(0.5, 0.5+0.05*math.cos(sine/20), 0, 0, 0.0410497449, -0.999157131, 0, 0.999157131, 0.0410497449+0.2*math.sin(sine/20), 1, 0, 0), .2)
  320. RH.C1 = RH.C1:Lerp(CFrame.new(0.5, 1-0.05*math.cos(sine/20), 0, -0.0471867919-0.07*math.sin(sine/20), 0, 0.998886108-0.07*math.sin(sine/20), 0, 1, 0, -0.998886108-0.07*math.sin(sine/20), 0, -0.0471867919-0.07*math.sin(sine/20)), .2)
  321. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 1-0.05*math.cos(sine/20), -1.86264515e-09, -0.0496474206-0.07*math.sin(sine/20), 0, -0.99876684-0.07*math.sin(sine/20), 0, 1, 0, 0.99876684-0.07*math.sin(sine/20), 0, -0.0496474206-0.07*math.sin(sine/20)), .2)
  322. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), .2)
  323. R.C1 = R.C1:Lerp(CFrame.new(0, 0+0.05*math.cos(sine/20), 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), .2)
  324. elseif Torsovelocity > 1 and Attack == false then
  325. RS.C1 = RS.C1:Lerp(CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0-1*math.cos(sine/5), 1+0.01*math.cos(sine/20), -0, -1+1*math.cos(sine/5), 0-1*math.cos(sine/5), 0), .2)
  326. LS.C1 = LS.C1:Lerp(CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0-1*math.cos(sine/5), 1+0.01*math.cos(sine/20), 0, 1+1*math.cos(sine/5), 0+1*math.cos(sine/5), 0), .2)
  327. RH.C1 = RH.C1:Lerp(CFrame.new(0.5, 1-0.05*math.cos(sine/20), 0, 0, 0, 1, 0+0.5*math.cos(sine/5), 1+0.5*math.cos(sine/5), -0, -1-0.5*math.cos(sine/5), 0+0.5*math.cos(sine/5), 0), .2)
  328. LH.C1 = LH.C1:Lerp(CFrame.new(-0.5, 1-0.05*math.cos(sine/20), 0, 0, 0, -1, 0+0.5*math.cos(sine/5), 1-0.5*math.cos(sine/5), 0, 1-0.5*math.cos(sine/5), 0-0.5*math.cos(sine/5), 0), .2)
  329. N.C1 = N.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0342424363, 0.99941355, 0, 0.99941355, -0.0342424363), .2)
  330. end
  331. end
Add Comment
Please, Sign In to add comment