Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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