Advertisement
idkwhatiam

neon switcher v1 (wip)

Apr 26th, 2019
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.33 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3.     script.Parent = owner.Character
  4.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5.     local function NewFakeEvent()
  6.         local Bind = Instance.new("BindableEvent")
  7.         local Fake;Fake = {Connections = {},
  8.         fakeEvent=true;
  9.         Connect=function(self,Func)
  10.             Bind.Event:connect(Func)
  11.             self.Connections[Bind] = true
  12.             return setmetatable({Connected = true},{
  13.             __index = function (self,Index)
  14.                 if Index:lower() == "disconnect" then
  15.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  16.                 end
  17.                 return Fake[Index]
  18.             end;
  19.             __tostring = function() return "Connection" end;
  20.         })
  21.         end}
  22.         Fake.connect = Fake.Connect;return Fake;
  23.     end
  24.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29.     local function TriggerEvent(self,Event,...)
  30.         local Trigger = Mouse[Event]
  31.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33.         end
  34.     end
  35.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  37.         if FiredBy.Name ~= owner.Name then return end
  38.         if Input.MouseEvent then
  39.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40.         else
  41.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43.             for _,Action in pairs(ContextActionService.Actions) do
  44.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45.             end
  46.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48.         end
  49.     end)
  50.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51.     Event.Parent = NLS([[
  52.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53.         local Input = function(Input,gameProcessedEvent)
  54.             if gameProcessedEvent then return end
  55.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.         end
  57.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58.         local Hit,Target
  59.         while wait(1/30) do
  60.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.             end
  63.         end
  64.     ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67.     __index = function (self,Index)
  68.         local Sandbox = function (Thing)
  69.             if Thing:IsA("Player") then
  70.                 local RealPlayer = Thing
  71.                 return setmetatable({},{
  72.                     __index = function (self,Index)
  73.                         local Type = type(RealPlayer[Index])
  74.                         if Type == "function" then
  75.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76.                                 return function (self)return InternalData["Mouse"] end
  77.                             end
  78.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79.                         end
  80.                         return RealPlayer[Index]
  81.                     end;
  82.                     __tostring = function(self) return RealPlayer.Name end
  83.                 })
  84.             end
  85.         end
  86.         if RealGame[Index] then
  87.             local Type = type(RealGame[Index])
  88.             if Type == "function" then
  89.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  90.                     return function (self,Service)
  91.                         local FakeServices = {
  92.                             ["players"] = function()
  93.                                 return setmetatable({},{
  94.                                     __index = function (self2,Index2)
  95.                                         local RealService = RealGame:GetService(Service)
  96.                                         local Type2 = type(Index2)
  97.                                         if Type2 == "function" then
  98.                                             return function (self,...) return RealService[Index2](RealService,...)end
  99.                                         else
  100.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101.                                             return RealService[Index2]
  102.                                         end
  103.                                     end;
  104.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  105.                                 })
  106.                             end;
  107.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109.                             ["runservice"] = function()
  110.                                 return setmetatable({},{
  111.                                     __index = function(self2,Index2)
  112.                                         local RealService = RealGame:GetService(Service)
  113.                                         local Type2 = type(Index2)
  114.                                         if Type2 == "function" then
  115.                                             return function (self,...) return RealService[Index2](RealService,...) end
  116.                                         else
  117.                                             local RunServices = {
  118.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  120.                                             }
  121.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122.                                             return RealService[Index2]
  123.                                         end
  124.                                     end
  125.                                 })
  126.                             end
  127.                         }
  128.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129.                         return RealGame:GetService(Service)
  130.                     end
  131.                 end
  132.                 return function (self,...) return RealGame[Index](RealGame,...) end
  133.             else
  134.                 if game:GetService(Index) then return game:GetService(Index) end
  135.                 return RealGame[Index]
  136.             end
  137.         end
  138.         return nil
  139.     end
  140.         });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. --Neon Switcher--
  143.  
  144. --Made by youngmacka123--
  145.  
  146. --rare script until its leaked--
  147.  
  148. print("Controls:")
  149. print("P = Switch to pikachu mode")
  150. print("N = Go back to neutral")
  151. print("B = Go to noob mode")
  152.  
  153. print("-----")
  154.  
  155. print("Pikachu mode controls")
  156. print("T = Taunt")
  157. print("E = Thunder")
  158.  
  159. print("-----")
  160.  
  161. print("Noob mode controls")
  162. print("J = get out of my room im playing minecraft")
  163. print("V = somebody toucha my spaghet! (broken)")
  164.  
  165. --variables for all the modes--
  166. neutral = true --you start at neutral
  167. pikachu = false
  168. noob = false
  169.  
  170. --character varaibles--
  171. plr = owner
  172. char = plr.Character
  173. mouse = plr:GetMouse()
  174. ws = char.Humanoid.WalkSpeed
  175.  
  176. --song ids for easier song change--
  177. neusong = "rbxassetid://685766564" --neutral song
  178. pikasong = "rbxassetid://1526564338" --pikachu song
  179. nubsong = "rbxassetid://1081773234" --noob song
  180.  
  181. --music--
  182. modemusic = Instance.new("Sound")
  183. modemusic.Parent = char.Torso
  184. modemusic.Playing = true
  185. modemusic.Looped = true
  186. modemusic.SoundId = neusong
  187. modemusic.Volume = 5
  188.  
  189. --character change--
  190. torso = char["Torso"]
  191. rightarm = char["Right Arm"]
  192. leftarm = char["Left Arm"]
  193. head = char["Head"]
  194. leftleg = char["Left Leg"]
  195. rightleg = char["Right Leg"]
  196. bc = BrickColor
  197.  
  198. local txt = Instance.new("BillboardGui", char)
  199. txt.Adornee = char.Head
  200. txt.Name = "_status"
  201. txt.Size = UDim2.new(2, 0, 1.2, 0)
  202. txt.StudsOffset = Vector3.new(-9, 8, 0)
  203. local text = Instance.new("TextLabel", txt)
  204. text.Size = UDim2.new(10, 0, 7, 0)
  205. text.FontSize = "Size24"
  206. text.TextScaled = true
  207. text.TextTransparency = 0
  208. text.BackgroundTransparency = 1
  209. text.TextTransparency = 0
  210. text.TextStrokeTransparency = 1
  211. text.Font = "Cartoon"
  212. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  213. text.Text = "Choosing..."
  214.  
  215. torso.BrickColor = BrickColor.new("Institutional white")
  216. rightarm.BrickColor = BrickColor.new("Institutional white")
  217. leftarm.BrickColor = BrickColor.new("Institutional white")
  218. rightleg.BrickColor = BrickColor.new("Institutional white")
  219. leftleg.BrickColor = BrickColor.new("Institutional white")
  220. head.BrickColor = BrickColor.new("Institutional white")
  221. head.face:Destroy()
  222.  
  223. head.Transparency = 0.3
  224. rightarm.Transparency = 0.3
  225. leftarm.Transparency = 0.3
  226. rightleg.Transparency = 0.3
  227. leftleg.Transparency = 0.3
  228. torso.Transparency = 0.3
  229.  
  230. for i,v in pairs(char:children()) do
  231.     if v:IsA("Hat") then
  232.         v:Destroy()
  233.     end
  234. end
  235. for i,v in pairs(char:children()) do
  236.     if v:IsA("Accessory") then
  237.         v:Destroy()
  238.     end
  239. end
  240. for i,v in pairs(char:children()) do
  241.     if v:IsA("Hair") then
  242.         v:Destroy()
  243.     end
  244. end
  245. for i,v in pairs(char:children()) do
  246.     if v:IsA("Shirt") then
  247.         v:Destroy()
  248.     end
  249. end
  250. for i,v in pairs(char:children()) do
  251.     if v:IsA("Pants") then
  252.         v:Destroy()
  253.     end
  254. end
  255. for i,v in pairs(char:children()) do
  256.     if v:IsA("Graphic Shirt") then
  257.         v:Destroy()
  258.     end
  259. end
  260. for i,v in pairs(char:children()) do
  261.     if v:IsA("GraphicShirt") then
  262.         v:Destroy()
  263.     end
  264. end
  265.  
  266. for _,v in pairs(char:children()) do
  267. if v:IsA("Shirt") then
  268. v.ShirtTemplate = "rbxassetid://0"
  269. elseif v:IsA("Pants") then
  270. v.PantsTemplate = "rbxassetid://0"
  271. elseif v:IsA("ShirtGraphic") then
  272. v:Remove()
  273. wait(.1)
  274. torso.roblox:Remove()
  275. elseif v:IsA("Accessory") then
  276. v:Remove()
  277. end
  278. end
  279.  
  280. --character body parts mainly for the attacks in the modes--
  281. Left_Shoulder = torso:WaitForChild("Left Shoulder")
  282. Right_Shoulder = torso:WaitForChild("Right Shoulder")
  283. Left_Hip = torso:WaitForChild("Left Hip")
  284. Right_Hip = torso:WaitForChild("Right Hip")
  285. Neck = torso:WaitForChild("Neck")
  286.  
  287. --keys section--
  288.  
  289. --mode keys--
  290. mouse.KeyDown:connect(function(Press)
  291.     Press=Press:lower()
  292.     if Press=="p" then
  293.         print("Now in pikachu mode!")
  294.         pikachu = true
  295.         neutral = false
  296.         noob = false
  297.         modemusic.SoundId = pikasong
  298.        
  299. torso.BrickColor = BrickColor.new("New Yeller")
  300. rightarm.BrickColor = BrickColor.new("New Yeller")
  301. leftarm.BrickColor = BrickColor.new("New Yeller")
  302. rightleg.BrickColor = BrickColor.new("New Yeller")
  303. leftleg.BrickColor = BrickColor.new("New Yeller")
  304. head.BrickColor = BrickColor.new("New Yeller")
  305. text.Text = "Pikachu"
  306. text.TextColor3 = Color3.new(255, 255, 0)
  307.     end
  308. end)
  309.  
  310. mouse.KeyDown:connect(function(Press)
  311.     Press=Press:lower()
  312.     if Press=="b" then
  313.         print("Now in noob mode!")
  314.         pikachu = false
  315.         neutral = false
  316.         noob = true
  317.         modemusic.SoundId = nubsong
  318.        
  319. torso.BrickColor = BrickColor.new("Bright blue")
  320. rightarm.BrickColor = BrickColor.new("Bright yellow")
  321. leftarm.BrickColor = BrickColor.new("Bright yellow")
  322. rightleg.BrickColor = BrickColor.new("Br. yellowish green")
  323. leftleg.BrickColor = BrickColor.new("Br. yellowish green")
  324. head.BrickColor = BrickColor.new("Bright yellow")
  325. text.Text = "Noob"
  326. text.TextColor3 = Color3.new(0, 255, 255)
  327.     end
  328. end)
  329.  
  330. mouse.KeyDown:connect(function(Press)
  331.     Press=Press:lower()
  332.     if Press=="n" then
  333.             print("Back to choosing.")
  334.     modemusic.SoundId = neusong
  335.     neutral = true
  336.     pikachu = false
  337.     noob = false
  338.         text.Text = "Choosing..."
  339.         text.TextColor3 = Color3.new(0, 0, 0)
  340.        
  341. torso.BrickColor = BrickColor.new("Institutional white")
  342. rightarm.BrickColor = BrickColor.new("Institutional white")
  343. leftarm.BrickColor = BrickColor.new("Institutional white")
  344. rightleg.BrickColor = BrickColor.new("Institutional white")
  345. leftleg.BrickColor = BrickColor.new("Institutional white")
  346. head.BrickColor = BrickColor.new("Institutional white")
  347.     end
  348. end)
  349.  
  350. --pikachu mode keys--
  351. mouse.KeyDown:connect(function(Press)
  352.         Press=Press:lower()
  353.         if Press=="t" and pikachu == true then
  354.         pts = Instance.new("Sound")
  355.         pts.Parent = head
  356.         pts.Playing = true
  357.         pts.SoundId = "rbxassetid://131218535"
  358.         pts.Volume = 999
  359.         if pts.Playing == false then
  360.             pts:Destroy()
  361.         end
  362.         wait(0.99199999999999999999999999999999999999999)
  363.         pts:Destroy()
  364.     end
  365. end)
  366.  
  367. mouse.KeyDown:connect(function(Press)
  368.         Press=Press:lower()
  369.         if Press=="e" and pikachu == true then
  370.         pths = Instance.new("Sound")
  371.         pths.Parent = head
  372.         pths.Playing = true
  373.         pths.SoundId = "rbxassetid://2503972919"
  374.         pths.Volume = 10
  375.         cloud = Instance.new("Part")
  376.         cloud.Parent = char
  377.         cloud.Position = torso.Position + Vector3.new(0, 6, 0)
  378.         cloud.CanCollide = false
  379.         cloud.Anchored = true
  380.         cloud.BrickColor = BrickColor.new("Dark stone grey")
  381.         mcloud = Instance.new("SpecialMesh")
  382.         mcloud.Parent = cloud
  383.         mcloud.MeshId = "rbxassetid://700927324"
  384.         torso.Anchored = true
  385.         if pths.Playing == false then
  386.             pths:Destroy()
  387.         end
  388.         wait(0.5)
  389.         thunder = Instance.new("Part")
  390.         thunder.Anchored = true
  391.         thunder.CanCollide = true
  392.         thunder.Parent = char
  393.         thunder.Position = torso.Position
  394.         thunder.Shape = "Ball"
  395.         thunder.TopSurface = "Smooth"
  396.         thunder.BottomSurface = "Smooth"
  397.         thunder.Transparency = 0.7
  398.         thunder.BrickColor = BrickColor.new("New Yeller")
  399.         thunder.Material = "Neon"
  400.         wait(0.12)
  401.         thunder.Transparency = 0.5
  402.         ex = Instance.new("Explosion")
  403.         ex.Parent = thunder
  404.         ex.Position = thunder.Position
  405.         ex.Visible = false
  406.         ff = Instance.new("ForceField")
  407.         ff.Parent = char
  408.         ff.Visible = false
  409.         wait(0.12)
  410.         ex:Destroy()
  411.         ff:Destroy()
  412.         thunder.Transparency = 0.2
  413.         wait(0.12)
  414.         thunder.Transparency = 0.5
  415.         wait(0.12)
  416.         thunder.Transparency = 0.7
  417.         cloud.Transparency = 0.5
  418.         wait(0.12)
  419.         thunder:Destroy()
  420.         cloud:Destroy()
  421.         torso.Anchored = false
  422.        end
  423. end)
  424.  
  425. --noob mode keys--
  426. mouse.KeyDown:connect(function(Press)
  427.         Press=Press:lower()
  428.         if Press=="j" and noob == true then
  429.         head.Transparency = 1
  430.         dirt = Instance.new("Part")
  431.         dirt.Parent = char
  432.         dirt.BrickColor = BrickColor.new("Tawny")
  433.         dirt.Material = "Slate"
  434.         dirt.Anchored = false
  435.         dirt.CanCollide = false
  436.         dirt.Size = Vector3.new(1, 1, 1)
  437.         dirt.Position = head.Position
  438.         dweld = Instance.new("Weld")
  439.         dweld.Parent = dirt
  440.         dweld.Part0 = dirt
  441.         dweld.Part1 = head
  442.         dirtface = Instance.new("Decal")
  443.         dirtface.Parent = dirt
  444.         dirtface.Face = "Front"
  445.         dirtface.Texture = "http://www.roblox.com/asset/?id=1374326945"
  446.         gomst = Instance.new("Sound")
  447.         gomst.Parent = char.Head
  448.         gomst.Volume = 10
  449.         gomst.Playing = true
  450.         gomst.SoundId = "rbxassetid://749031341"
  451.         if gomst.Playing == false then
  452.             dweld:Destroy()
  453.             dirtface:Destroy()
  454.             dirt:Destroy()
  455.             gomst:Destroy()
  456.         end
  457.         wait(2.97699999999999999999999999999999999)
  458.         dweld:Destroy()
  459.         dirtface:Destroy()
  460.         dirt:Destroy()
  461.         gomst:Destroy()
  462.         head.Transparency = 0.3
  463.     end
  464. end)
  465.  
  466. mouse.KeyDown:connect(function(Press)
  467.         Press=Press:lower()
  468.         if Press=="v" and noob == true then
  469.         spts = Instance.new("Sound")
  470.         spts.Parent = head
  471.         spts.TimePosition = 3
  472.         spts.Volume = 10
  473.         spts.Playing = true
  474.         spts.SoundId = "rbxassetid://1309594851"
  475.        
  476.         Left_Shoulder.C0 = CFrame.new(-1.5,1,0)
  477.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0,0)
  478.         wait(0.12)
  479.         Left_Shoulder.C0 = CFrame.new(-1.6,1.1,0.1)
  480.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0.1,0)
  481.         wait(0.12)
  482.         Left_Shoulder.C0 = CFrame.new(-1.5,1,0)
  483.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0,0)
  484.         wait(0.12)
  485.         Left_Shoulder.C0 = CFrame.new(-1.6,1.1,0.1)
  486.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0.1,0)
  487.         wait(0.12)
  488.         Left_Shoulder.C0 = CFrame.new(-1.5,1,0)
  489.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0,0)
  490.         wait(0.12)
  491.         Left_Shoulder.C0 = CFrame.new(-1.6,1.1,0.1)
  492.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0.1,0)
  493.         wait(0.12)
  494.         Left_Shoulder.C0 = CFrame.new(-1.5,1,0)
  495.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0,0)
  496.         wait(0.12)
  497.         Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  498.         Left_Shoulder.C1 = CFrame.Angles(math.rad(45),0.1,0)
  499.         wait(0.12)
  500.         Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  501.         Left_Shoulder.C1 = CFrame.Angles(math.rad(1000),0,0)
  502.     end
  503. end)
  504.  
  505. --name shake--
  506. while true do
  507.     text.Rotation = 3
  508.     wait(0.12)
  509.     text.Rotation = 2
  510.     wait(0.12)
  511.     text.Rotation = 1
  512.     wait(0.12)
  513.     text.Rotation = 0
  514.     wait(0.12)
  515.     text.Rotation = -1
  516.     wait(0.12)
  517.     text.Rotation = -2
  518.     wait(0.12)
  519.     text.Rotation = -3
  520.     wait(0.12)
  521.     text.Rotation = -2
  522.     wait(0.12)
  523.     text.Rotation = -1
  524.     wait(0.12)
  525.     text.Rotation = 0
  526.     wait(0.12)
  527.     text.Rotation = 1
  528.     wait(0.24)
  529.     text.Rotation = 2
  530.     wait(0.12)
  531.     text.Rotation = 3
  532.     wait(0.12)
  533. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement