Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local Scriptgui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Ghost = Instance.new("TextButton")
- local UAREANIDIOT = Instance.new("TextButton")
- -- Properties
- Scriptgui.Name = "Script gui"
- Scriptgui.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = Scriptgui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5
- Frame.Position = UDim2.new(0, 116, 0, 295)
- Frame.Size = UDim2.new(0, 511, 0, 139)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 511, 0, 47)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Script Gui Made By SHYIME"
- TextLabel.TextColor3 = Color3.new(0, 1, 0.933333)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- Ghost.Name = "Ghost"
- Ghost.Parent = Frame
- Ghost.BackgroundColor3 = Color3.new(1, 1, 1)
- Ghost.BackgroundTransparency = 0.5
- Ghost.Position = UDim2.new(0, 26, 0, 70)
- Ghost.Size = UDim2.new(0, 200, 0, 50)
- Ghost.Font = Enum.Font.SourceSans
- Ghost.FontSize = Enum.FontSize.Size14
- Ghost.Text = "Ghost"
- Ghost.TextColor3 = Color3.new(0, 1, 0.933333)
- Ghost.TextScaled = true
- Ghost.TextSize = 14
- Ghost.TextWrapped = true
- Ghost.MouseButton1Down:connect:(function()
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- function clerp(a,b,c,d)
- for i = 0,d,.01 do
- a.CFrame = CFrame.new(b:lerp(c,i))
- wait()
- end
- end
- function slerp(a2,b2,c2,d2)
- for i2 = 0,d2,.01 do
- a2.CFrame = CFrame.new(b2:lerp(c2,i2))
- wait()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and plr.Character.Parent == workspace then
- plr.Character.Parent = workspace.Camera
- plr.Character.Archivable = true
- Instance.new("ForceField",plr.Character).Visible = false
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 1
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 1
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 1
- end
- end
- elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
- elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
- if plr.Character.Torso.Anchored == true then
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = false
- end
- end
- else
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = true
- end
- end
- end
- elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Parent = workspace
- plr.Character.Archivable = false
- plr.Character:FindFirstChildOfClass("ForceField"):Remove()
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if plr.Character.Parent == workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = Instance.new("ParticleEmitter",part)
- particles.Color = ColorSequence.new(Color3.new(0,0,0))
- particles.Size = NumberSequence.new(1)
- particles.Texture = "rbxassetid://292289455"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(.2,.4)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 25
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end)
- touchCounter = 0
- while wait() do
- if plr.Character.Parent == workspace.Camera then
- local c = plr.Character:Clone()
- c:MakeJoints()
- for y,t in pairs(c:GetChildren()) do
- if t:IsA("Part") then
- t.CanCollide = false
- t.Anchored = true
- t.Transparency = .5
- t.TopSurface = "Smooth"
- t.BottomSurface = "Smooth"
- t.RightSurface = "Smooth"
- t.LeftSurface = "Smooth"
- t.FrontSurface = "Smooth"
- t.BackSurface = "Smooth"
- t.BrickColor = BrickColor.new("Really black")
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face:Remove()
- elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
- t.roblox:Remove()
- elseif t.Name == "HumanoidRootPart" then
- t:Remove()
- end
- else
- t:Remove()
- end
- end
- c.Parent = workspace
- game.Debris:AddItem(c,.05)
- end
- end
- end)
- UAREANIDIOT.Name = "U ARE AN IDIOT!"
- UAREANIDIOT.Parent = Frame
- UAREANIDIOT.BackgroundColor3 = Color3.new(1, 1, 1)
- UAREANIDIOT.BackgroundTransparency = 0.5
- UAREANIDIOT.Position = UDim2.new(0, 256, 0, 70)
- UAREANIDIOT.Size = UDim2.new(0, 200, 0, 50)
- UAREANIDIOT.Font = Enum.Font.SourceSans
- UAREANIDIOT.FontSize = Enum.FontSize.Size14
- UAREANIDIOT.Text = "Idiot gun"
- UAREANIDIOT.TextColor3 = Color3.new(0, 1, 0.933333)
- UAREANIDIOT.TextScaled = true
- UAREANIDIOT.TextSize = 14
- UAREANIDIOT.TextWrapped = true
- UAREANIDIOT.MouseButton1Down:connect:(function()
- ----------------------------------------
- -- Originally made by Alfederate :D --
- ----------------------------------------
- -- there's no time to explain! --
- local new=Instance.new
- local rad=math.rad
- local cf=CFrame.new
- local v3=Vector3.new
- local ang=function(x,y,z)
- return CFrame.Angles(rad(x),rad(y),rad(z))
- end
- local player=game:service'Players'.LocalPlayer
- local char=player.Character
- local cam=workspace.Camera
- local mouse=player:GetMouse()
- local weld=function(a,b,c0,c1)
- m=Instance.new('Motor',a)
- m.Part0=a
- m.Part1=b
- m.C0=c0
- m.C1=c1
- return m
- end
- snd='rbxassetid://283166091'
- beamm=Instance.new('Model',workspace)
- beamm.Name='beam'
- laser=false
- rs=Instance.new('Part',char)
- rs.Transparency=1
- rs.CanCollide=false
- rs.TopSurface,rs.BottomSurface=0,0
- rs.FormFactor=3
- rs.Size=Vector3.new(.5,.5,.5)
- ls=rs:Clone()
- ls.Parent=char
- rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
- lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
- raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
- law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
- s1=Instance.new('Sound',char)
- s1.Volume=1
- s1.Pitch=1
- s1.Looped=true
- s1.SoundId=snd
- particles={}
- local wep=new('Part',char)
- wep.FormFactor=3
- wep.CanCollide=false
- wep.Size=v3(1,3,1)
- wep.TopSurface,wep.BottomSurface=0,0
- local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
- local beam=wep:Clone()
- beam:ClearAllChildren()
- beam.Material='Neon'
- beam.BrickColor=BrickColor.new('Toothpaste')
- beam.Size=Vector3.new(3,3,1)
- beam.Transparency=.5
- beam.Anchored=true
- local ms=Instance.new('BlockMesh',beam)
- local inner=beam:Clone()
- inner.Transparency=0
- inner.Material='SmoothPlastic'
- inner.BrickColor=BrickColor.new('Navy blue')
- local ms2=inner.Mesh
- local expl=inner:Clone()
- expl.Mesh:Destroy()
- expl.Material='Neon'
- expl.BrickColor=BrickColor.new('Toothpaste')
- expl.Size=Vector3.new(11,11,11)
- expl.Transparency=.55
- pl=Instance.new('PointLight',expl)
- pl.Color=expl.BrickColor.Color
- pl.Range=pl.Range*2
- pl.Name='light'
- local br=pl.Range
- local exa=expl:Clone()
- exa.Size=Vector3.new(4,4,4)
- pl2=exa.light
- local part=exa:Clone()
- part.Size=Vector3.new(1.5,1.5,1.5)
- pl3=part.light
- pms=Instance.new('BlockMesh',part)
- char.Humanoid.Died:connect(function()
- laser=false
- beam.Parent=nil
- inner.Parent=nil
- expl.Parent=nil
- exa.Parent=nil
- s1:stop()
- end)
- mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
- laser=true
- s1.Volume=1
- s1:play()
- end end)
- mouse.Button1Up:connect(function()
- laser=false
- beam.Parent=nil
- inner.Parent=nil
- expl.Parent=nil
- exa.Parent=nil
- s1:stop()
- end)
- parti=0
- game:service'RunService'.Stepped:connect(function()
- parti=parti+1
- for i,v in pairs(particles) do
- v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
- v.Transparency=v.Transparency+.08
- if v.Transparency >= 1 then
- v:Destroy()
- table.remove(particles,i)
- else
- v.Parent=beamm
- end
- end
- a=cam.CoordinateFrame.p
- b=mouse.Hit.p
- mhitr=Ray.new(a,(b-a).unit*999)
- mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
- raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
- law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
- if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
- char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
- end
- if laser then
- beamm.Parent=workspace
- beam.Parent=beamm
- inner.Parent=beamm
- expl.Parent=beamm
- exa.Parent=beamm
- s1.Volume=s1.Volume-.002
- ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
- hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
- if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
- Instance.new('Explosion',workspace).Position=pos
- end
- if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
- e=Instance.new('Explosion',workspace)
- e.Position=pos
- e.BlastRadius=14
- e.BlastPressure=1e4
- end
- if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
- hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
- end
- if parti==math.floor(parti) then
- par=part:Clone()
- table.insert(particles,par)
- par.Parent=beamm
- par.Transparency=1-s1.Volume
- par.light.Range=br*s1.Volume
- par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
- end
- mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
- ms.Scale=v3(s1.Volume,s1.Volume,mag)
- ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
- beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
- inner.CFrame=beam.CFrame
- pl.Range=br*s1.Volume
- pl2.Range=br*s1.Volume
- expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
- expl.Transparency=math.random(40,60)/100
- expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
- exa.Size=v3(4,4,4)*s1.Volume
- exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
- char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement