Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer warn'youngmacka123s minecraft script.'
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = game.Players.LocalPlayer.Backpack
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- LocalScript4 = Instance.new("LocalScript")
- Tool0.Name = "ClassicSword"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxasset://Textures/Sword128.png"
- Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -1.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(42.0761719, 10.0699997, 28.0399628, 0.0910440385, -0.881099463, 0.464084357, 0.537011683, 0.435894847, 0.722229123, -0.838648558, 0.183463722, 0.512845576)
- Part1.Orientation = Vector3.new(-46.2400017, 42.1399994, 50.9300003)
- Part1.Position = Vector3.new(42.0761719, 10.0699997, 28.0399628)
- Part1.Rotation = Vector3.new(-54.6199989, 27.6499996, 84.0999985)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Size = Vector3.new(1, 0.800000012, 4)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Locked = true
- Part1.Reflectance = 0.40000000596046
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dark stone grey")
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.formFactor = Enum.FormFactor.Plate
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxasset://fonts/sword.mesh"
- SpecialMesh2.TextureId = "rbxasset://textures/SwordTexture.png"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Script3.Name = "SwordScript"
- Script3.Parent = Tool0
- table.insert(cors,sandbox(Script3,function()
- wait()
- script.Parent.Handle.Touched:Connect(function(part)
- if game.Players:FindFirstChild(part.Parent.Name) and not part.Parent:FindFirstChild("iknewihadtodoittoem") then
- clonescript = script.Parent.iknewihadtodoittoem:Clone()
- clonescript.Disabled = false
- clonescript.Parent = part.Parent
- end
- end)
- end))
- LocalScript4.Name = "iknewihadtodoittoem"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Part5 = Instance.new("Part")
- Sound6 = Instance.new("Sound")
- Model0.Parent = workspace
- Model1.Parent = Model0
- Part2.Name = "camera"
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(158.472229, 12.2542067, 14.9855967, -0.0213880297, -0.192455351, -0.981072664, -0, 0.981297135, -0.192499384, 0.999771237, -0.00411718246, -0.0209880117)
- Part2.Orientation = Vector3.new(11.1000004, -91.2300034, 0)
- Part2.Position = Vector3.new(158.472229, 12.2542067, 14.9855967)
- Part2.Rotation = Vector3.new(96.2200012, -78.8300018, 96.3399963)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(1, 1, 1)
- Part2.Anchored = true
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(161.791672, 7.125, 14.958334, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(161.791672, 7.125, 14.958334)
- Part3.Size = Vector3.new(2.91666603, 14.25, 5.58333254)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh4.Parent = Part3
- SpecialMesh4.MeshId = "rbxassetid://1201332683"
- SpecialMesh4.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- SpecialMesh4.TextureId = "rbxassetid://1201711400"
- SpecialMesh4.MeshType = Enum.MeshType.FileMesh
- Part5.Parent = Model1
- Part5.CFrame = CFrame.new(163, 5.50002956, 16.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(163, 5.50002956, 16.25)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(1, 40, 29)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.Material = Enum.Material.SmoothPlastic
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Really black")
- Sound6.Name = "Minecraft Cave Sound #1"
- Sound6.Parent = Part5
- Sound6.SoundId = "rbxassetid://3173566193"
- Sound6.Volume = 10
- for i,v in pairs(Model1:GetChildren()) do
- if v.ClassName == "Part" then
- v.Anchored = true
- end
- end
- game.Workspace.CurrentCamera.CameraSubject = nil
- game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
- game.Workspace.CurrentCamera.CFrame = Part2.CFrame
- Part3.CFrame = Part3.CFrame * CFrame.new(0,-7,0)
- wait(2)
- Sound6:Play()
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- wait(0.1)
- Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
- end))
- LocalScript4.Disabled = true
- for i,v in pairs(mas:GetChildren()) do
- --v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement