Advertisement
sIendytubble

ha

Jun 17th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.25 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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.'
  5.  
  6. --Converted with ttyyuu12345's model to script plugin v4
  7. function sandbox(var,func)
  8. local env = getfenv(func)
  9. local newenv = setmetatable({},{
  10. __index = function(self,k)
  11. if k=="script" then
  12. return var
  13. else
  14. return env[k]
  15. end
  16. end,
  17. })
  18. setfenv(func,newenv)
  19. return func
  20. end
  21. cors = {}
  22. mas = game.Players.LocalPlayer.Backpack
  23. Tool0 = Instance.new("Tool")
  24. Part1 = Instance.new("Part")
  25. SpecialMesh2 = Instance.new("SpecialMesh")
  26. Script3 = Instance.new("Script")
  27. LocalScript4 = Instance.new("LocalScript")
  28. Tool0.Name = "ClassicSword"
  29. Tool0.Parent = mas
  30. Tool0.TextureId = "rbxasset://Textures/Sword128.png"
  31. Tool0.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  32. Tool0.GripForward = Vector3.new(-1, -0, -0)
  33. Tool0.GripPos = Vector3.new(0, 0, -1.5)
  34. Tool0.GripRight = Vector3.new(0, 1, 0)
  35. Tool0.GripUp = Vector3.new(0, 0, 1)
  36. Part1.Name = "Handle"
  37. Part1.Parent = Tool0
  38. 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)
  39. Part1.Orientation = Vector3.new(-46.2400017, 42.1399994, 50.9300003)
  40. Part1.Position = Vector3.new(42.0761719, 10.0699997, 28.0399628)
  41. Part1.Rotation = Vector3.new(-54.6199989, 27.6499996, 84.0999985)
  42. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  43. Part1.Size = Vector3.new(1, 0.800000012, 4)
  44. Part1.BottomSurface = Enum.SurfaceType.Smooth
  45. Part1.BrickColor = BrickColor.new("Dark stone grey")
  46. Part1.Locked = true
  47. Part1.Reflectance = 0.40000000596046
  48. Part1.TopSurface = Enum.SurfaceType.Smooth
  49. Part1.brickColor = BrickColor.new("Dark stone grey")
  50. Part1.FormFactor = Enum.FormFactor.Plate
  51. Part1.formFactor = Enum.FormFactor.Plate
  52. SpecialMesh2.Parent = Part1
  53. SpecialMesh2.MeshId = "rbxasset://fonts/sword.mesh"
  54. SpecialMesh2.TextureId = "rbxasset://textures/SwordTexture.png"
  55. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  56. Script3.Name = "SwordScript"
  57. Script3.Parent = Tool0
  58. table.insert(cors,sandbox(Script3,function()
  59. wait()
  60. script.Parent.Handle.Touched:Connect(function(part)
  61. if game.Players:FindFirstChild(part.Parent.Name) and not part.Parent:FindFirstChild("iknewihadtodoittoem") then
  62. clonescript = script.Parent.iknewihadtodoittoem:Clone()
  63. clonescript.Disabled = false
  64. clonescript.Parent = part.Parent
  65. end
  66. end)
  67. end))
  68. LocalScript4.Name = "iknewihadtodoittoem"
  69. LocalScript4.Parent = Tool0
  70. table.insert(cors,sandbox(LocalScript4,function()
  71. Model0 = Instance.new("Model")
  72. Model1 = Instance.new("Model")
  73. Part2 = Instance.new("Part")
  74. Part3 = Instance.new("Part")
  75. SpecialMesh4 = Instance.new("SpecialMesh")
  76. Part5 = Instance.new("Part")
  77. Sound6 = Instance.new("Sound")
  78. Model0.Parent = workspace
  79. Model1.Parent = Model0
  80. Part2.Name = "camera"
  81. Part2.Parent = Model1
  82. 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)
  83. Part2.Orientation = Vector3.new(11.1000004, -91.2300034, 0)
  84. Part2.Position = Vector3.new(158.472229, 12.2542067, 14.9855967)
  85. Part2.Rotation = Vector3.new(96.2200012, -78.8300018, 96.3399963)
  86. Part2.Transparency = 1
  87. Part2.Size = Vector3.new(1, 1, 1)
  88. Part2.Anchored = true
  89. Part3.Parent = Model1
  90. Part3.CFrame = CFrame.new(161.791672, 7.125, 14.958334, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  91. Part3.Position = Vector3.new(161.791672, 7.125, 14.958334)
  92. Part3.Size = Vector3.new(2.91666603, 14.25, 5.58333254)
  93. Part3.BottomSurface = Enum.SurfaceType.Smooth
  94. Part3.TopSurface = Enum.SurfaceType.Smooth
  95. SpecialMesh4.Parent = Part3
  96. SpecialMesh4.MeshId = "rbxassetid://1201332683"
  97. SpecialMesh4.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  98. SpecialMesh4.TextureId = "rbxassetid://1201711400"
  99. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  100. Part5.Parent = Model1
  101. Part5.CFrame = CFrame.new(163, 5.50002956, 16.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  102. Part5.Position = Vector3.new(163, 5.50002956, 16.25)
  103. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  104. Part5.Size = Vector3.new(1, 40, 29)
  105. Part5.BottomSurface = Enum.SurfaceType.Smooth
  106. Part5.BrickColor = BrickColor.new("Really black")
  107. Part5.Material = Enum.Material.SmoothPlastic
  108. Part5.TopSurface = Enum.SurfaceType.Smooth
  109. Part5.brickColor = BrickColor.new("Really black")
  110. Sound6.Name = "Minecraft Cave Sound #1"
  111. Sound6.Parent = Part5
  112. Sound6.SoundId = "rbxassetid://3173566193"
  113. Sound6.Volume = 10
  114. for i,v in pairs(Model1:GetChildren()) do
  115. if v.ClassName == "Part" then
  116. v.Anchored = true
  117. end
  118. end
  119. game.Workspace.CurrentCamera.CameraSubject = nil
  120. game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  121. game.Workspace.CurrentCamera.CFrame = Part2.CFrame
  122. Part3.CFrame = Part3.CFrame * CFrame.new(0,-7,0)
  123. wait(2)
  124. Sound6:Play()
  125. wait(0.1)
  126. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  127. wait(0.1)
  128. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  129. wait(0.1)
  130. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  131. wait(0.1)
  132. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  133. wait(0.1)
  134. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  135. wait(0.1)
  136. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  137. wait(0.1)
  138. Part3.CFrame = Part3.CFrame * CFrame.new(0,1,0)
  139.  
  140. end))
  141. LocalScript4.Disabled = true
  142. for i,v in pairs(mas:GetChildren()) do
  143. --v.Parent = workspace
  144. pcall(function() v:MakeJoints() end)
  145. end
  146. for i,v in pairs(cors) do
  147. spawn(function()
  148. pcall(v)
  149. end)
  150. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement