Steve Script Mastewr1 3542
Steve Script Mastewr1 3542
--Fixed lags by stommmDev for toasters if the creator wants to shut down this
script i will
-- If this script isn't on pastebin or the user who uploaded this isn't called
"Delros12"
-- (and yes my pastebin account is Delros12) or the link is not
https://pastebin.com/2NNDTLjL
-- then this is not the original link of this script.
-- The original link of the script gets edited constantly for updates, if you use
the original
-- link you will be able to enjoy the most recent updates of this script without
changing to
-- another link which contains updated script.
-- Enjoy! :)
-- Controls: Q to sneak, use the keypad numbers 1-9 to change blocks, choose a
empty slot i
-- you want to remove a block.
--[]
local gui = player.PlayerGui:FindFirstChild("ToolBar") or
Instance.new("ScreenGui", player.PlayerGui)
gui.Name = "ToolBar"
char.Humanoid:ClearAllChildren()
char.Animate:Remove()
local ticks = 0
local times = 0
local walkAnim = 0
local increaseWalkAnim = 1
local idleAnimRotX = 0
local idleAnimRotZ = 0
local sneaking = 0
local RS = game:GetService("RunService").RenderStepped
local Mouse = player:GetMouse()
local punchRotX = 0
local punchRotY = 0
local punchRotZ = 0
local punchSpeed = 0
local punching = 0
local selectedBlock = 8
local punchEnded = 1
local itemOnHand = nil
local hasItemOnHand = 0
local hi = 0
-- selection thingy
local selectLabel = Instance.new("TextLabel", gui)
selectLabel.Size = UDim2.new(0, 32, 0, 32)
selectLabel.Position = UDim2.new(0.5, -160 + (selectedBlock*40), 1, -
105)
selectLabel.BackgroundTransparency = 0.5
selectLabel.BackgroundColor3 = Color3.new(1, 1, 1)
selectLabel.BorderSizePixel = 0
selectLabel.Text = ""
selectLabel.ZIndex = 3
--
Mouse.KeyDown:connect(function(key)
if key == "q" then
sneaking = 1
humanoid.WalkSpeed = humanoid.WalkSpeed / 2
rootJoint.C1 = CFrame.new(0, 0.325, 0) *
CFrame.Angles(math.rad(sneaking*45), 0, 0)
lH.C0 = CFrame.new(0, 0.975, 0) * CFrame.Angles(-
math.rad(sneaking*45), 0, 0)
rH.C0 = CFrame.new(0, 0.975, 0) *
CFrame.Angles(math.rad(sneaking*45), 0, 0)
--print("Sneaking...")
end
if key == "8" then
selectedBlock = 7
itemOnHand = nil
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
if hasItemOnHand == 1 then hi = 1 end
end
if key == "9" then
selectedBlock = 8
itemOnHand = nil
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
if hasItemOnHand == 1 then hi = 1 end
end
if key == "1" then
selectedBlock = 0
itemOnHand = toolBar.Dirt
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "2" then
selectedBlock = 1
itemOnHand = toolBar.Grass
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "3" then
selectedBlock = 2
itemOnHand = toolBar.Stone
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "4" then
selectedBlock = 3
itemOnHand = toolBar.Diamond_Ore
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "5" then
selectedBlock = 4
itemOnHand = toolBar.Diamond_Block
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "6" then
selectedBlock = 5
itemOnHand = toolBar.Wood_Planks
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if key == "7" then
selectedBlock = 6
itemOnHand = toolBar.Oak_Log
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
putTexture(handItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
for _,f in pairs(facesToResize) do
handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end
end
if (key == "0" or key == "1" or key == "2"
or key == "3" or key == "4" or key == "5"
or key == "6" or key == "7") and hasItemOnHand == 0 then hi
= 1 end
selectLabel.Position = UDim2.new(0.5, -160 +
((selectedBlock)*40), 1, -105)
end)
Mouse.KeyUp:connect(function(key)
if key == "q" then
sneaking = 0
humanoid.WalkSpeed = humanoid.WalkSpeed * 2
rootJoint.C1 = CFrame.new(0, 0.05, 0) * CFrame.Angles(0, 0,
0)
lH.C0 = CFrame.new(0, 0.975, 0) * CFrame.Angles(0, 0, 0)
rH.C0 = CFrame.new(0, 0.975, 0) * CFrame.Angles(0, 0, 0)
--print("Stopped sneaking...")
end
end)
while RS:wait() do
if itemOnHand ~= nil then
hasItemOnHand = 1
handItem.Transparency = 0
else
hasItemOnHand = 0
handItem.Transparency = 1
end
if humanoid.Health < oldHP then
damageTime = 60
sound:Play()
end
oldHP = humanoid.Health
if damageTime > 0 and humanoid.Health > 0 then
for _,p in pairs(char:GetChildren()) do
if p.Name ~= "HumanoidRootPart" and p.ClassName ==
"Part" then
if p.Name == "DamagePart" then
p.Transparency = 0.5
end
end
end
damageTime = damageTime - 2
if damageTime <= 0 then
for _,p in pairs(char:GetChildren()) do
if p.Name ~= "HumanoidRootPart" and p.ClassName
== "Part" then
if p.Name == "DamagePart" then
p.Transparency = 1
end
end
end
end
end
camPart.CFrame = camera.CFrame
neck.C1 = CFrame.new(0, 0.975, 0) *
CFrame.fromEulerAnglesXYZ(math.rad(sneaking*45), math.rad(camPart.Orientation.Y -
torso.Orientation.Y), 0)
neck.C0 = CFrame.new(0, -0.65, 0) * CFrame.Angles(-
math.rad(camPart.Orientation.X - torso.Orientation.X - (sneaking*45)), 0, 0)