Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- wait(0.5)
- local bin = script.Parent
- player = game:GetService("Players").LocalPlayer.Character
- rarm = player["Right Arm"]
- larm = player["Left Arm"]
- player.Humanoid.MaxHealth = 200
- local visible = true
- mouse=game:GetService("Players").LocalPlayer:GetMouse()
- parts = {}
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=='z' then
- prison()
- end
- if k=='r' then
- idk()
- end
- if k=='f' then
- duplicate()
- end
- if k=='e' then
- wall()
- end
- if k=='q' then
- laser()
- end
- end)
- function Check(pos)
- local hurt = false
- local players = game.Players:GetChildren()
- for i = 1, #players do
- if players[i].Character and hurt == false then
- local parts = players[i].Character:GetChildren()
- for q = 1, #parts do
- if parts[q].className == "Part" and hurt == false then
- local range = math.sqrt(math.pow(parts[q].Size.Z, 2) + math.sqrt(math.pow(parts[q].Size.X, 2) + math.pow(parts[q].Size.Y, 2)))
- if (found - parts[q].Position).magnitude <= range then
- hurt = true
- character=player.Character
- humanoid=character.Humanoid
- character.Torso.CFrame = character.Torso.CFrame*CFrame.Angles(2,2,2)
- humanoid:TakeDamage(50)
- humanoid.Sit = true
- end
- end
- end
- end
- end
- end
- function clean(min,thing2)
- while min.Humanoid.Health ~= 0 do
- local a = game.Players:GetChildren()
- for i = 1, #a do
- wait()
- if (a[i].Character.Torso.Position - thing2.Position).magnitude < 5 then
- a[i].Character.Humanoid:TakeDamage(5)
- end
- end
- wait()
- end
- min:remove()
- end
- function fire(v)
- local spawnPos = (tip2.CFrame * CFrame.new(0, 1, 0)).p
- local HitSpot = RayCast(spawnPos, v)
- local distance = (HitSpot - spawnPos).magnitude
- start = nil
- finish = nil
- local num = math.random(3, 10)
- for i = distance / num, distance, distance / num do
- if start == nil then
- start = tip2.CFrame.p
- elseif start ~= nil then
- start = finish
- end
- finish = CFrame.new(spawnPos, HitSpot)
- if i ~= distance then
- finish = (finish * CFrame.new(math.random(-5, 5), math.random(-1, 1), -i)).p
- else
- finish = HitSpot
- end
- local P = Instance.new("Part")
- P.Name = "Magic"
- P.formFactor = 0
- P.Size = Vector3.new(1, 1, (start - finish).magnitude)
- P.Parent = game.workspace
- P.BrickColor = BrickColor.new(1006)
- P.Anchored = true
- P.CanCollide = false
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Transparency = 0
- m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(.25, .25, 1)
- m.Offset = Vector3.new(0, -1000, 0)
- m.VertexColor = Vector3.new(math.huge, math.huge, math.huge)
- m.Parent = P
- P.CFrame = CFrame.new(start, finish)
- P.CFrame = P.CFrame * CFrame.new(0, 1000, P.Size.Z / -2)
- table.insert(parts, P)
- game:GetService("Debris"):AddItem(P, 2.5)
- end
- end
- function RayCast(start, v)
- local ray = Instance.new("Part")
- ray.Parent = game.workspace
- ray.Anchored = true
- ray.CFrame = CFrame.new(start)
- ray.Size = Vector3.new(1,1,1)
- ray.Shape = 0
- ray.BottomSurface = 0
- ray.TopSurface = 0
- ray.Name = "Magic"
- ray.Elasticity = 0
- ray.Reflectance = 0
- ray.Friction = 0
- ray.Transparency = 0
- local finding = true
- far = 1000
- while finding do
- far = far - 1
- if far > 0 then
- local see = ray.Position + v
- ray.Position = ray.Position + v
- if ray.Position ~= see then
- finding = false
- found = see
- end
- else
- finding = false
- found = ray.Position
- end
- end
- ray:remove()
- Check(found)
- return found
- end
- function kill(tar)
- while tar.Parent.Humanoid.Health ~= 0 do
- tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health -1
- wait()
- end
- end
- if player.Torso:findFirstChild("Right Shoulder") ~= nil then
- rs = player.Torso["Right Shoulder"]
- rs.Part1 = nil
- end
- if player.Torso:findFirstChild("Left Shoulder") ~= nil then
- ls = player.Torso["Left Shoulder"]
- ls.Part1 = nil
- end
- if player:FindFirstChild("check") == nil then
- rns = Instance.new("Weld")
- rns.Parent = player.Torso
- rns.Part0 = rns.Parent
- rns.Part1 = player["Right Arm"]
- rns.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- lns = Instance.new("Weld")
- lns.Parent = player.Torso
- lns.Part0 = lns.Parent
- lns.Part1 = player["Left Arm"]
- lns.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
- rblade = Instance.new("Part")
- rblade.BrickColor = BrickColor.new(1003)
- rblade.Name ="check"
- rblade.Parent = player
- rblade.CanCollide = false
- rblade.Size = Vector3.new(1,8,1)
- rblade.formFactor = "Symmetric"
- rblade.TopSurface = 0
- rblade.BottomSurface = 0
- rbm = Instance.new("BlockMesh")
- rbm.Parent = rblade
- rbm.Scale = Vector3.new(.4,1,.4)
- rbw = Instance.new("Weld")
- rbw.Parent = rblade
- rbw.Part0 = rarm
- rbw.Part1 = rblade
- rbw.C1 = CFrame.new(0,0,1) *CFrame.Angles((math.pi*.5),(math.pi*0),(math.pi*0))
- tip = Instance.new("Part")
- tip.CanCollide = false
- tip.TopSurface = 0
- tip.BottomSurface = 0
- tip.Parent = rblade
- tip.Size = Vector3.new(1,1,1)
- tip.formFactor = "Symmetric"
- tip.BrickColor = BrickColor.new(1004)
- tipm = Instance.new("BlockMesh")
- tipm.Scale = Vector3.new(.41,.2,.41)
- tipm.Parent = tip
- tipw = Instance.new("Weld")
- tipw.Parent = rblade
- tipw.Part0 = rblade
- tipw.Part1 = tip
- tipw.C1 = CFrame.new(0,3.5,0)
- tip2 = Instance.new("Part")
- tip2.CanCollide = false
- tip2.TopSurface = 0
- tip2.BottomSurface = 0
- tip2.Parent = rblade
- tip2.Size = Vector3.new(1,1,1)
- tip2.formFactor = "Symmetric"
- tip2.BrickColor = BrickColor.new(1004)
- tip2m = Instance.new("BlockMesh")
- tip2m.Scale = Vector3.new(.41,.2,.41)
- tip2m.Parent = tip2
- tip2w = Instance.new("Weld")
- tip2w.Parent = rblade
- tip2w.Part0 = rblade
- tip2w.Part1 = tip2
- tip2w.C1 = CFrame.new(0,-3.5,0)
- tip3 = Instance.new("Part")
- tip3.CanCollide = false
- tip3.TopSurface = 0
- tip3.BottomSurface = 0
- tip3.Parent = rblade
- tip3.Size = Vector3.new(1,1,1)
- tip3.formFactor = "Symmetric"
- tip3.BrickColor = BrickColor.new(1004)
- tip3m = Instance.new("BlockMesh")
- tip3m.Scale = Vector3.new(.41,.2,.41)
- tip3m.Parent = tip3
- tip3w = Instance.new("Weld")
- tip3w.Parent = rblade
- tip3w.Part0 = rblade
- tip3w.Part1 = tip3
- tip3w.C1 = CFrame.new(0,-.5,0)
- tip4 = Instance.new("Part")
- tip4.CanCollide = false
- tip4.TopSurface = 0
- tip4.BottomSurface = 0
- tip4.Parent = rblade
- tip4.Size = Vector3.new(1,1,1)
- tip4.formFactor = "Symmetric"
- tip4.BrickColor = BrickColor.new(1004)
- tip4m = Instance.new("BlockMesh")
- tip4m.Scale = Vector3.new(.41,.2,.41)
- tip4m.Parent = tip4
- tip4w = Instance.new("Weld")
- tip4w.Parent = rblade
- tip4w.Part0 = rblade
- tip4w.Part1 = tip4
- tip4w.C1 = CFrame.new(0,.5,0)
- tip5 = Instance.new("Part")
- tip5.CanCollide = false
- tip5.TopSurface = 0
- tip5.BottomSurface = 0
- tip5.Parent = rblade
- tip5.Size = Vector3.new(1,1,1)
- tip5.formFactor = "Symmetric"
- tip5.BrickColor = BrickColor.new(1004)
- tip5m = Instance.new("BlockMesh")
- tip5m.Scale = Vector3.new(.41,.2,.41)
- tip5m.Parent = tip5
- tip5w = Instance.new("Weld")
- tip5w.Parent = rblade
- tip5w.Part0 = rblade
- tip5w.Part1 = tip5
- tip5w.C1 = CFrame.new(0,0,0)
- tip6 = Instance.new("Part")
- tip6.CanCollide = false
- tip6.TopSurface = 0
- tip6.BottomSurface = 0
- tip6.Parent = rblade
- tip6.Size = Vector3.new(1,1,1)
- tip6.formFactor = "Symmetric"
- tip6.BrickColor = BrickColor.new(1004)
- tip6m = Instance.new("BlockMesh")
- tip6m.Scale = Vector3.new(.05,.6,.41)
- tip6m.Parent = tip6
- tip6w = Instance.new("Weld")
- tip6w.Parent = rblade
- tip6w.Part0 = rblade
- tip6w.Part1 = tip6
- tip6w.C1 = CFrame.new(0,-3,0)
- tip7 = Instance.new("Part")
- tip7.CanCollide = false
- tip7.TopSurface = 0
- tip7.BottomSurface = 0
- tip7.Parent = rblade
- tip7.Size = Vector3.new(1,1,1)
- tip7.formFactor = "Symmetric"
- tip7.BrickColor = BrickColor.new(1004)
- tip7m = Instance.new("BlockMesh")
- tip7m.Scale = Vector3.new(.41,.6,.05)
- tip7m.Parent = tip7
- tip7w = Instance.new("Weld")
- tip7w.Parent = rblade
- tip7w.Part0 = rblade
- tip7w.Part1 = tip7
- tip7w.C1 = CFrame.new(0,-3,0)
- tip6a = Instance.new("Part")
- tip6a.CanCollide = false
- tip6a.TopSurface = 0
- tip6a.BottomSurface = 0
- tip6a.Parent = rblade
- tip6a.Size = Vector3.new(1,1,1)
- tip6a.formFactor = "Symmetric"
- tip6a.BrickColor = BrickColor.new(1004)
- tip6am = Instance.new("BlockMesh")
- tip6am.Scale = Vector3.new(.15,.6,.41)
- tip6am.Parent = tip6a
- tip6aw = Instance.new("Weld")
- tip6aw.Parent = rblade
- tip6aw.Part0 = rblade
- tip6aw.Part1 = tip6a
- tip6aw.C1 = CFrame.new(0,-2.5,0)
- tip7a = Instance.new("Part")
- tip7a.CanCollide = false
- tip7a.TopSurface = 0
- tip7a.BottomSurface = 0
- tip7a.Parent = rblade
- tip7a.Size = Vector3.new(1,1,1)
- tip7a.formFactor = "Symmetric"
- tip7a.BrickColor = BrickColor.new(1004)
- tip7am = Instance.new("BlockMesh")
- tip7am.Scale = Vector3.new(.41,.6,.15)
- tip7am.Parent = tip7a
- tip7aw = Instance.new("Weld")
- tip7aw.Parent = rblade
- tip7aw.Part0 = rblade
- tip7aw.Part1 = tip7a
- tip7aw.C1 = CFrame.new(0,-2.5,0)
- tip6b = Instance.new("Part")
- tip6b.CanCollide = false
- tip6b.TopSurface = 0
- tip6b.BottomSurface = 0
- tip6b.Parent = rblade
- tip6b.Size = Vector3.new(1,1,1)
- tip6b.formFactor = "Symmetric"
- tip6b.BrickColor = BrickColor.new(1004)
- tip6bm = Instance.new("BlockMesh")
- tip6bm.Scale = Vector3.new(.05,.6,.41)
- tip6bm.Parent = tip6b
- tip6bw = Instance.new("Weld")
- tip6bw.Parent = rblade
- tip6bw.Part0 = rblade
- tip6bw.Part1 = tip6b
- tip6bw.C1 = CFrame.new(0,-2,0)
- tip7b = Instance.new("Part")
- tip7b.CanCollide = false
- tip7b.TopSurface = 0
- tip7b.BottomSurface = 0
- tip7b.Parent = rblade
- tip7b.Size = Vector3.new(1,1,1)
- tip7b.formFactor = "Symmetric"
- tip7b.BrickColor = BrickColor.new(1004)
- tip7bm = Instance.new("BlockMesh")
- tip7bm.Scale = Vector3.new(.41,.6,.05)
- tip7bm.Parent = tip7b
- tip7bw = Instance.new("Weld")
- tip7bw.Parent = rblade
- tip7bw.Part0 = rblade
- tip7bw.Part1 = tip7b
- tip7bw.C1 = CFrame.new(0,-2,0)
- --[[
- rblade.Touched:connect(function(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name ~= player.Name then
- if hit.Parent.Humanoid.MaxHealth > 100 then
- hit.Parent.Humanoid.MaxHealth = 100
- end
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,15)
- hit.Parent.Humanoid.Sit = true
- for i = 1, (math.random(1,3)) do
- wait()
- local bleed = Instance.new("Part")
- bleed.formFactor = "Symmetric"
- bleed.Size = Vector3.new(1,1,1)
- bleed.BrickColor = BrickColor.new(1004)
- bleed.TopSurface = 0
- bleed.BottomSurface = 0
- bleed.Reflectance = .1
- bleed.Transparency = 0
- bleed.Parent = workspace
- bleed.Position = rblade.Position
- local bleedm = Instance.new("SpecialMesh")
- bleedm.MeshType = "Sphere"
- bleedm.Scale = Vector3.new(.5,.5,.5)
- bleedm.Parent = bleed
- game:GetService("Debris"):AddItem(bleed, 5)
- end
- end
- end
- end)
- ]]--
- end
- -- animations--
- right = rns
- staff = rblade
- left = lns
- up = "right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))"
- down = "right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))"
- -- end of staff
- --mouse.KeyDown:connect(function(key)
- -- moves
- --[[
- if key == "z" then
- if rbw.Part0 == rarm then
- rbw.Part0 = larm
- end
- end
- if key == "x" then
- if rbw.Part0 == larm then
- rbw.Part0 = rarm
- end
- end
- ]]--
- --[[
- if key == "e" then
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
- wait(.5)
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- elseif key == "q" then
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
- wait()
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
- wait()
- left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
- wait()
- left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
- wait()
- left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
- wait()
- left.C1 = CFrame.new(1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*.25))
- wait(.5)
- left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
- wait()
- left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
- wait()
- left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
- wait()
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
- wait()
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
- elseif key == "r" then
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
- wait()
- left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.3))
- wait()
- left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.35))
- wait()
- left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.4))
- wait()
- left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.45))
- wait()
- left.C1 = CFrame.new(0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.5))
- wait(.2)
- left.C1 = CFrame.new(0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.5))
- wait()
- left.C1 = CFrame.new(0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.5))
- wait()
- left.C1 = CFrame.new(0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.5))
- wait()
- left.C1 = CFrame.new(0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.5))
- wait()
- left.C1 = CFrame.new(0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*.5))
- wait(.1)
- left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.45))
- wait()
- left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.4))
- wait()
- left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.35))
- wait()
- left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.3))
- wait()
- left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
- elseif key == "t" then
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.3))
- wait()
- right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.35))
- wait()
- right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.4))
- wait()
- right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.45))
- wait()
- right.C1 = CFrame.new(-0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.5))
- wait(.2)
- right.C1 = CFrame.new(-0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.5))
- wait()
- right.C1 = CFrame.new(-0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.5))
- wait()
- right.C1 = CFrame.new(-0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.5))
- wait()
- right.C1 = CFrame.new(-0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.5))
- wait()
- right.C1 = CFrame.new(-0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*-.5))
- wait(.1)
- right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.45))
- wait()
- right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.4))
- wait()
- right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.35))
- wait()
- right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.3))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- end
- ]]--
- -- spells-------------------------------------------------------------------------------------
- function explosionlol()
- if mouse.Target then
- if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
- local tar = mouse.Target
- local spark = Instance.new("Explosion")
- spark.BlastRadius = 4
- spark.BlastPressure = 0
- spark.Parent = workspace
- spark.Position = tip2.Position
- local ptar = tar.Parent
- local mis = Instance.new("Part")
- mis.formFactor = "Symmetric"
- mis.Shape = "Ball"
- mis.BrickColor = BrickColor.new(1006)
- mis.Transparency = .5
- mis.Size = Vector3.new(1,1,1)
- mis.Parent = workspace
- mis.CFrame = staff.CFrame * CFrame.new(0,0,-15)
- local misv = Instance.new("BodyVelocity")
- misv.Parent = mis
- misv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- misv.velocity = mis.CFrame.lookVector * 50
- local misg = Instance.new("BodyGyro")
- misg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- misg.Parent = mis
- misg.cframe = CFrame.new(tar.Position, mis.Position)
- mis.Touched:connect(function(hit)
- if hit.Name == tar.Name then
- local ex = Instance.new("Explosion")
- ex.Parent = workspace
- ex.Position = mis.Position
- mis:remove()
- end
- end)
- wait(.5)
- while mis.Parent == workspace and tar:IsDescendantOf(workspace) do
- wait()
- misg.cframe = CFrame.new(tar.Position, mis.Position)
- local fire = Instance.new("Explosion")
- fire.Parent = workspace
- fire.Position = mis.Position
- fire.BlastRadius = 2
- misv.velocity = mis.CFrame.lookVector * -18
- end
- mis:remove()
- end
- end
- end
- function rock() -- key q
- for i = 1,100 do
- wait()
- local p = Instance.new("Part")
- p.BrickColor = BrickColor.new(1006)
- p.Name ="check"
- p.Parent = workspace
- p.CanCollide = false
- p.Size = Vector3.new(1,3,1)
- p.CFrame = player.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
- p.formFactor = "Symmetric"
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Transparency = .5
- local pm = Instance.new("SpecialMesh")
- pm.Parent = p
- pm.MeshType = "Sphere"
- pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
- local pbv = Instance.new("BodyVelocity")
- pbv.Parent = p
- pbv.velocity = Vector3.new(0,10,0)
- game:GetService("Debris"):AddItem(p, .2)
- player.Humanoid.Health = player.Humanoid.Health +2
- end
- player.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
- wait(.5)
- end
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=Instance.new("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=tip6a.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=Instance.new(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function rayCast(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- prt.CanCollide = false
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh,num)
- for i=0,1,delay do
- swait()
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,(math.random(0,1)+math.random())/5)
- end
- function Machinegun(Prt,Parent)
- --attack=true
- local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Bright green"),"Effect",vt(0.2,0.2,0.2))
- efprt.Anchored=true
- local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
- local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-mouse.Hit.p).magnitude/40
- coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
- game:GetService("Debris"):AddItem(Part,6)
- local TheHit=mouse.Hit.p
- local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded/170)
- local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
- --local pos=rayCast(P.Parent.Position,Player:GetMouse().Hit.p).lookVector
- local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.5))
- tefprt.CFrame=cf(pos)
- MagicCircle(BrickColor.new("Light blue"),cf(pos),0,0.5,0.5,0.5,0.5,0.5,0.02)
- game:GetService("Debris"):AddItem(tefprt,3)
- Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
- if(hit.Parent:FindFirstChild("Humanoid")~= nil)then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= player.Name then
- hit:BreakJoints()
- end
- end
- local mag=(Prt.Position-pos).magnitude
- for i=1,3 do
- MagicRing(BrickColor.new("Dark blue"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.02)
- end
- for i=1,8 do
- local tehcf=CFrame.new((Part.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
- MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.02)
- end
- --[[
- for i=0,5 do
- local tehcf=CFrame.new((Part.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
- MagicRing(BrickColor.new("Neon orange"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
- end
- ]]-- --
- MagicCylinder(BrickColor.new("Light blue"),Part.CFrame,1,mag*5,0.5,2.15,0,0.5,0.02)
- local particleemitter = Instance.new("ParticleEmitter", hit)
- particleemitter.Texture = "http://www.roblox.com/asset/?id=321556991"
- --particleemitter.ZOffset = Vector3.new(1,1,10)
- --particleemitter.EmissionDirection = "Front"
- particleemitter.VelocitySpread = 360
- particleemitter.LockedToPart = true
- particleemitter.Lifetime = NumberRange.new(0.65)
- particleemitter.Speed = NumberRange.new(40)
- particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
- particleemitter.RotSpeed = NumberRange.new(-180, 180)
- particleemitter.Rate = 1000
- particleemitter.Rotation = NumberRange.new(-45, 45)
- particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter.LightEmission = 0
- particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
- wait(0.1)
- particleemitter.Rate = 0
- Part.Parent=nil
- end),efprt,efmsh,spread)
- end
- function laser()-- key r pls
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
- Machinegun(tip6a)--fire1
- local moosick2 = Instance.new("Sound",tip6a)
- moosick2.SoundId = "rbxassetid://1624609598"
- --142653441, 175067863, 177058852
- moosick2.Looped = false
- moosick2.Pitch = 1
- moosick2.Volume = 5
- moosick2:Play()
- wait()
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- end
- function duplicate() -- key f pls
- local tar = mouse.Target
- if tar ~= nil then
- if (tip6a.Position - tar.Position).magnitude < 100 then
- right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
- local shot = Instance.new("Part")
- shot.Parent = workspace
- shot.BrickColor = BrickColor.new("Royal purple")
- shot.formFactor = "Symmetric"
- shot.Size = Vector3.new(1,1,1)
- shot.Anchored = true
- local shotm = Instance.new("BlockMesh")
- shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude)
- shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p)
- shotm.Parent = shot
- if tar.className == "Part" then
- local ice = Instance.new("Part")
- ice.CFrame = tar.CFrame
- ice.Size = tar.Size + Vector3.new(1,1,1)
- ice.Anchored = true
- tar.Anchored = true
- ice.BrickColor = BrickColor.new("Cyan")
- ice.Reflectance = .2
- ice.TopSurface = 0
- ice.BottomSurface = 0
- ice.Transparency = .5
- ice.Parent = tar
- ice.Friction = 0
- game:GetService("Debris"):AddItem(ice, 10)
- wait(.1)
- shot:remove()
- wait(.5)
- end
- end
- end
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- end
- function wall()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
- for i = 2,101 do
- wait()
- local boulder = Instance.new("Part")
- boulder.TopSurface = 0
- boulder.BottomSurface = 0
- boulder.Anchored = true
- boulder.BrickColor = BrickColor.new("Dark stone grey")
- boulder.Size = Vector3.new((i+math.random(-1,1)),(i+math.random(-1,1)),2)
- boulder.CFrame = tip.CFrame * CFrame.new(0,0,-2*i)
- boulder.Velocity = boulder.CFrame.lookVector * 500
- boulder.Material = "Slate"
- boulder.Parent = workspace
- boulder.Touched:connect(function(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- hit.Parent.humanoid.Sit = true
- end
- end)
- game:GetService("Debris"):AddItem(boulder, .8)
- end
- right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
- wait()
- right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
- wait()
- right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
- wait()
- right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
- end
- function idk() --key n pls
- local tar = mouse.Target
- if tar~= nil then
- if tar.Parent:findFirstChild("Humanoid") ~= nil then
- if tar.Parent:findFirstChild("Torso") ~= nil then
- for i = 1,100 do
- wait()
- local p = Instance.new("Part")
- p.BrickColor = BrickColor.new(1006)
- p.Name ="check"
- p.Parent = workspace
- p.CanCollide = false
- p.Size = Vector3.new(1,3,1)
- p.CFrame = tar.Parent.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
- p.formFactor = "Symmetric"
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Transparency = .5
- local pm = Instance.new("SpecialMesh")
- pm.Parent = p
- pm.MeshType = "Sphere"
- pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
- local pbv = Instance.new("BodyVelocity")
- pbv.Parent = p
- pbv.velocity = Vector3.new(0,10,0)
- game:GetService("Debris"):AddItem(p, .2)
- tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health +2
- end
- tar.Parent.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
- wait(.5)
- end
- end
- end
- end
- function prison() --key z pls
- local start = Instance.new("Part")
- start.Parent = workspace
- start.Position = mouse.Hit.p + Vector3.new(0,18,0)
- start.Anchored = true
- start.Size = Vector3.new(1,1,1)
- start.Transparency = 1
- for i = 1,36 do
- start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0))
- local wall1 = Instance.new("Part")
- wall1.Parent = workspace
- wall1.BrickColor = BrickColor.new("Really black")
- wall1.Size = Vector3.new(1,10,1)
- wall1.Anchored = true
- wall1.TopSurface = 0
- wall1.CFrame = start.CFrame * CFrame.new(10,-15,0)
- local wall2 = Instance.new("Part")
- wall2.Parent = workspace
- wall2.BrickColor = BrickColor.new("Really black")
- wall2.Size = Vector3.new(1,10,1)
- wall2.Anchored = true
- wall2.TopSurface = 0
- wall2.CFrame = start.CFrame * CFrame.new(10,-15,0)
- local wall1a = Instance.new("Part")
- wall1a.Parent = workspace
- wall1a.BrickColor = BrickColor.new("Really black")
- wall1a.Size = Vector3.new(1,10,1)
- wall1a.Anchored = true
- wall1a.TopSurface = 0
- wall1a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
- local wall2a = Instance.new("Part")
- wall2a.Parent = workspace
- wall2a.BrickColor = BrickColor.new("Really black")
- wall2a.Size = Vector3.new(1,0,1)
- wall2a.Anchored = true
- wall2a.TopSurface = 0
- wall2a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
- local roof = Instance.new("Part")
- roof.Parent = workspace
- roof.Size = Vector3.new(0,1,1)
- roof.BrickColor = BrickColor.new("Really black")
- roof.Anchored = true
- roof.CFrame = start.CFrame * CFrame.new(0,-10,0)
- roof.TopSurface = 0
- local roof2 = Instance.new("Part")
- roof2.Parent = workspace
- roof2.Size = Vector3.new(1,1,20)
- roof2.BrickColor = BrickColor.new("Really black")
- roof2.Anchored = true
- roof2.CFrame = start.CFrame * CFrame.new(0,-10,0)
- roof2.TopSurface = 0
- local roofa = Instance.new("Part")
- roofa.Parent = workspace
- roofa.Size = Vector3.new(20,1,1)
- roofa.BrickColor = BrickColor.new("Really black")
- roofa.Anchored = true
- roofa.CFrame = start.CFrame * CFrame.new(0,-20,0)
- roofa.TopSurface = 0
- local roof2a = Instance.new("Part")
- roof2a.Parent = workspace
- roof2a.Size = Vector3.new(1,1,20)
- roof2a.BrickColor = BrickColor.new("Really black")
- roof2a.Anchored = true
- roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0)
- roof2a.TopSurface = 0
- game:GetService("Debris"):AddItem(roof, 15)
- game:GetService("Debris"):AddItem(wall1, 15)
- game:GetService("Debris"):AddItem(wall2, 15)
- game:GetService("Debris"):AddItem(roof2, 15)
- game:GetService("Debris"):AddItem(wall1a, 15)
- game:GetService("Debris"):AddItem(wall2a, 15)
- game:GetService("Debris"):AddItem(roofa, 15)
- game:GetService("Debris"):AddItem(roof2a, 15)
- wait()
- end
- start:remove()
- wait(.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement