Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- player=owner
- local running=false
- function run()
- if running==false then
- running=true
- local lerp=.25
- name=nil
- oldpos = nil
- 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))
- camname = "<<"..player.Name..">>"
- local tweenservice = game:GetService("TweenService")
- local debris = game:GetService("Debris")
- HEA=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))
- timeposition=0
- armLeft=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))
- armRight=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))
- legLeft=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))
- legRight=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))
- torrso=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 remo1=false
- local remo2=false
- local remo3=false
- local remo4=false
- local remo5=false
- local remo6=false
- local remo7=false
- local remo8=false
- local remo9=false
- local remo10=false
- local remo11=false
- local remo12=false
- local shooting=false
- partenum={"FlagStand","Part"}
- function localscript()
- NLS([[
- player = game:GetService("Players").LocalPlayer
- mouse = player:GetMouse()
- Speed=3 --moving speed
- camstuff = false
- forward=false
- backward=false
- left=false
- right=false
- up=false
- down=false
- shooting=false
- model = "<<"..player.Name..">>"
- script.Disabled=true
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="k" then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem10 = camer:FindFirstChild('10')
- if rem10 then
- rem10:FireServer('reset')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="w" then
- camstuff=false
- forward=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="w" then
- forward=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="s" then
- camstuff=false
- backward=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="s" then
- backward=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="a" then
- camstuff=false
- left=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="a" then
- left=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="d" then
- camstuff=false
- right=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="d" then
- right=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="t" then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem2 = camer:FindFirstChild('2')
- if rem2 then
- rem2:FireServer('refit')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="j" then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem3 = camer:FindFirstChild('3')
- if rem3 then
- rem3:FireServer(mouse.Target)
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="m" then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem7 = camer:FindFirstChild('7')
- if rem7 then
- rem7:FireServer('get nilled')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="n" then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem4 = camer:FindFirstChild('4')
- if rem4 then
- rem4:FireServer('hehe die')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="l" then
- camstuff=false
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem5 = camer:FindFirstChild('5')
- if rem5 then
- rem5:FireServer('reset')
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="z" then
- camstuff=false
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem6 = camer:FindFirstChild('6')
- if rem6 then
- rem6:FireServer(mouse.Hit)
- end
- end
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="e" then
- camstuff=false
- up=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="e" then
- up=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="q" then
- camstuff=false
- down=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="q" then
- down=false
- end
- end)
- mouse.Button1Down:Connect(function(kk)
- shooting=true
- end)
- mouse.Button1Up:Connect(function(kk)
- shooting=false
- end)
- run = game:GetService("RunService")
- sec=2
- run.Heartbeat:Connect(function(ok)
- local WHAT=sec * ok
- local part = workspace.Terrain:FindFirstChild(model)
- if part then
- if shooting==true then
- --camstuff=true
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem11 = camer:FindFirstChild('11')
- if rem11 then
- rem11:FireServer(mouse.Hit)
- end
- local rem12 = camer:FindFirstChild('12')
- if rem12 then
- rem12:FireServer(mouse.Target)
- end
- end
- end
- end
- end)
- while true do
- wait(0.03)
- local part = workspace.Terrain:FindFirstChild(model)
- if part then
- local cam = workspace.CurrentCamera
- cam.CameraSubject=part
- local camOrientation = cam.CFrame-cam.CFrame.Position
- if forward==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,-Speed))
- end
- end
- end
- if backward==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,Speed)*CFrame.Angles(0,3.15,0))
- end
- end
- end
- if left==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(-Speed,0,0))
- end
- end
- end
- if right==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(Speed,0,0))
- end
- end
- end
- if up==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,Speed,0))
- end
- end
- end
- if down==true then
- local camer = workspace.Terrain:FindFirstChild(model)
- if camer then
- local rem1 = camer:FindFirstChild('1')
- if rem1 then
- rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,-Speed,0))
- end
- end
- end
- end
- end
- ]],player.Backpack)
- end
- function Move(die)
- for i,g in pairs(die:GetDescendants()) do
- if g:IsA("BasePart") then
- g.Position=Vector3.new(9e9,-100,9e9)
- end
- end
- end
- local kill=false
- local died=nil
- function Kill(g)
- if g then
- local ccc = g.Parent:FindFirstChildOfClass('Humanoid')
- if ccc then
- local mo = ccc.Parent
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- --[[
- for i,o in pairs(mo:GetDescendants()) do
- if o:IsA("BasePart") then
- mo.Parent=HHa
- end
- end
- ]]
- -- mo.Parent=HHa
- end
- mo:BreakJoints()
- ccc:Destroy()
- for i,v in pairs(g.Parent:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Parent=HHa
- v.Material='Neon'
- v.Color = Color3.fromRGB(0, 0, 0)
- local info = TweenInfo.new(1.5)
- local goal = {}
- goal.Transparency = 1
- local t = tweenservice:Create(v,info,goal)
- t:Play()
- local bp = Instance.new("BodyVelocity",v)
- bp.MaxForce = Vector3.new(0,9e9,0)
- t.Completed:Connect(function()
- local ball = Instance.new(partenum[math.random(1,#partenum)],HHa)
- ball.Shape = Enum.PartType.Ball
- ball.Size = Vector3.new(0,0,0)
- ball.CFrame = v.CFrame
- ball.Material = Enum.Material.Neon
- ball.Color = Color3.fromRGB(0, 0, 0)
- ball.Anchored = true
- ball.CanCollide = false
- ball.Massless = true
- debris:AddItem(ball,5)
- local info2 = TweenInfo.new(1.5)
- local goal2 = {}
- goal2.Size = Vector3.new(4,4,4)
- goal2.Transparency = 1
- local t2 = tweenservice:Create(ball,info2,goal2)
- t2:Play()
- v:Destroy()
- end)
- end
- end
- else
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- g.Parent=HHa
- g.Material='Neon'
- g.Color = Color3.fromRGB(0, 0, 0)
- local info = TweenInfo.new(1.5)
- local goal = {}
- goal.Transparency = 1
- local t = tweenservice:Create(g,info,goal)
- t:Play()
- local bp = Instance.new("BodyVelocity",g)
- bp.MaxForce = Vector3.new(9e9,9e9,9e9)
- t.Completed:Connect(function()
- local ball = Instance.new(partenum[math.random(1,#partenum)],HHa)
- ball.Shape = Enum.PartType.Ball
- ball.Size = Vector3.new(0,0,0)
- ball.CFrame = g.CFrame
- ball.Material = Enum.Material.Neon
- ball.Color = Color3.fromRGB(0, 0, 0)
- ball.Anchored = true
- ball.CanCollide = false
- ball.Massless = true
- debris:AddItem(ball,5)
- local info2 = TweenInfo.new(1.5)
- local goal2 = {}
- goal2.Size = Vector3.new(4,4,4)
- goal2.Transparency = 1
- local t2 = tweenservice:Create(ball,info2,goal2)
- t2:Play()
- g:Destroy()
- end)
- else
- g:Destroy()
- end
- end
- end
- end
- local ran=false
- local came = false
- local run = game:GetService("RunService")
- see=2
- run.Heartbeat:Connect(function(ok)
- local haha = see * ok
- local campart = workspace.Terrain:FindFirstChild(camname)
- if campart then
- local rem = campart:FindFirstChild('fgds')
- if rem then
- if came==true then
- came=false
- rem.OnServerEvent:Connect(function(pl, Position)
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=Position
- end
- end)
- end
- else
- local camrem = Instance.new("RemoteEvent",campart) camrem.Name="fgds"
- came=true
- end
- local rem1 = campart:FindFirstChild('1')
- if rem1 then
- if remo1==true then
- remo1=false
- rem1.OnServerEvent:Connect(function(plr, ThePosition)
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(ThePosition,lerp)
- end
- end)
- end
- else
- remo1=true
- local rem_1 = Instance.new("RemoteEvent",campart) rem_1.Name="1"
- end
- local rem2 = campart:FindFirstChild('2')
- if rem2 then
- if remo2==true then
- remo2=false
- rem2.OnServerEvent:Connect(function(plr, ok)
- char()
- end)
- end
- else
- remo2=true
- local rem_2 = Instance.new("RemoteEvent",campart) rem_2.Name="2"
- end
- local rem3 = campart:FindFirstChild('3')
- if rem3 then
- if remo3==true then
- remo3=false
- rem3.OnServerEvent:Connect(function(plr, target)
- if target.Parent.ClassName == "Model" then
- Move(target.Parent)
- elseif target.Parent.Parent.ClassName == "Model" then
- Move(target.Parent.Parent)
- end
- end)
- end
- else
- remo3=true
- local rem_3 = Instance.new("RemoteEvent",campart) rem_3.Name="3"
- end
- local rem4 = campart:FindFirstChild('4')
- if rem4 then
- if remo4==true then
- remo4=false
- rem4.OnServerEvent:Connect(function(plr, RIGHT)
- end)
- end
- else
- remo4=true
- local rem_4 = Instance.new("RemoteEvent",campart) rem_4.Name="4"
- end
- local rem5 = campart:FindFirstChild('5')
- if rem5 then
- if remo5==true then
- remo5=false
- rem5.OnServerEvent:Connect(function(plr, YES)
- campart:Destroy()
- local pla = workspace:FindFirstChild(NAme)
- if pla then
- pla:Destroy()
- else
- refit()
- end
- end)
- end
- else
- remo5=true
- local rem_5 = Instance.new("RemoteEvent",campart) rem_5.Name="5"
- end
- local rem6 = campart:FindFirstChild('6')
- if rem6 then
- if remo6==true then
- remo6=false
- rem6.OnServerEvent:Connect(function(plr, pos)
- local HHH = workspace:FindFirstChild(NAme)
- if HHH then
- HHH.CFrame=pos + Vector3.new(0,5,0)
- end
- end)
- end
- else
- remo6=true
- local rem_6 = Instance.new("RemoteEvent",campart) rem_6.Name="6"
- end
- local rem7 = campart:FindFirstChild('7')
- if rem7 then
- if remo7==true then
- remo7=false
- rem7.OnServerEvent:Connect(function(plr, something)
- local pp= game.Players:FindFirstChild(player.Name)
- if pp then
- print('not in use')
- end
- end)
- end
- else
- remo7=true
- local rem_7 = Instance.new("RemoteEvent",campart) rem_7.Name="7" --not in use
- end
- local rem8 = campart:FindFirstChild('8')
- if rem8 then
- if remo8==true then
- remo8=false
- rem8.OnServerEvent:Connect(function(plr, something)
- --not in use
- end)
- end
- else
- remo8=true
- local rem_8 = Instance.new("RemoteEvent",campart) rem_8.Name="8" --not in use
- end
- local rem9 = campart:FindFirstChild('9')
- if rem9 then
- if remo9==true then
- remo9=false
- rem9.OnServerEvent:Connect(function(plr, lookvector)
- --local HHa = workspace:FindFirstChild(NAme)
- --if HHa then
- -- HHa.CFrame=lookvector
- --end
- end)
- end
- else
- remo9=true
- local rem_9 = Instance.new("RemoteEvent",campart) rem_9.Name="9"
- end
- local rem10 = campart:FindFirstChild('10')
- if rem10 then
- if remo10==true then
- remo10=false
- rem10.OnServerEvent:Connect(function(plr, newpos)
- local Player = game.Players:FindFirstChild(player.Name)
- if Player then
- player:LoadCharacter() local hum = player.Character:FindFirstChild("HumanoidRootPart")
- if hum then
- oldpos=hum.CFrame
- end
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=oldpos
- end
- else
- local templat = workspace:FindFirstChildOfClass("Part")
- if templat then
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HHa.Position=templat.Position + Vector3.new(0,10,0)
- end
- else
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HHa.Position=Vector3.new(0,10,0)
- end
- end
- end
- end)
- end
- else
- remo10=true
- local rem_10 = Instance.new("RemoteEvent",campart) rem_10.Name="10"
- end
- local rem11 = campart:FindFirstChild('11')
- if rem11 then
- attack=false
- if remo11==true then
- remo11=false
- rem11.OnServerEvent:Connect(function(plr, target)
- if shooting==true then
- shooting=false
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- local arm = HHa:FindFirstChild(armRight)
- if arm then
- attack=true
- local coll = ColorSequence.new(Color3.new(0, 0, 0))
- local shot = HHa:FindFirstChild('boom')
- if shot then
- shot.TimePosition=.1
- shot:Play()
- else
- local shot = Instance.new("Sound",HHa) shot.SoundId="rbxassetid://6012216349" shot.PlaybackSpeed=.4 shot.TimePosition=.1 shot.Volume=9 shot.Name='boom' shot:Play()
- end
- local att = Instance.new("Attachment",workspace.Terrain) att.CFrame = arm.CFrame*CFrame.new(0,-.6,0)
- local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = target.Position
- local beam = Instance.new("Beam",arm) beam.Enabled=true beam.Color = coll
- beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2
- wait(.1)
- beam:Destroy() att2:Destroy() att:Destroy()
- end
- else
- print('nn')
- end
- end
- end)
- end
- else
- remo11=true
- local rem_11 = Instance.new("RemoteEvent",campart) rem_11.Name="11"
- end
- local rem12 = campart:FindFirstChild('12')
- if rem12 then
- if remo12==true then
- remo12=false
- rem12.OnServerEvent:Connect(function(plr, 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(NAme)
- if HHa then
- if target.Parent==HHa then
- else
- shooting=true
- Kill(target)
- end
- end
- end
- --[[
- if target.Parent.ClassName == "Model" then
- Kill(target.Parent)
- elseif target.Parent.Parent.ClassName == "Model" then
- shooting=true
- Kill(target.Parent.Parent)
- end
- ]]
- end
- end)
- end
- else
- remo12=true
- local rem_12 = Instance.new("RemoteEvent",campart) rem_12.Name="12"
- end
- end
- local pla = game.Players:FindFirstChild(player.Name)
- if pla then
- local cha = workspace:FindFirstChild(player.Name)
- if cha then
- char()
- localscript()
- end
- end
- end)
- function char()
- local pla = game.Players:FindFirstChild(player.Name)
- if pla then
- 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") mod.Name=name mod.Parent=nil
- player.Character=mod
- end
- end
- function camera()
- local cam = Instance.new("NegateOperation") cam.Name=camname cam.CanTouch=false cam.Size=Vector3.new(0,0,0) cam.Anchored=true cam.CanCollide=false
- local HHa = workspace:WaitForChild(NAme)
- if HHa then
- cam.CFrame=HHa.CFrame
- cam.Parent=workspace.Terrain
- else
- cam.Parent=workspace.Terrain
- end
- end
- function refithead()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- HEA=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 head = Instance.new(partenum[math.random(1,#partenum)],HHa) head.Name=HEA head.Size=Vector3.new(2,1,1) head.Anchored=true head.Color=Color3.new() head.Material=Enum.Material.Neon head.Reflectance=-2 head.CanTouch=false
- local mesh = Instance.new("SpecialMesh",head) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25) mesh.Name="Mesh"
- end
- end
- function refit_torso()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- torrso=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 rootpart = Instance.new(partenum[math.random(1,#partenum)],HHa) rootpart.Name=torrso rootpart.Anchored=true rootpart.CanCollide=true rootpart.Size=Vector3.new(2,2,1)
- rootpart.Color=Color3.new() rootpart.Material=Enum.Material.Neon rootpart.Reflectance=-1 rootpart.CanTouch=false
- end
- end
- function refit_rightleg()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- legRight=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 rightleg = Instance.new(partenum[math.random(1,#partenum)],HHa) rightleg.Name=legRight rightleg.Size=Vector3.new(1,2,1) rightleg.Anchored=true
- rightleg.Color=Color3.new() rightleg.Material=Enum.Material.Neon rightleg.Reflectance=-1 rightleg.CanTouch=false
- end
- end
- function refit_leftleg()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- legLeft=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 leftleg = Instance.new(partenum[math.random(1,#partenum)],HHa) leftleg.Name=legLeft leftleg.Size=Vector3.new(1,2,1) leftleg.Anchored=true
- leftleg.Color=Color3.new() leftleg.Material=Enum.Material.Neon leftleg.Reflectance=-1 leftleg.CanTouch=false
- end
- end
- function refit_rightarm()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- armRight=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 armright = Instance.new(partenum[math.random(1,#partenum)],HHa) armright.Name=armRight armright.Size=Vector3.new(1,2,1) armright.Anchored=true
- armright.Color=Color3.new() armright.Material=Enum.Material.Neon armright.Reflectance=-1 armright.CanTouch=false
- end
- end
- function refit_leftarm()
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- armLeft=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 armleft = Instance.new(partenum[math.random(1,#partenum)],HHa) armleft.Name=armLeft armleft.Size=Vector3.new(1,2,1) armleft.Anchored=true
- armleft.Color=Color3.new() armleft.Material=Enum.Material.Neon armleft.Reflectance=-1 armleft.CanTouch=false
- end
- end
- function refit()
- 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))..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 rootpart = Instance.new(partenum[math.random(1,#partenum)]) rootpart.Name=NAme rootpart.Anchored=true rootpart.CanCollide=true rootpart.CFrame=oldpos rootpart.Size=Vector3.new(0,0,0) rootpart.Transparency=1
- rootpart.CanTouch=false rootpart.Locked=true rootpart.Parent=workspace
- end
- game.Players.PlayerAdded:Connect(function(plr)
- if plr.Name==player.Name then
- player=plr
- wait(1)
- char()
- localscript()
- end
- end)
- if player.Character then
- local hum = player.Character:FindFirstChild("HumanoidRootPart")
- if hum then
- oldpos=hum.CFrame
- char()
- else
- print("too bad")
- end
- end
- second = 1
- up=.24
- thingy=false
- legs=2
- move=.4
- leftright=-0.05
- updown=0
- fun = 0
- Legs=1.9
- --animation stuff
- run.Heartbeat:Connect(function(HM)
- local what = second * HM
- wait(.54)
- if thingy==false then
- if up<0.00 then
- thingy=true
- else
- updown=updown-0.001
- fun=fun+0.001
- leftright=leftright+0.001
- move=move-0.001
- legs=legs-0.001
- up=up-0.002
- Legs=Legs+0.0014
- end
- end
- if thingy==true then
- if up<0.25 then
- up=up+0.002
- fun=fun-0.001
- updown=updown+0.001
- leftright=leftright-0.001
- legs=legs+0.001
- move=move+0.001
- Legs=Legs-0.0014
- else
- thingy=false
- end
- end
- end)
- local twist = .3
- local look = 0
- local what = 0
- local gl=.5
- local GL=.5
- local aa=0
- --glitches
- run.Heartbeat:Connect(function(HM)
- local what = second * HM
- local change = math.random(1,100)
- if change==40 then
- twist=-math.random()
- wait()
- twist=math.random()
- twist=-math.random()
- wait()
- gl=math.random()
- twist=math.random()
- twist=.3
- wait()
- GL=-math.random()
- aa=math.random()
- gl=math.random()
- gl=math.random()
- wait()
- GL=math.random()
- aa=-math.random()
- gl=math.random()
- GL=-math.random()
- gl=math.random()
- wait()
- gl=-math.random()
- GL=math.random()
- gl=math.random()
- gl=.5
- aa=0
- GL=.5
- end
- if change==40 then
- look=math.random()
- wait()
- look=-math.random()
- wait()
- look=math.random()
- look=-math.random()
- wait()
- look=0
- end
- if change==60 then
- wait()
- what=math.random()
- what=math.random()
- what=-math.random()
- what=math.random()
- wait()
- what=-math.random()
- wait()
- what=0
- end
- end)
- localscript()
- --Character setup and animation
- run.Heartbeat:Connect(function(HM)
- local what = second * HM
- local HHa = workspace:FindFirstChild(NAme)
- if HHa then
- local cam = workspace.Terrain:FindFirstChild(camname)
- if cam then
- cam.CFrame=HHa.CFrame
- else
- camera()
- end
- local sound = HHa:FindFirstChildOfClass("Sound")
- if sound then
- timeposition=sound.TimePosition
- else
- local music = Instance.new("Sound",HHa) music.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)) music.SoundId='rbxassetid://645716375' music.Volume=5 music.Looped=true music:Play() music.TimePosition=timeposition music.PlayBackSpeed=.8
- end
- local Tor = HHa:FindFirstChild(torrso)
- if Tor then
- Tor.CFrame=HHa.CFrame*CFrame.Angles(-.3, 0, 0)*CFrame.new(leftright,updown,fun)
- --joints
- local RIGHTleg = HHa:FindFirstChild(legRight)
- if RIGHTleg then
- RIGHTleg.CFrame=Tor.CFrame*CFrame.new(-.5,-Legs,-.2)*CFrame.Angles(.2, 0, 0)
- end
- local LEFTleg = HHa:FindFirstChild(legLeft)
- if LEFTleg then
- LEFTleg.CFrame=Tor.CFrame*CFrame.new(.5,-Legs,-.2)*CFrame.Angles(.2, 0, 0)
- end
- local RIGHTarm = HHa:FindFirstChild(armRight)
- if RIGHTarm then
- local bbeam = RIGHTarm:FindFirstChildOfClass('Beam')
- if bbeam then
- attack=true
- else
- attack=false
- end
- if attack==false then
- RIGHTarm.CFrame=HHa.CFrame*CFrame.new(-1.5,-up,-move)*CFrame.Angles(0,gl,0)
- else
- RIGHTarm.CFrame=HHa.CFrame*CFrame.new(-1.5,.24,-move)*CFrame.Angles(1.45,0,0)
- end
- end
- local LEFTarm = HHa:FindFirstChild(armLeft)
- if LEFTarm then
- LEFTarm.CFrame=HHa.CFrame*CFrame.new(1.5,-up,-.4)*CFrame.Angles(0,GL,0)
- end
- local HEAD = HHa:FindFirstChild(HEA)
- if HEAD then
- HEAD.CFrame=Tor.CFrame*CFrame.new(0,1.5,what)*CFrame.Angles(twist, look, what)
- end
- end
- end
- end)
- function refit_mesh()
- local HH = workspace:FindFirstChild(NAme)
- if HH then
- local hed = HH:FindFirstChild(HEA)
- if hed then
- local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25) 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
- end
- end
- run.Heartbeat:Connect(function(HM)
- local what = second * HM
- local HH = workspace:FindFirstChild(NAme)
- if HH then
- HH.Transparency=1
- oldpos=HH.CFrame
- local Torso = HH:FindFirstChild(torrso)
- if Torso then
- Torso.Anchored=true
- Torso.Color=Color3.new()
- else
- refit_torso()
- end
- local RightArm = HH:FindFirstChild(armRight)
- if RightArm then
- RightArm.Anchored=true
- RightArm.Color=Color3.new()
- else
- refit_rightarm()
- end
- local LeftArm = HH:FindFirstChild(armLeft)
- if LeftArm then
- LeftArm.Anchored=true
- LeftArm.Color=Color3.new()
- else
- refit_leftarm()
- end
- local LeftLeg = HH:FindFirstChild(legLeft)
- if LeftLeg then
- LeftLeg.Anchored=true
- LeftLeg.Color=Color3.new()
- else
- refit_leftleg()
- end
- local RightLeg = HH:FindFirstChild(legRight)
- if RightLeg then
- RightLeg.Anchored=true
- RightLeg.Color=Color3.new()
- else
- refit_rightleg()
- end
- local hhhead = HH:FindFirstChild(HEA)
- if hhhead then
- hhhead.Anchored=true
- hhhead.Color=Color3.new()
- local mesher = hhhead:FindFirstChildOfClass("SpecialMesh")
- if mesher then
- else
- refit_mesh()
- end
- local fac = hhhead:FindFirstChildOfClass("Texture")
- if fac then
- else
- local face = Instance.new("Texture",hhhead) --face.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))
- face.Texture='rbxassetid://26852961'
- end
- else
- refithead()
- end
- HH.Anchored=true
- oldpos=HH.CFrame
- else
- refit()
- end
- end)
- end
- end
- run()
Add Comment
Please, Sign In to add comment