Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --have we met before?
- --made by Protofer_S
- wait()
- player = owner
- script.Parent=nil
- local Name = ">>>"..player.Name.."<<<"
- local posname = '<<<<'..player.Name..'>>>>'
- local attack=false
- local shooting=false
- local run = game:GetService("RunService")
- local rate_second = 60
- local oldpos=nil
- local timeposition=0
- local soundid='rbxassetid://1986764073'
- partenum={"FlagStand","Part"}
- --local lerp=.8
- function localscript()
- NLS([[
- player = game:GetService("Players").LocalPlayer
- local run = game:GetService("RunService")
- local speed = .2
- local name = '>>>'..player.Name..'<<<'
- local posname= '<<<<'..player.Name..'>>>>'
- local rate = 50
- mouse = player:GetMouse()
- local shooting=false
- local forward=false
- local backward=false
- local Left=false
- local Right=false
- local up=false
- local down=false
- local position=nil
- local attack=false
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='m' then
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local rem4 = rempart:FindFirstChild('4')
- if rem4 then
- if attack==false then
- attack=true
- rem4:FireServer(true)
- else
- attack=false
- rem4:FireServer(false)
- end
- end
- end
- end
- end)
- run.RenderStepped:Connect(function(ok)
- local whats_this = rate*ok
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='l' then
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local rem2 = rempart:FindFirstChild('2')
- if rem2 then
- rem2:FireServer('switch')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='x' then
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local rem3 = rempart:FindFirstChild('3')
- if rem3 then
- rem3:FireServer('refit')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='w' then
- forward=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='w' then
- forward=false
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='s' then
- backward=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='s' then
- backward=false
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='a' then
- Left=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='a' then
- Left=false
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='d' then
- Right=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='d' then
- Right=false
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='e' then
- up=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='e' then
- up=false
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='q' then
- down=true
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='q' then
- down=false
- end
- end)
- mouse.Button1Down:Connect(function()
- shooting=true
- end)
- mouse.Button1Up:Connect(function()
- shooting=false
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='n' then
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local rem5 = rempart:FindFirstChild('5')
- if rem5 then
- rem5:FireServer('nil')
- end
- end end
- end)
- local camname=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='b' then
- local campart = workspace:FindFirstChild(camname)
- if campart then
- campart:Destroy()
- else
- cam()
- end
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key:lower()
- if key=='z' then
- local hh = workspace:FindFirstChild(camname)
- if hh then
- hh.Position=mouse.Hit.p + Vector3.new(0,5,0)
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key:lower()
- if key=='k' then
- local hh = workspace:FindFirstChild(camname)
- if hh then
- local templ = workspace:FindFirstChildOfClass('Part')
- if templ then
- hh.Position=templ.Position+Vector3.new(0,4,0)
- else
- hh.Position=Vector3.new(0,4,0)
- end
- end
- end
- end)
- function cam()
- camname=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- local camera = Instance.new('FlagStand') camera.Name=camname camera.Anchored=true camera.Size=Vector3.new(0,0,0) camera.Transparency=1
- local pos=workspace.Terrain:FindFirstChild(posname)
- if pos then
- position=pos
- camera.CFrame=pos.CFrame
- camera.Parent=workspace
- pos:Destroy()
- else
- camera.Parent=workspace camera.CFrame=position.CFrame
- end
- end
- run.RenderStepped:Connect(function(ok)
- local whats_this = rate*ok
- local Came = workspace.CurrentCamera
- local camOrientation = Came.CFrame-Came.CFrame.Position
- local campart = workspace:FindFirstChild(camname)
- if campart then
- campart.Anchored=true
- campart.CanCollide=false
- campart.Transparency=1
- position=campart
- Came.CameraSubject=campart
- if forward==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,0,-speed)
- end
- if backward==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,0,speed)*CFrame.Angles(0,3.15,0)
- end
- if Left==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(-speed,0,0)
- end
- if Right==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(speed,0,0)
- end
- if up==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,speed,0)
- end
- if down==true then
- campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,-speed,0)
- end
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local move = rempart:FindFirstChild('1')
- if move then
- move:FireServer(campart.CFrame)
- end
- end
- else
- cam()
- end
- end)
- while true do wait(.1)
- if attack==true then
- if shooting==true then
- local rempart = game.Chat:FindFirstChild(name)
- if rempart then
- local fire = rempart:FindFirstChild('shooter')
- if fire then
- fire:FireServer(mouse.Target)
- end
- end
- end
- end
- end
- ]],player.Backpack)
- end
- function gon()
- local model= Instance.new("Model",workspace) player.Character=model model.Parent=nil
- end
- localscript()
- function positioner(position)
- local pos = Instance.new("NegateOperation",workspace.Terrain) pos.Name=posname pos.Anchored=true pos.Transparency=1 pos.CanCollide=false pos.Size=Vector3.new(0,0,0)
- pos.Position=position
- end
- function remotepart()
- local PART = Instance.new("NegateOperation",game.Chat) PART.Name=Name
- end
- local Head_name = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function HeaD(tor)
- Head_name = 'head' local hed = Instance.new(partenum[math.random(1,#partenum)],tor) hed.Name=Head_name hed.Size=Vector3.new(1.2, 1.2, 1.2) hed.Anchored=true hed.Color=Color3.new() hed.CanTouch=false hed.Locked=true hed.CanCollide=false
- local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://4904532191"mesh.TextureId='http://www.roblox.com/asset/?id=4904528793' mesh.Scale = Vector3.new(1, 1, 1) mesh.Name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- end
- function top(Mod)
- local Top = Instance.new(partenum[math.random(1,#partenum)],Mod) Top.Size=Vector3.new(1.097, 1.251, 1.221) Top.Name='Top' Top.Shape=Enum.PartType.Cylinder Top.Material='Neon' Top.Color=Color3.new() Top.Anchored=true Top.CanTouch=false Top.Locked=true Top.CanCollide=false
- end
- function hat(Mod)
- local Hat = Instance.new(partenum[math.random(1,#partenum)],Mod) Hat.Name='Hat' Hat.Size=Vector3.new(0.131, 1.961, 1.961) Hat.Shape=Enum.PartType.Cylinder Hat.Anchored=true Hat.Color=Color3.new() Hat.CanTouch=true Hat.Locked=true Hat.Material='Neon' Hat.CanCollide=false
- end
- function mesh(h)
- local mesh = Instance.new("SpecialMesh",h) mesh.MeshId="rbxassetid://4904532191"mesh.TextureId='http://www.roblox.com/asset/?id=4904528793' mesh.Scale = Vector3.new(1, 1, 1) mesh.Name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- end
- local model_name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function model()
- model_name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- local mod = Instance.new("Model",workspace) mod.Name=model_name
- local shirt = Instance.new("Shirt",mod) shirt.ShirtTemplate='rbxassetid://676428254'
- local pant = Instance.new("Pants",mod) pant.PantsTemplate='rbxassetid://1723127756'
- end
- function shirt(m)
- local shirt = Instance.new("Shirt",m) shirt.ShirtTemplate='rbxassetid://676428254'
- end
- function pant(m)
- local pant = Instance.new("Pants",m) pant.PantsTemplate='rbxassetid://1723127756'
- end
- local Torso_name = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function torso(mod)
- Torso_name = 'Torso' local Torso = Instance.new(partenum[math.random(1,#partenum)],mod) Torso.Name=Torso_name Torso.Anchored=true Torso.Size=Vector3.new(2,2,1) Torso.Locked=true Torso.CanTouch=false
- local mus = Instance.new("Sound",Torso) mus.Volume=2 mus.Looped=true mus.SoundId=soundid mus.TimePosition=timeposition mus:Play()
- end
- arm1 = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function leftarm(mod)
- arm1 ='Left Arm'local armle = Instance.new(partenum[math.random(1,#partenum)],mod) armle.Name=arm1 armle.Size=Vector3.new(1,2,1) armle.Anchored=true
- armle.CanTouch=false armle.Locked=true armle.CanCollide=false
- end
- armr = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function rightarm(mod)
- armr = 'Right Arm'local righta = Instance.new(partenum[math.random(1,#partenum)],mod) righta.Size=Vector3.new(1,2,1) righta.Name=armr righta.Anchored=true righta.CanTouch=false righta.Locked=true righta.CanCollide=false
- end
- eye_one= string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function eyeone(h)
- eye_one= string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- local eye = Instance.new(partenum[math.random(1,#partenum)],h) eye.Size=Vector3.new(0.1, 0.65, 0.261) eye.Material='Neon' eye.Anchored=true eye.Name=eye_one eye.CanTouch=false eye.Locked=true
- local eyemesh = Instance.new("SpecialMesh",eye) eyemesh.MeshType=Enum.MeshType.Sphere eye.CanCollide=false
- end
- eye_two= string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function eyetwo(h)
- eye_two= string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- local eye = Instance.new(partenum[math.random(1,#partenum)],h) eye.Size=Vector3.new(0.1, 0.65, 0.261) eye.Material='Neon' eye.Anchored=true eye.Name=eye_two eye.CanTouch=false eye.Locked=true
- local eyemesh = Instance.new("SpecialMesh",eye) eyemesh.MeshType=Enum.MeshType.Sphere eye.CanCollide=false
- end
- rightname = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function rightleg(mod)
- rightname = 'Right Leg' local rightle = Instance.new(partenum[math.random(1,#partenum)],mod) rightle.Size=Vector3.new(1,2,1) rightle.Name=rightname rightle.Anchored=true
- rightle.CanTouch=true rightle.Locked=true rightle.CanCollide=false
- end
- leftname = string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- function leftleg(mod)
- leftname = 'Left Leg'
- local leftle = Instance.new(partenum[math.random(1,#partenum)],mod) leftle.Size=Vector3.new(1,2,1) leftle.Name=leftname leftle.Anchored=true
- leftle.CanTouch=false leftle.Locked=true leftle.CanCollide=false
- end
- function Kill(victim)
- local Model = workspace:FindFirstChild(model_name)
- if Model then
- local armr = Model:FindFirstChild(rightname)
- if armr then
- local size = victim.Size local CF = victim.CFrame local pos = victim.Position
- victim.CFrame=CFrame.new(10e10,10e10,10e10)
- victim:Destroy()
- if victim then
- local attach1 = Instance.new("Attachment",workspace.Terrain) attach1.Position=pos + Vector3.new(0,200,0)
- local attach2 = Instance.new("Attachment",workspace.Terrain) attach2.Position=pos + Vector3.new(math.random(-5,5),math.random(10,39),math.random(-5,5))
- local attach3 = Instance.new("Attachment",workspace.Terrain) attach3.Position=attach2.Position + Vector3.new(math.random(-5,5),math.random(10,39),math.random(-5,5))
- local attach4 = Instance.new("Attachment",workspace.Terrain) attach4.CFrame=CF
- local shot = Instance.new(partenum[math.random(1,#partenum)],Model) shot.Anchored=true shot.Position=attach4.Position shot.CanCollide=false shot.Size=Vector3.new(0,0,0)
- local mes = Instance.new("SpecialMesh",shot) mes.MeshId='rbxassetid://20329976' mes.Scale=Vector3.new(0.8, 0.3, 0.8)
- local beam1 = Instance.new("Beam",workspace.Terrain) beam1.Enabled=true beam1.Color=ColorSequence.new(Color3.new()) beam1.FaceCamera=true beam1.Attachment0=attach1 beam1.Attachment1=attach2
- local beam2 = Instance.new("Beam",workspace.Terrain) beam2.Enabled=true beam2.Color=ColorSequence.new(Color3.new()) beam2.FaceCamera=true beam2.Attachment0=attach2 beam2.Attachment1=attach3
- local beam3 = Instance.new("Beam",workspace.Terrain) beam3.Enabled=true beam3.Color=ColorSequence.new(Color3.new()) beam3.FaceCamera=true beam3.Attachment0=attach3 beam3.Attachment1=attach4
- local dead = Instance.new(partenum[math.random(1,#partenum)],Model) dead.Size=size dead.CFrame=CF dead.Material='Glass' dead.Color=Color3.new(0.666667, 0, 0) dead.CanCollide=false
- wait(.2)
- attach1:Destroy() attach2:Destroy() attach3:Destroy() attach4:Destroy()
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot.Transparency=shot.Transparency+.2
- mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
- wait(.1)
- shot:Destroy()
- end
- end
- end
- end
- local rem_one=false
- local rem_two=false
- local rem_three=false
- local rem_four=false
- local rem_five=false
- local rem_six=false
- local root = player.Character:FindFirstChild('HumanoidRootPart')
- if root then
- oldpos=root.Position
- positioner(oldpos)
- else
- local hed = player.Character:FindFirstChild("Head")
- if hed then
- oldpos=hed.Position
- positioner(oldpos)
- end
- end
- twist1 = 0 --*looks up: owo whats this?
- twist2 = 0 --moves head left and right
- twist3 = 0 --looks left and right*
- local twist4 = -.4
- local twist5=.2
- local twist6 = .4
- local stuff = {'.03','0','-.06','-.02','.05','-.08','.04','.06','.08','0'}
- local twister1 = {'-.36','-.45','-.42','-.46','-.34','-.44'}
- local twister2 = {'.36','.45','.42','.46','.34','.44'}
- local twister3 = {'.26','.25','.22','.26','.14','.24'}
- --twist haha i suck at animating
- run.Heartbeat:Connect(function(ok)
- local h = rate_second*ok
- twist1 = stuff[math.random(#stuff)]
- twist2 = stuff[math.random(#stuff)]
- twist3 = stuff[math.random(#stuff)]
- twist4 = twister1[math.random(#twister1)]
- twist5 = twister2[math.random(#twister2)]
- twist6 = twister3[math.random(#twister3)]
- end)
- local torso_updown=2
- local thingy=false
- local updownleg=2
- local updown=2
- local arm = 0.05
- run.Heartbeat:Connect(function(HM)
- local what = rate_second * HM
- if thingy==false then
- if torso_updown<1.5 then
- thingy=true
- else
- torso_updown=torso_updown-0.005
- updownleg=updownleg-0.0025
- updown=updown-0.0014
- arm=arm+0.002
- end
- end
- if thingy==true then
- if torso_updown<2 then
- torso_updown=torso_updown+0.005
- updownleg=updownleg+0.0025
- updown=updown+0.0014
- arm=arm-0.002
- else
- thingy=false
- end
- end
- end)
- local Fire = false
- local one=1
- local color= BrickColor.Random()
- Material = {Enum.Material.Neon,Enum.Material.Cobblestone,Enum.Material.Ice,Enum.Material.Brick,Enum.Material.Marble,Enum.Material.Wood,Enum.Material.WoodPlanks,Enum.Material.DiamondPlate,Enum.Material.Foil,Enum.Material.Granite,Enum.Material.Grass,Enum.Material.SmoothPlastic,Enum.Material.Plastic,Enum.Material.Sand,Enum.Material.Glass}
- --texture = {'rbxassetid://51995052','rbxassetid://235171742','rbxassetid://257526039','rbxassetid://463119983','rbxassetid://93908406','rbxassetid://1036132544','rbxassetid://430724035','rbxassetid://6199643524','rbxassetid://5219111979','rbxassetid://67331799'}
- local move = CFrame.new(0,0,0)
- run.Heartbeat:Connect(function(ok)
- local noice = rate_second*ok
- local char = workspace:FindFirstChild(player.Name)
- if char then
- gon()
- wait(.2)
- localscript()
- end
- local Model = workspace:FindFirstChild(model_name)
- if Model then
- local Pant=Model:FindFirstChildOfClass('Pants')
- if Pant then
- else
- pant(Model)
- end
- local Shirt=Model:FindFirstChildOfClass('Shirt')
- if Shirt then
- else
- shirt(Model)
- end
- local hum = Model:FindFirstChildOfClass('Humanoid')
- if hum then
- hum.DisplayName=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- else
- local h = Instance.new("Humanoid",Model) h.Name=model_name h.MaxHealth=0 h.Health=0 h.HealthDisplayType=Enum.HumanoidHealthDisplayType.AlwaysOff
- end
- local torsopart = Model:FindFirstChild(Torso_name)
- if torsopart then
- torsopart.Transparency=0
- local music = torsopart:FindFirstChildOfClass('Sound')
- if music then
- if music.IsPlaying then
- timeposition=music.TimePosition
- else
- music:Play() music.TimePosition=timeposition
- end
- music.SoundId=soundid
- else
- local mus = Instance.new("Sound",torsopart) mus.Volume=2 mus.Looped=true mus.SoundId=soundid mus.TimePosition=timeposition mus:Play()
- end
- color=BrickColor.Random()
- --remotestuff
- local Remotepart = game.Chat:FindFirstChild(Name)
- if Remotepart then
- local shoot = Remotepart:FindFirstChild('shooter')
- if shoot then
- if Fire==true then
- Fire=false
- shoot.OnServerEvent:Connect(function(pl, target)
- if target then
- local what =target.Size
- local size =what.x
- if what.y >= size then
- size = what.y
- end
- if what.z >= size then
- size = what.z
- end
- if size <= 30 then
- local HHa = workspace:FindFirstChild(model_name)
- if HHa then
- if target.Parent.Parent.Parent==HHa then
- else
- if target.Parent.Parent==HHa then
- else
- if target.Parent==HHa then
- else
- Kill(target)
- end
- end
- --Kill(target)
- end
- end
- end
- end
- end)
- end
- else
- local rem = Instance.new("RemoteEvent",Remotepart) rem.Name='shooter'
- Fire=true
- end
- local rem_5 = Remotepart:FindFirstChild('5')
- if rem_5 then
- if rem_five==true then
- rem_five=false
- rem_5.OnServerEvent:Connect(function(hm, nill)
- local pp= game.Players:FindFirstChild(player.Name)
- if pp then
- print('not in use')
- end
- end)
- end
- else
- local rem5 = Instance.new("RemoteEvent",Remotepart) rem5.Name='5'
- rem_five=true
- end
- local rem4 = Remotepart:FindFirstChild('4')
- if rem4 then
- if rem_four==true then
- rem_four=false
- rem4.OnServerEvent:Connect(function(pl,falsetrue)
- attack=falsetrue
- end)
- end
- else
- local rem_4 = Instance.new("RemoteEvent",Remotepart) rem_4.Name='4'
- rem_four=true
- end
- local rem3 = Remotepart:FindFirstChild('3')
- if rem3 then
- if rem_three==true then
- rem_three=false
- rem3.OnServerEvent:Connect(function(pl,something)
- local mm = workspace:FindFirstChild(model_name)
- if mm then
- mm:Destroy()
- end
- end)
- end
- else
- local rem_3 = Instance.new("RemoteEvent",Remotepart) rem_3.Name='3'
- rem_three=true
- end
- local rem2 = Remotepart:FindFirstChild('2')
- if rem2 then
- if rem_two==true then
- rem_two=false
- rem2.OnServerEvent:Connect(function(pl,music)
- if one==1 then
- one=2
- soundid='rbxassetid://4700081056'
- else
- if one==2 then
- one=3
- soundid='rbxassetid://943961217'
- else
- if one==3 then
- one=4
- soundid='rbxassetid://2630792822'
- else
- if one==4 then
- one=5
- soundid='rbxassetid://6506375470'
- else
- if one==5 then
- one=6
- soundid='rbxassetid://5983321651'
- else
- soundid='rbxassetid://1986764073'
- one=1
- end
- end
- end
- end
- end
- end)
- end
- else
- local rem2 = Instance.new("RemoteEvent",Remotepart) rem2.Name='2'
- rem_two=true
- end
- local rem1 = Remotepart:FindFirstChild('1')
- if rem1 then
- if rem_one==true then
- rem_one=false
- rem1.OnServerEvent:Connect(function(pl,Position)
- move=Position
- --torsopart.CFrame=Position + Vector3.new(0,-2,0)
- end)
- end
- else
- local rem_1 = Instance.new("RemoteEvent",Remotepart) rem_1.Name='1'
- rem_one=true
- end
- else
- remotepart()
- end
- --remotestuff
- --character and stuff
- -- torsopart.CFrame=torsopart.CFrame:Lerp(move + Vector3.new(0,-torso_updown,0),lerp)
- torsopart.CFrame=move + Vector3.new(0,-torso_updown,0)
- local a = move.X - torsopart.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- torsopart.Size=Vector3.new(2,2,1)
- torsopart.Material=Enum.Material.Glass
- torsopart.BrickColor=BrickColor.new("Medium stone grey")
- local Head = Model:FindFirstChild(Head_name)
- if Head then
- Head.Material=Enum.Material.Plastic
- Head.BrickColor=BrickColor.new("Medium stone grey")
- Head.Size=Vector3.new(1.2, 1.2, 1.2)
- Head.CFrame=torsopart.CFrame*CFrame.new(0,1.5,0)*CFrame.Angles(twist2,twist3,twist1)
- local a = move.X - Head.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- local Hat1 = Head:FindFirstChild('Hat')
- if Hat1 then
- Hat1.Color=Color3.new()
- Hat1.Material=Enum.Material.Neon
- Hat1.Size=Vector3.new(0.131, 1.961, 1.961)
- Hat1.Transparency=0
- Hat1.CFrame=Head.CFrame*CFrame.new(0,.26,0)*CFrame.Angles(0,0,1.64)
- local a = move.X - Hat1.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- local Hat2 = Hat1:FindFirstChild('Top')
- if Hat2 then
- Hat2.Color=Color3.new()
- Hat2.Material=Enum.Material.Neon
- Hat2.Transparency=0
- Hat2.Size=Vector3.new(1.097, 1.251, 1.221)
- Hat2.CFrame=Hat1.CFrame*CFrame.new(.6,0,0)*CFrame.Angles(0,0,0)
- local a = move.X - Hat2.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- top(Hat1)
- end
- else
- hat(Head)
- end
- local eye_1 = Head:FindFirstChild(eye_one)
- if eye_1 then
- eye_1.Transparency=0
- eye_1.BrickColor=color
- eye_1.Size=Vector3.new(0.1, 0.65, 0.261)
- eye_1.CFrame=Head.CFrame*CFrame.new(.16,.1,-.47)
- local a = move.X - eye_1.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- eyeone(Head)
- end
- local eye_2 = Head:FindFirstChild(eye_two)
- if eye_2 then
- eye_2.Transparency=0
- eye_2.BrickColor=color
- eye_2.Size=Vector3.new(0.1, 0.65, 0.261)
- eye_2.CFrame=Head.CFrame*CFrame.new(-.16,.1,-.47)
- local a = move.X - eye_2.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- eyetwo(Head)
- end
- local hmmesh = Head:FindFirstChildOfClass('SpecialMesh')
- if hmmesh then
- hmmesh.Scale = Vector3.new(1, 1, 1)
- else
- mesh(Head)
- end
- else
- HeaD(Model)
- end
- local rightArm = Model:FindFirstChild(armr)
- if rightArm then
- rightArm.Material=Enum.Material.Glass
- rightArm.BrickColor=BrickColor.new("Medium stone grey")
- rightArm.Size=Vector3.new(1,2,1)
- rightArm.Transparency=0
- if attack==true then
- rightArm.CFrame=torsopart.CFrame*CFrame.new(1.4,1,-.4)*CFrame.Angles(-4,twist4,twist6)
- else
- rightArm.CFrame=torsopart.CFrame*CFrame.new(1.4,-arm,0)*CFrame.Angles(twist5,twist4,twist6)
- end
- local a = move.X - rightArm.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- rightarm(Model)
- end
- local leftArm = Model:FindFirstChild(arm1)
- if leftArm then
- leftArm.Material=Enum.Material.Glass
- leftArm.BrickColor=BrickColor.new("Medium stone grey")
- leftArm.Size=Vector3.new(1,2,1)
- leftArm.Transparency=0
- leftArm.CFrame=torsopart.CFrame*CFrame.new(-1,0,.4)*CFrame.Angles(twist4,twist5,twist6)
- local a = move.X - leftArm.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- leftarm(Model)
- end
- local leftLeg = Model:FindFirstChild(leftname)
- if leftLeg then
- leftLeg.Material=Enum.Material.Glass
- leftLeg.BrickColor=BrickColor.new("Medium stone grey")
- leftLeg.Size=Vector3.new(1,2,1)
- leftLeg.Transparency=0
- leftLeg.CFrame=torsopart.CFrame*CFrame.new(-.5,-updown,.1)*CFrame.Angles(-.15,.05,0)
- local a = move.X - leftLeg.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- leftleg(Model)
- end
- local RightLeg = Model:FindFirstChild(rightname)
- if RightLeg then
- RightLeg.Material=Enum.Material.Glass
- RightLeg.BrickColor=BrickColor.new("Medium stone grey")
- RightLeg.Size=Vector3.new(1,2,1)
- RightLeg.Transparency=0
- RightLeg.CFrame=torsopart.CFrame*CFrame.new(.5,-updownleg, -.3)*CFrame.Angles(-.2,-.2,0)
- local a = move.X - RightLeg.CFrame.X
- if a >=50 then
- Model:Destroy()
- end
- if a<= -50 then
- Model:Destroy()
- end
- else
- rightleg(Model)
- end
- else
- torso(Model)
- end
- else
- model()
- end
- end)