Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- --LoadLibrary("RbxUtility").Create
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- print("hello welcome to windows.exe xdd. this is made by mrfunnylaughs4")
- warn([[the functions are:
- click - throw a windows dart that will "shutdown" players
- E - restart their explorer.exe xdd
- R - bsod them
- T - make them stop responding
- Y - bust a person with a windows laptop
- U - give a person a fresh virus xd
- P - spam somebody's mailbox
- F - throw a computer at somebody xddddd
- G - let me just add chilledwindows.exe in this game
- H - shoot some lazers out of the laptop
- J - suck a player into a screen xd
- K - suck a player into a screen and fling them!!!!
- L - let me just shoot a lazer from my arm brb]])
- wait(1)
- local plr = game:GetService("Players").LocalPlayer
- attacking = false
- walking = false
- local mouse = plr:GetMouse()
- repeat wait() until plr.Character
- local char = plr.Character
- local oldarmc1 = char.Torso["Left Shoulder"].C0
- local oldarmc2 = char.Torso["Right Shoulder"].C0
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- local glasses = Instance.new("Accessory")
- glasses.Name = "BillGatesGlasses"
- glasses.AttachmentPos = Vector3.new(0, 0.3, 0.25)
- glasses.Parent = char.Head
- local part = Instance.new("Part", glasses)
- part.Name = "Handle"
- part.Size = Vector3.new(1, 0.4, 1)
- part.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 1, 0)
- local mesh = Instance.new("SpecialMesh", part)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=11419729"
- mesh.TextureId = "rbxassetid://167447118"
- glasses.Parent = char
- local hair = Instance.new("Accessory")
- hair.Name = "BillGatesHair"
- hair.AttachmentPos = Vector3.new(0.01, 0.1, 0)
- hair.Parent = char.Head
- local part2 = Instance.new("Part", hair)
- part2.Name = "Handle"
- part2.Size = Vector3.new(1, 0.8, 1)
- part2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 1, 0)
- local mesh2 = Instance.new("SpecialMesh", part2)
- mesh2.MeshType = "FileMesh"
- mesh2.MeshId = "http://www.roblox.com/asset/?id=12259089"
- mesh2.TextureId = "http://www.roblox.com/asset/?id=12864575"
- hair.Parent = char
- char.Head:WaitForChild("face").Texture = "http://www.roblox.com/asset/?id=1540974968"
- char.Humanoid.Running:Connect(function(speed)
- if speed > 0 then
- walking = true
- else
- walking = false
- end
- end)
- mouse.Button1Down:Connect(function()
- if attacking == false and walking == false then
- attacking = true
- local torso = char.Torso
- torso.Anchored = true
- spawn(function()
- for i = 0, 1.6, 0.1 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.09), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.6, 0 , -0.1 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.09), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end)
- for i = 0, 1.6, 0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.09), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.6, 0 , -0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.09), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- local dart = Instance.new("Part", workspace)
- dart.Anchored = true
- dart.Size = Vector3.new(1.7, 0.2, 0.2)
- dart.BrickColor = BrickColor.new("Bright blue")
- dart.CFrame = char["Left Arm"].CFrame * CFrame.Angles(0, math.rad(90), math.pi / 4.1) * CFrame.new(0, -1, 0)
- local dart2 = Instance.new("Part", workspace)
- dart2.Anchored = true
- dart2.Size = Vector3.new(1.7, 0.2, 0.2)
- dart2.BrickColor = BrickColor.new("Bright blue")
- dart2.CFrame = char["Right Arm"].CFrame * CFrame.Angles(0, math.rad(90), math.pi / 4.1) * CFrame.new(0, -1, 0)
- wait(0.5)
- spawn(function()
- dart.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head:Destroy()
- local shutdown = Instance.new("Sound", hit.Parent)
- shutdown.SoundId = "rbxassetid://784747919"
- shutdown.Volume = 1
- shutdown:Play()
- end
- end)
- for i = 1, 100 do
- dart.CFrame = dart.CFrame * CFrame.new(-1, -0.01, 0)
- game:GetService("RunService").RenderStepped:Wait()
- end
- dart:Destroy()
- end)
- spawn(function()
- dart2.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head:Destroy()
- local shutdown = Instance.new("Sound", hit.Parent)
- shutdown.SoundId = "rbxassetid://784747919"
- shutdown.Volume = 1
- shutdown:Play()
- end
- end)
- for i = 1, 100 do
- dart2.CFrame = dart2.CFrame * CFrame.new(-1, -0.01, 0)
- game:GetService("RunService").RenderStepped:Wait()
- end
- dart2:Destroy()
- end)
- local start1 = torso["Left Shoulder"].C0
- spawn(function()
- for i = 1.6, 0, -0.1 do
- torso["Left Shoulder"].C0 = oldarmc1:lerp(start1, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end)
- local start2 = torso["Right Shoulder"].C0
- for i = 1.6, 0, -0.1 do
- torso["Right Shoulder"].C0 = oldarmc2:lerp(start2, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- attacking = false
- torso.Anchored = false
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
- if isTyping == false then
- if input.KeyCode == Enum.KeyCode.E then
- local tar = mouse.Target
- if tar and tar.Parent:FindFirstChild("Head") and not tar.Parent:FindFirstChild("Head"):FindFirstChild("restartwhoops") then
- if tar.Parent:FindFirstChild("Humanoid") then
- tar.Parent.Humanoid.DisplayDistanceType = "None"
- end
- for i,v in pairs(tar.Parent:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = true
- end
- end
- local sound = Instance.new("Sound", tar.Parent:FindFirstChild("Head"))
- sound.SoundId = "rbxassetid://489390072"
- sound.Volume = 5
- sound:Play()
- local billboard = Instance.new("BillboardGui", tar.Parent.Head)
- billboard.Size = UDim2.new(0, 200, 0, 50)
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Adornee = tar.Parent.Head
- billboard.Name = "restartwhoops"
- billboard.MaxDistance = 100
- local text = Instance.new("TextLabel", billboard)
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(10, 0, 1, 0)
- text.Position = UDim2.new(-4.5, 0, 0, 0)
- text.Font = "Cartoon"
- text.TextSize = 30
- text.TextStrokeTransparency = 1
- text.TextWrapped = true
- local text2 = "Restarting Explorer.EXE..."
- local texttypetimes = string.len(text2)
- spawn(function()
- for i = 1, texttypetimes, 1 do
- text.Text = string.sub(text2, 1, i)
- wait(0.05)
- end
- end)
- wait(10)
- if tar.Parent then
- for i,v in pairs(tar.Parent:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- end
- end
- end
- local text3 = "Explorer.EXE has fully restarted."
- local texttypetimes2 = string.len(text3)
- for i = 1, texttypetimes2, 1 do
- text.Text = string.sub(text3, 1, i)
- wait(0.05)
- end
- wait(2)
- if tar.Parent then
- if tar.Parent:FindFirstChild("Humanoid") then
- tar.Parent.Humanoid.DisplayDistanceType = "Viewer"
- end
- end
- billboard:Destroy()
- end
- end
- if input.KeyCode == Enum.KeyCode.R then
- local tar = mouse.Target
- if tar and tar.Parent then
- if tar.Parent:FindFirstChild("Head") and not tar.Parent:FindFirstChild("Head"):FindFirstChild("youjustgotbsodxdd") then
- local part = Instance.new("Part", tar.Parent)
- part.Name = "bsodbrick"
- part.Size = tar.Parent.Head.Size
- part.Anchored = true
- part.CFrame = tar.Parent.Head.CFrame
- part.CanCollide = false
- part.Transparency = 1
- part.Locked = true
- local player = game:GetService("Players"):GetPlayerFromCharacter(tar.Parent)
- if player then
- local gui = Instance.new("ScreenGui", player.PlayerGui)
- gui.Name = "blindness"
- local image = Instance.new("ImageLabel", gui)
- image.Size = UDim2.new(1, 0, 1, 0)
- image.BorderSizePixel = 0
- image.Image = "http://www.roblox.com/asset/?id=739681017"
- for i,v in pairs(tar.Parent:GetChildren()) do
- if v:IsA("Part") then
- if v.Name ~= "bsodbrick" then
- v:Destroy()
- end
- end
- end
- end
- if tar.Parent then
- for i,v in pairs(tar.Parent:GetChildren()) do -- part that errors
- if v:IsA("BasePart") then
- if v.Name ~= "bsodbrick" then
- v:Destroy()
- end
- end
- end
- end
- local sound = Instance.new("Sound", part)
- sound.SoundId = "rbxassetid://160715357"
- sound.Volume = 5
- sound:Play()
- local billboard = Instance.new("BillboardGui", part)
- billboard.Adornee = part
- billboard.Size = UDim2.new(0, 70, 0, 70)
- billboard.StudsOffset = Vector3.new(10, 20, 0)
- billboard.Name = "youjustgotbsodxdd"
- billboard.MaxDistance = 50
- local text = Instance.new("ImageLabel", billboard)
- text.Size = UDim2.new(5, 0, 5, 0)
- text.BorderSizePixel = 0
- text.Position = UDim2.new(-2.5, 0, 0, 0)
- text.Image = "http://www.roblox.com/asset/?id=739681017"
- end
- end
- end
- if input.KeyCode == Enum.KeyCode.T then
- local tar = mouse.Target
- if tar and tar.Parent:FindFirstChild("Head") and not tar.Parent:FindFirstChild("Head"):FindFirstChild("norespondxd") then
- if tar.Parent:FindFirstChild("Humanoid") then
- tar.Parent.Humanoid.DisplayDistanceType = "None"
- end
- local billboard = Instance.new("BillboardGui", tar.Parent.Head)
- billboard.Size = UDim2.new(0, 200, 0, 50)
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Adornee = tar.Parent.Head
- billboard.Name = "norespondxd"
- billboard.MaxDistance = 100
- local text = Instance.new("TextLabel", billboard)
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(10, 0, 1, 0)
- text.Position = UDim2.new(-4.5, 0, 0, 0)
- text.Font = "Cartoon"
- text.TextSize = 30
- text.TextStrokeTransparency = 1
- text.TextWrapped = true
- text.Text = tar.Parent.Name.." has stopped working."
- local sound = Instance.new("Sound", tar.Parent)
- sound.SoundId = "rbxassetid://669574849"
- sound.Volume = 5
- sound:Play()
- spawn(function()
- repeat
- if tar.Parent then
- for i,v in pairs(tar.Parent:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = true
- end
- end
- end
- wait(0.1)
- if tar.Parent then
- for i,v in pairs(tar.Parent:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- end
- end
- end
- wait()
- until not tar.Parent
- end)
- end
- end
- if input.KeyCode == Enum.KeyCode.Y and attacking == false then
- attacking = true
- local pcmodel = Instance.new("Model", workspace)
- pcmodel.Name = "this is a good windows pc xdd"
- local base = Instance.new("Part", pcmodel)
- base.Name = "Bottom"
- base.BrickColor = BrickColor.new("Black")
- base.Size = Vector3.new(8.1, 0.4, 6.3)
- base.TopSurface = "Smooth"
- base.BottomSurface = "Smooth"
- pcmodel.PrimaryPart = base
- local screen = Instance.new("Part", pcmodel)
- screen.Name = "ScreenHolder"
- screen.BrickColor = BrickColor.new("Black")
- screen.Size = Vector3.new(8.1, 5.2, 0.4)
- screen.TopSurface = "Smooth"
- screen.BottomSurface = "Smooth"
- local weld = Instance.new("Weld", pcmodel)
- weld.Name = "BaseToScreenHolder"
- weld.Part0 = base
- weld.Part1 = screen
- weld.C1 = CFrame.new(0, -3.6, 2.95) * CFrame.Angles(math.rad(20), 0, 0)
- local screen2 = Instance.new("Part", pcmodel)
- screen2.Name = "Screen"
- screen2.BrickColor = BrickColor.new("Really black")
- screen2.Size = Vector3.new(7.5, 4.5, 0.1)
- screen2.TopSurface = "Smooth"
- screen2.BottomSurface = "Smooth"
- local weld2 = Instance.new("Weld", pcmodel)
- weld2.Name = "ScreenHolderToScreen"
- weld2.Part0 = screen
- weld2.Part1 = screen2
- weld2.C1 = CFrame.new(0, 0, -0.2)
- pcmodel:SetPrimaryPartCFrame(CFrame.new(mouse.Hit.p) + Vector3.new(0, 100, 0))
- local sound = Instance.new("Sound", pcmodel)
- sound.SoundId = "rbxassetid://587166970"
- sound.Volume = 2
- sound:Play()
- base.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head.Position = hit.Parent.Head.Position + Vector3.new(0, 1, 0)
- end
- end)
- screen.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head.Position = hit.Parent.Head.Position + Vector3.new(0, 1, 0)
- end
- end)
- screen2.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head.Position = hit.Parent.Head.Position + Vector3.new(0, 1, 0)
- end
- end)
- spawn(function()
- wait(4)
- attacking = false
- end)
- end
- if input.KeyCode == Enum.KeyCode.U then
- local tar = mouse.Target
- if tar and tar.Parent:FindFirstChild("Head") and not tar.Parent:FindFirstChild("Head"):FindFirstChild("virusaffect") then
- if tar.Parent:FindFirstChild("Humanoid") then
- tar.Parent.Humanoid:Destroy()
- else
- local bodyforce = Instance.new("BodyForce", tar.Parent.Head)
- bodyforce.Force = Vector3.new(0, -500000, 0)
- end
- local billboard = Instance.new("BillboardGui", tar.Parent.Head)
- billboard.Size = UDim2.new(0, 200, 0, 50)
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Adornee = tar.Parent.Head
- billboard.Name = "virusaffect"
- billboard.MaxDistance = 100
- local text = Instance.new("TextLabel", billboard)
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(10, 0, 1, 0)
- text.Position = UDim2.new(-4.5, 0, 0, 0)
- text.Font = "Cartoon"
- text.TextSize = 30
- text.TextStrokeTransparency = 1
- text.TextWrapped = true
- text.Text = "This user is affected by a virus."
- local sound = Instance.new("Sound", tar.Parent)
- sound.SoundId = "rbxassetid://575266163"
- sound.Volume = 5
- sound:Play()
- end
- end
- if input.KeyCode == Enum.KeyCode.P then
- local tar = mouse.Target
- if tar and tar.Parent:FindFirstChild("Head") and not tar.Parent:FindFirstChild("Head"):FindFirstChild("mailaffect") then
- if tar.Parent:FindFirstChild("Humanoid") then
- tar.Parent.Humanoid.DisplayDistanceType = "None"
- end
- local billboard = Instance.new("BillboardGui", tar.Parent.Head)
- billboard.Size = UDim2.new(0, 200, 0, 50)
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Adornee = tar.Parent.Head
- billboard.Name = "mailaffect"
- billboard.MaxDistance = 100
- local text = Instance.new("TextLabel", billboard)
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(10, 0, 1, 0)
- text.Position = UDim2.new(-4.5, 0, 0, 0)
- text.Font = "Cartoon"
- text.TextSize = 30
- text.TextStrokeTransparency = 1
- text.TextWrapped = true
- text.Text = "This user is being spammed with mail."
- local sound = Instance.new("Sound", tar.Parent)
- sound.SoundId = "rbxassetid://651986414"
- sound.Volume = 5
- sound:Play()
- local player = game:GetService("Players"):GetPlayerFromCharacter(tar.Parent)
- if player then
- local emails = {
- "l0lz u spammd xd",
- "soz i need to sp4m u",
- "lol need caffeine? click on this ad then!",
- "your ded lel",
- "sorry but we have to break up",
- "i'm hungry can i eat ur pizzer xd",
- "why did u listn to bill gatz",
- "please stop already",
- "commit get spammed by mail lolz",
- "wow i hope u are havin good dayz xddd",
- "GIVE MEE FOODZ",
- "oops, your system crashed. you lost your data, but you had protegent",
- "A problem has been detected and windows has been shut down to prevent damage.",
- "BYE BXLOLXDDDD EROERLOL",
- "rofl u got hit by titannic",
- "goodbye young sir"
- }
- for i = 1, 20 do
- local gui = Instance.new("ScreenGui", player.PlayerGui)
- gui.Name = "Mail "..i
- local text = Instance.new("TextLabel", gui)
- text.Size = UDim2.new(0.213, 0, 0.332, 0)
- local r = Random.new()
- text.Position = UDim2.new(r:NextNumber(0, 0.81), 0, r:NextNumber(0, 0.71), 0)
- text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- text.Text = emails[math.random(1, 16)]
- text.TextScaled = true
- wait()
- end
- end
- end
- end
- if input.KeyCode == Enum.KeyCode.F and attacking == false and walking == false then
- attacking = true
- local torso = char.Torso
- torso.Anchored = true
- local pcmodel = Instance.new("Model")
- pcmodel.Name = "this is a good windows pc xdd"
- local base = Instance.new("Part", pcmodel)
- base.Name = "Bottom"
- base.BrickColor = BrickColor.new("Black")
- base.Size = Vector3.new(8.1, 0.4, 6.3)
- base.TopSurface = "Smooth"
- base.BottomSurface = "Smooth"
- pcmodel.PrimaryPart = base
- local screen = Instance.new("Part", pcmodel)
- screen.Name = "ScreenHolder"
- screen.BrickColor = BrickColor.new("Black")
- screen.Size = Vector3.new(8.1, 5.2, 0.4)
- screen.TopSurface = "Smooth"
- screen.BottomSurface = "Smooth"
- local weld = Instance.new("Weld", pcmodel)
- weld.Name = "BaseToScreenHolder"
- weld.Part0 = base
- weld.Part1 = screen
- weld.C1 = CFrame.new(0, -3.6, 2.95) * CFrame.Angles(math.rad(20), 0, 0)
- local screen2 = Instance.new("Part", pcmodel)
- screen2.Name = "Screen"
- screen2.BrickColor = BrickColor.new("Really black")
- screen2.Size = Vector3.new(7.5, 4.5, 0.1)
- screen2.TopSurface = "Smooth"
- screen2.BottomSurface = "Smooth"
- local weld2 = Instance.new("Weld", pcmodel)
- weld2.Name = "ScreenHolderToScreen"
- weld2.Part0 = screen
- weld2.Part1 = screen2
- weld2.C1 = CFrame.new(0, 0, -0.2)
- spawn(function()
- for i = 0, 1.6, 0.2 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.4, 0, -0.2 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end)
- for i = 0, 1.6, 0.2 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.4, 0, -0.2 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- pcmodel.Parent = char
- pcmodel:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame * CFrame.new(0, 2.2, 3.5) * CFrame.Angles(0, math.pi, 0))
- pcmodel.PrimaryPart.Anchored = true
- wait(0.3)
- spawn(function()
- for i = 0, 1.6, 0.2 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- local start1 = torso["Right Shoulder"].C0
- for i = 1.4, 0, -0.2 do
- torso["Right Shoulder"].C0 = oldarmc2:lerp(start1, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end)
- spawn(function()
- for i = 0, 1.6, 0.2 do
- torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.31), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- local start2 = torso["Left Shoulder"].C0
- for i = 1.4, 0, -0.2 do
- torso["Left Shoulder"].C0 = oldarmc1:lerp(start2, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end)
- pcmodel.PrimaryPart.Anchored = false
- local vel = pcmodel.PrimaryPart.CFrame.LookVector
- pcmodel.PrimaryPart.Velocity = vel * -150 + Vector3.new(0, 50, 0)
- pcmodel.PrimaryPart.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") and hit.Parent:IsA("Model") and hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("isattracted") then
- local value = Instance.new("BoolValue", hit.Parent)
- value.Name = "isattracted"
- value.Value = true
- local sound = Instance.new("Sound", hit.Parent)
- sound.SoundId = "rbxassetid://575266163"
- sound.Volume = 5
- sound:Play()
- repeat
- wait(0.2)
- if hit.Parent and pcmodel then
- hit.Parent:SetPrimaryPartCFrame(pcmodel.PrimaryPart.CFrame * CFrame.new(0, 4.7, 0))
- end
- until not hit.Parent or not pcmodel
- end
- end)
- wait(0.3)
- pcmodel.Parent = workspace
- torso.Anchored = false
- attacking = false
- end
- if input.KeyCode == Enum.KeyCode.G and attacking == false then
- attacking = true
- local running = true
- spawn(function()
- repeat wait()
- if workspace:FindFirstChild("Baseplate") then
- workspace.Baseplate.Transparency = 1
- workspace.Baseplate.CanCollide = false
- end
- if workspace:FindFirstChild("Base") then
- workspace.Base.Transparency = 1
- workspace.Base.CanCollide = false
- end
- until running == false
- end)
- local newbase = Instance.new("Part", workspace)
- newbase.Anchored = true
- newbase.Size = Vector3.new(512, 20, 512)
- newbase.CFrame = CFrame.new(0, -10, 0)
- newbase.BrickColor = BrickColor.new("Bright green")
- newbase.Material = Enum.Material.Grass
- local sound = Instance.new("Sound", char)
- sound.SoundId = "rbxassetid://1120289188"
- sound.Volume = 2
- sound:Play()
- wait(3.8)
- local turn = 1
- for i = 1, 50 do
- wait(0.1)
- if turn == 1 then
- turn = 2
- newbase.CFrame = CFrame.Angles(math.rad(20), 0, 0)
- end
- if i == 49 then
- i = 50
- else
- wait(0.1)
- if turn == 2 then
- turn = 1
- newbase.CFrame = CFrame.Angles(math.rad(-20), 0, 0)
- end
- end
- end
- newbase.CFrame = CFrame.Angles(0, 0, 0)
- sound:Destroy()
- running = false
- attacking = false
- end
- if input.KeyCode == Enum.KeyCode.H and attacking == false and walking == false then
- attacking = true
- local torso = char.Torso
- torso.Anchored = true
- local pcmodel = Instance.new("Model")
- pcmodel.Name = "this is a good windows pc xdd"
- local base = Instance.new("Part", pcmodel)
- base.Name = "Bottom"
- base.BrickColor = BrickColor.new("Black")
- base.Size = Vector3.new(8.1, 0.4, 6.3)
- base.TopSurface = "Smooth"
- base.BottomSurface = "Smooth"
- pcmodel.PrimaryPart = base
- local screen = Instance.new("Part", pcmodel)
- screen.Name = "ScreenHolder"
- screen.BrickColor = BrickColor.new("Black")
- screen.Size = Vector3.new(8.1, 5.2, 0.4)
- screen.TopSurface = "Smooth"
- screen.BottomSurface = "Smooth"
- local weld = Instance.new("Weld", pcmodel)
- weld.Name = "BaseToScreenHolder"
- weld.Part0 = base
- weld.Part1 = screen
- weld.C1 = CFrame.new(0, -3.6, 2.95) * CFrame.Angles(math.rad(20), 0, 0)
- local screen2 = Instance.new("Part", pcmodel)
- screen2.Name = "Screen"
- screen2.BrickColor = BrickColor.new("Really black")
- screen2.Size = Vector3.new(7.5, 4.5, 0.1)
- screen2.TopSurface = "Smooth"
- screen2.BottomSurface = "Smooth"
- local weld2 = Instance.new("Weld", pcmodel)
- weld2.Name = "ScreenHolderToScreen"
- weld2.Part0 = screen
- weld2.Part1 = screen2
- weld2.C1 = CFrame.new(0, 0, -0.2)
- for i = 0, 1.6, 0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.6, 0 , -0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- char["Right Arm"].Anchored = true
- pcmodel.Parent = char
- pcmodel:SetPrimaryPartCFrame(char["Right Arm"].CFrame * CFrame.new(3, 0, -0.5) * CFrame.Angles(math.pi / 2, 0, math.pi))
- pcmodel.PrimaryPart.Anchored = true
- local sound = Instance.new("Sound", char)
- sound.SoundId = "rbxassetid://1650786609"
- sound.Volume = 1
- sound:Play()
- wait(0.3)
- local shoot = true
- spawn(function()
- repeat wait(0.05)
- local shootinfo = Ray.new(screen2.CFrame.p, (mouse.Hit.p - char["Right Arm"].CFrame.p).Unit * 300)
- local part, location = workspace:FindPartOnRay(shootinfo,char, false, true)
- local from = (screen2.CFrame.p - location).Magnitude
- local winshoot = Instance.new("Part", pcmodel)
- winshoot.Name = "windowslazer"
- local number = math.random(1, 4)
- if number == 1 then
- winshoot.BrickColor = BrickColor.new("Bright red")
- elseif number == 2 then
- winshoot.BrickColor = BrickColor.new("Bright green")
- elseif number == 3 then
- winshoot.BrickColor = BrickColor.new("Bright blue")
- end
- winshoot.Material = Enum.Material.Neon
- winshoot.Transparency = 0.5
- winshoot.Anchored = true
- winshoot.CanCollide = false
- winshoot.Size = Vector3.new(0.1, 0.1, from)
- winshoot.CFrame = CFrame.new((screen2.CFrame).p, mouse.Hit.p) * CFrame.new(0, 0, -from / 2)
- winshoot.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head.Position = hit.Parent.Head.Position + Vector3.new(0, 0.1, 0)
- end
- end)
- spawn(function()
- wait(0.2)
- winshoot:Destroy()
- end)
- until shoot == false
- end)
- wait(6)
- sound:Destroy()
- shoot = false
- pcmodel:Destroy()
- char["Right Arm"].Anchored = false
- for i = 0, 1.6, 0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- local start1 = torso["Right Shoulder"].C0
- for i = 1.4, 0, -0.2 do
- torso["Right Shoulder"].C0 = oldarmc2:lerp(start1, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- torso.Anchored = false
- attacking = false
- end
- if input.KeyCode == Enum.KeyCode.J and attacking == false then
- local tar = mouse.Target
- if tar and tar.Parent and tar.Parent:FindFirstChild("Head") then
- attacking = true
- local pcmodel = Instance.new("Model")
- pcmodel.Name = "this is a good windows pc xdd"
- local base = Instance.new("Part", pcmodel)
- base.Name = "Bottom"
- base.BrickColor = BrickColor.new("Black")
- base.Size = Vector3.new(8.1, 0.4, 6.3)
- base.TopSurface = "Smooth"
- base.BottomSurface = "Smooth"
- pcmodel.PrimaryPart = base
- local screen = Instance.new("Part", pcmodel)
- screen.Name = "ScreenHolder"
- screen.BrickColor = BrickColor.new("Black")
- screen.Size = Vector3.new(8.1, 5.2, 0.4)
- screen.TopSurface = "Smooth"
- screen.BottomSurface = "Smooth"
- local weld = Instance.new("Weld", pcmodel)
- weld.Name = "BaseToScreenHolder"
- weld.Part0 = base
- weld.Part1 = screen
- weld.C1 = CFrame.new(0, -3.6, 2.95) * CFrame.Angles(math.rad(20), 0, 0)
- local screen2 = Instance.new("Part", pcmodel)
- screen2.Name = "Screen"
- screen2.BrickColor = BrickColor.new("Really black")
- screen2.Size = Vector3.new(7.5, 4.5, 0.1)
- screen2.TopSurface = "Smooth"
- screen2.BottomSurface = "Smooth"
- local weld2 = Instance.new("Weld", pcmodel)
- weld2.Name = "ScreenHolderToScreen"
- weld2.Part0 = screen
- weld2.Part1 = screen2
- weld2.C1 = CFrame.new(0, 0, -0.2)
- pcmodel.Parent = workspace
- pcmodel:SetPrimaryPartCFrame(tar.Parent.Head.CFrame * CFrame.new(0, -1.5, 4) * CFrame.Angles(math.rad(-70), 0, 0))
- pcmodel.PrimaryPart.Anchored = true
- tar.Parent.Head.Anchored = true
- wait(0.7)
- local shutdown = Instance.new("Sound", tar.Parent)
- shutdown.SoundId = "rbxassetid://784747919"
- shutdown.Volume = 1
- shutdown:Play()
- for i = 1, 50 do
- tar.Parent.Head.CFrame = tar.Parent.Head.CFrame * CFrame.new(0, -0.1, 0)
- game:GetService("RunService").RenderStepped:Wait()
- end
- shutdown.Ended:Wait()
- if tar.Parent then
- tar.Parent:Destroy()
- end
- wait(0.4)
- pcmodel:Destroy()
- attacking = false
- end
- end
- if input.KeyCode == Enum.KeyCode.K and attacking == false then
- local tar = mouse.Target
- if tar and tar.Parent and tar.Parent:FindFirstChild("Head") then
- attacking = true
- local pcmodel = Instance.new("Model")
- pcmodel.Name = "this is a good windows pc xdd"
- local base = Instance.new("Part", pcmodel)
- base.Name = "Bottom"
- base.BrickColor = BrickColor.new("Black")
- base.Size = Vector3.new(8.1, 0.4, 6.3)
- base.TopSurface = "Smooth"
- base.BottomSurface = "Smooth"
- pcmodel.PrimaryPart = base
- local screen = Instance.new("Part", pcmodel)
- screen.Name = "ScreenHolder"
- screen.BrickColor = BrickColor.new("Black")
- screen.Size = Vector3.new(8.1, 5.2, 0.4)
- screen.TopSurface = "Smooth"
- screen.BottomSurface = "Smooth"
- local weld = Instance.new("Weld", pcmodel)
- weld.Name = "BaseToScreenHolder"
- weld.Part0 = base
- weld.Part1 = screen
- weld.C1 = CFrame.new(0, -3.6, 2.95) * CFrame.Angles(math.rad(20), 0, 0)
- local screen2 = Instance.new("Part", pcmodel)
- screen2.Name = "Screen"
- screen2.BrickColor = BrickColor.new("Really black")
- screen2.Size = Vector3.new(7.5, 4.5, 0.1)
- screen2.TopSurface = "Smooth"
- screen2.BottomSurface = "Smooth"
- local weld2 = Instance.new("Weld", pcmodel)
- weld2.Name = "ScreenHolderToScreen"
- weld2.Part0 = screen
- weld2.Part1 = screen2
- weld2.C1 = CFrame.new(0, 0, -0.2)
- pcmodel.Parent = workspace
- pcmodel:SetPrimaryPartCFrame(tar.Parent.Head.CFrame * CFrame.new(0, -1.5, 4) * CFrame.Angles(math.rad(-70), 0, 0))
- pcmodel.PrimaryPart.Anchored = true
- tar.Parent.Head.Anchored = true
- wait(0.7)
- local shutdown = Instance.new("Sound", tar.Parent)
- shutdown.SoundId = "rbxassetid://784747919"
- shutdown.Volume = 1
- shutdown:Play()
- for i = 1, 50 do
- if tar.Parent then
- tar.Parent.Head.CFrame = tar.Parent.Head.CFrame * CFrame.new(0, -0.1, 0)
- game:GetService("RunService").RenderStepped:Wait()
- end
- end
- wait(2.4)
- local sound = Instance.new("Sound", pcmodel)
- sound.SoundId = "rbxassetid://587166970"
- sound.Volume = 2
- sound:Play()
- if tar.Parent.PrimaryPart == nil then
- tar.Parent.PrimaryPart = tar.Parent.Head
- end
- tar.Parent:SetPrimaryPartCFrame(tar.Parent.Head.CFrame * CFrame.new(0, 10, 0))
- tar.Parent.Head.Anchored = false
- local t2 = Instance.new("BodyForce", tar.Parent.Head)
- t2.Force = Vector3.new(0, 600000, 0)
- local t = Instance.new("BodyThrust", tar.Parent.Head)
- t.Force = Vector3.new(0, 0, -200000)
- wait(0.5)
- t:Destroy()
- t2:Destroy()
- wait(3)
- attacking = false
- end
- end
- if input.KeyCode == Enum.KeyCode.L and attacking == false and walking == false then
- attacking = true
- local torso = char.Torso
- torso.Anchored = true
- for i = 0, 1.6, 0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- for i = 1.6, 0 , -0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- char["Right Arm"].Anchored = true
- local sound = Instance.new("Sound", char)
- sound.SoundId = "rbxassetid://987728667"
- sound.Volume = 2
- sound:Play()
- spawn(function()
- for i = 1, 10 do
- game:GetService("RunService").RenderStepped:Wait()
- local shootinfo = Ray.new(char["Right Arm"].CFrame.p, (mouse.Hit.p - char["Right Arm"].CFrame.p).Unit * 300)
- local part, location = workspace:FindPartOnRay(shootinfo,char, false, true)
- local from = (char["Right Arm"].CFrame.p - location).Magnitude
- local winshoot = Instance.new("Part", char)
- winshoot.Name = "windowslazer"
- local number = math.random(1, 4)
- if number == 1 then
- winshoot.BrickColor = BrickColor.new("Bright red")
- elseif number == 2 then
- winshoot.BrickColor = BrickColor.new("Bright green")
- elseif number == 3 then
- winshoot.BrickColor = BrickColor.new("Bright blue")
- end
- winshoot.Material = Enum.Material.Neon
- winshoot.Transparency = 0.5
- winshoot.Anchored = true
- winshoot.CanCollide = false
- winshoot.Size = Vector3.new(0.1, 0.1, from * 2)
- winshoot.CFrame = CFrame.new((char["Right Arm"].CFrame).p, mouse.Hit.p) * CFrame.new(0, 0, -from)
- spawn(function()
- repeat game:GetService("RunService").RenderStepped:Wait()
- if winshoot then
- winshoot.CFrame = winshoot.CFrame * CFrame.new(2, 0, 0)
- end
- if winshoot then
- winshoot.CFrame = winshoot.CFrame * CFrame.new(-2, 0, 0)
- end
- until not winshoot
- end)
- winshoot.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Head") then
- hit.Parent.Head.Position = hit.Parent.Head.Position + Vector3.new(0, 0.1, 0)
- end
- end)
- spawn(function()
- wait(0.2)
- winshoot:Destroy()
- end)
- end
- end)
- wait(0.6)
- char["Right Arm"].Anchored = false
- for i = 0, 1.6, 0.1 do
- torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.061), i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- local start1 = torso["Right Shoulder"].C0
- for i = 1.4, 0, -0.2 do
- torso["Right Shoulder"].C0 = oldarmc2:lerp(start1, i*i)
- game:GetService("RunService").RenderStepped:Wait()
- end
- wait(0.2)
- torso.Anchored = false
- attacking = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement