Professional Documents
Culture Documents
mael minecraft script : -- NOTE (READ!!): This script doesn't work on voidacity's
script builder
-- since it crashes your game, but it's usable on other
-- script builders like fancy dev's or nexure's.
-- (it just doesn't work on voidacity only)
--[[
]]
-- 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.
-- You will become steve when you use this script, if you die after
-- using this script, keep trying to use it or wait 60 seconds
-- (it doesn't work at first but eventually it will)
-- Enjoy! :)
02/03/2018:
* Fixed a bug with the textures.
01/03/2018:
+ Added a global grid.
+ Added something that i'm not sure how to describe.
* Punching Animation in first person is now more accurate.
17/02/2018:
+ You can't break your neck anymore (360 head you know)
+ Added this changelog
- Removed the name tag, since it causes it to get banned on
some servers for some reason (really voidacity?).
* Walking animation is now more accurate
Note: It's been a while since i don't update the script, but i'll
get back to updating it.
05/02/2018:
+ Added gravity to sand and gravel (WARNING: Can be laggy!)
04/02/2018:
+ Added creative inventory
+ Added 31 blocks (that's a lot, but not near minecraft's level)
+ Added sprinting (i'll add footsteps and particles later)
- Removed Herobrine
* Fixed a bug where the hand dissapears if u look down while sneaking
* Fixed? (not sure) a bug where if u ran the script you would die
01/02/2018:
+ Added the hand that appears on minecraft when ur first person
+ Added a walking animation to the hand
+ Punching animation added to the hand
+ Camera bobbing
+ Sneaking now lowers your camera just like in minecraft
+ Blocks now have sounds (i chose the ones that are the closest to minecraft
sounds)
+ When a block is broken, particles will fall from it
]]
workspace:WaitForChild("Camera"):ClearAllChildren()
local RS = game:GetService("RunService").RenderStepped
local targetName = game.Players.LocalPlayer.Name
local player = game.Players:FindFirstChild(targetName)
local creativeInventory = {
{
name = "Dirt",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152569532",
backTex = "rbxassetid://152569532",
topTex = "rbxassetid://152569532",
bottomTex = "rbxassetid://152569532",
leftTex = "rbxassetid://152569532",
rightTex = "rbxassetid://152569532",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = false,
objectType = "Block"
},
{
name = "Grass",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://96430337",
backTex = "rbxassetid://96430337",
topTex = "rbxassetid://96430265",
bottomTex = "rbxassetid://179655033",
leftTex = "rbxassetid://96430337",
rightTex = "rbxassetid://96430337",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = false,
objectType = "Block"
},
{
name = "Sand",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://347007448",
backTex = "rbxassetid://347007448",
topTex = "rbxassetid://347007448",
bottomTex = "rbxassetid://347007448",
leftTex = "rbxassetid://347007448",
rightTex = "rbxassetid://347007448",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = true,
objectType = "Block"
},
{
name = "Gravel",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151701568",
backTex = "rbxassetid://151701568",
topTex = "rbxassetid://151701568",
bottomTex = "rbxassetid://151701568",
leftTex = "rbxassetid://151701568",
rightTex = "rbxassetid://151701568",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = true,
objectType = "Block"
},
{
name = "Stone",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://75880927",
backTex = "rbxassetid://75880927",
topTex = "rbxassetid://75880927",
bottomTex = "rbxassetid://75880927",
leftTex = "rbxassetid://75880927",
rightTex = "rbxassetid://75880927",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Diamond Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://57928490",
backTex = "rbxassetid://57928490",
topTex = "rbxassetid://57928490",
bottomTex = "rbxassetid://57928490",
leftTex = "rbxassetid://57928490",
rightTex = "rbxassetid://57928490",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Diamond Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://56749955",
backTex = "rbxassetid://56749955",
topTex = "rbxassetid://56749955",
bottomTex = "rbxassetid://56749955",
leftTex = "rbxassetid://56749955",
rightTex = "rbxassetid://56749955",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Emerald Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152410853",
backTex = "rbxassetid://152410853",
topTex = "rbxassetid://152410853",
bottomTex = "rbxassetid://152410853",
leftTex = "rbxassetid://152410853",
rightTex = "rbxassetid://152410853",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Emerald Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152410868",
backTex = "rbxassetid://152410868",
topTex = "rbxassetid://152410868",
bottomTex = "rbxassetid://152410868",
leftTex = "rbxassetid://152410868",
rightTex = "rbxassetid://152410868",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Obsidian",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://112560322",
backTex = "rbxassetid://112560322",
topTex = "rbxassetid://112560322",
bottomTex = "rbxassetid://112560322",
leftTex = "rbxassetid://112560322",
rightTex = "rbxassetid://112560322",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Gold Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572128",
backTex = "rbxassetid://152572128",
topTex = "rbxassetid://152572128",
bottomTex = "rbxassetid://152572128",
leftTex = "rbxassetid://152572128",
rightTex = "rbxassetid://152572128",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Gold Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572121",
backTex = "rbxassetid://152572121",
topTex = "rbxassetid://152572121",
bottomTex = "rbxassetid://152572121",
leftTex = "rbxassetid://152572121",
rightTex = "rbxassetid://152572121",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Iron Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572134",
backTex = "rbxassetid://152572134",
topTex = "rbxassetid://152572134",
bottomTex = "rbxassetid://152572134",
leftTex = "rbxassetid://152572134",
rightTex = "rbxassetid://152572134",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Iron Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://132879562",
backTex = "rbxassetid://132879562",
topTex = "rbxassetid://132879562",
bottomTex = "rbxassetid://132879562",
leftTex = "rbxassetid://132879562",
rightTex = "rbxassetid://132879562",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Redstone Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://136260219",
backTex = "rbxassetid://136260219",
topTex = "rbxassetid://136260219",
bottomTex = "rbxassetid://136260219",
leftTex = "rbxassetid://136260219",
rightTex = "rbxassetid://136260219",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Redstone Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572209",
backTex = "rbxassetid://152572209",
topTex = "rbxassetid://152572209",
bottomTex = "rbxassetid://152572209",
leftTex = "rbxassetid://152572209",
rightTex = "rbxassetid://152572209",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Coal Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152527418",
backTex = "rbxassetid://152527418",
topTex = "rbxassetid://152527418",
bottomTex = "rbxassetid://152527418",
leftTex = "rbxassetid://152527418",
rightTex = "rbxassetid://152527418",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Coal Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572101",
backTex = "rbxassetid://152572101",
topTex = "rbxassetid://152572101",
bottomTex = "rbxassetid://152572101",
leftTex = "rbxassetid://152572101",
rightTex = "rbxassetid://152572101",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Bedrock",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://75881126",
backTex = "rbxassetid://75881126",
topTex = "rbxassetid://75881126",
bottomTex = "rbxassetid://75881126",
leftTex = "rbxassetid://75881126",
rightTex = "rbxassetid://75881126",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Cobblestone",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572105",
backTex = "rbxassetid://152572105",
topTex = "rbxassetid://152572105",
bottomTex = "rbxassetid://152572105",
leftTex = "rbxassetid://152572105",
rightTex = "rbxassetid://152572105",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Mossy Stone Brick",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://61826751",
backTex = "rbxassetid://61826751",
topTex = "rbxassetid://61826751",
bottomTex = "rbxassetid://61826751",
leftTex = "rbxassetid://61826751",
rightTex = "rbxassetid://61826751",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Cracked Stone Brick",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802087",
backTex = "rbxassetid://151802087",
topTex = "rbxassetid://151802087",
bottomTex = "rbxassetid://151802087",
leftTex = "rbxassetid://151802087",
rightTex = "rbxassetid://151802087",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Chiseled Stone Brick",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802074",
backTex = "rbxassetid://151802074",
topTex = "rbxassetid://151802074",
bottomTex = "rbxassetid://151802074",
leftTex = "rbxassetid://151802074",
rightTex = "rbxassetid://151802074",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Stone Brick",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://61826773",
backTex = "rbxassetid://61826773",
topTex = "rbxassetid://61826773",
bottomTex = "rbxassetid://61826773",
leftTex = "rbxassetid://61826773",
rightTex = "rbxassetid://61826773",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Nether Brick",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802104",
backTex = "rbxassetid://151802104",
topTex = "rbxassetid://151802104",
bottomTex = "rbxassetid://151802104",
leftTex = "rbxassetid://151802104",
rightTex = "rbxassetid://151802104",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Granite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776467",
backTex = "rbxassetid://151776467",
topTex = "rbxassetid://151776467",
bottomTex = "rbxassetid://151776467",
leftTex = "rbxassetid://151776467",
rightTex = "rbxassetid://151776467",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Diorite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776452",
backTex = "rbxassetid://151776452",
topTex = "rbxassetid://151776452",
bottomTex = "rbxassetid://151776452",
leftTex = "rbxassetid://151776452",
rightTex = "rbxassetid://151776452",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Andesite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776422",
backTex = "rbxassetid://151776422",
topTex = "rbxassetid://151776422",
bottomTex = "rbxassetid://151776422",
leftTex = "rbxassetid://151776422",
rightTex = "rbxassetid://151776422",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Polished Granite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776506",
backTex = "rbxassetid://151776506",
topTex = "rbxassetid://151776506",
bottomTex = "rbxassetid://151776506",
leftTex = "rbxassetid://151776506",
rightTex = "rbxassetid://151776506",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Polished Diorite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776533",
backTex = "rbxassetid://151776533",
topTex = "rbxassetid://151776533",
bottomTex = "rbxassetid://151776533",
leftTex = "rbxassetid://151776533",
rightTex = "rbxassetid://151776533",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Polished Andesite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151776506",
backTex = "rbxassetid://151776506",
topTex = "rbxassetid://151776506",
bottomTex = "rbxassetid://151776506",
leftTex = "rbxassetid://151776506",
rightTex = "rbxassetid://151776506",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Brick Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://59389191",
backTex = "rbxassetid://59389191",
topTex = "rbxassetid://59389191",
bottomTex = "rbxassetid://59389191",
leftTex = "rbxassetid://59389191",
rightTex = "rbxassetid://59389191",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Packed Ice",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152528023",
backTex = "rbxassetid://152528023",
topTex = "rbxassetid://152528023",
bottomTex = "rbxassetid://152528023",
leftTex = "rbxassetid://152528023",
rightTex = "rbxassetid://152528023",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Ice Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 1;
frontTex = "rbxassetid://118555586",
backTex = "rbxassetid://118555586",
topTex = "rbxassetid://118555586",
bottomTex = "rbxassetid://118555586",
leftTex = "rbxassetid://118555586",
rightTex = "rbxassetid://118555586",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Netherrack",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802119",
backTex = "rbxassetid://151802119",
topTex = "rbxassetid://151802119",
bottomTex = "rbxassetid://151802119",
leftTex = "rbxassetid://151802119",
rightTex = "rbxassetid://151802119",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "End Stone",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802091",
backTex = "rbxassetid://151802091",
topTex = "rbxassetid://151802091",
bottomTex = "rbxassetid://151802091",
leftTex = "rbxassetid://151802091",
rightTex = "rbxassetid://151802091",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Glass Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 1;
frontTex = "rbxassetid://152239003",
backTex = "rbxassetid://152239003",
topTex = "rbxassetid://152239003",
bottomTex = "rbxassetid://152239003",
leftTex = "rbxassetid://152239003",
rightTex = "rbxassetid://152239003",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Glowstone",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://54790811",
backTex = "rbxassetid://54790811",
topTex = "rbxassetid://54790811",
bottomTex = "rbxassetid://54790811",
leftTex = "rbxassetid://54790811",
rightTex = "rbxassetid://54790811",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Bookshelf",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://118554092",
backTex = "rbxassetid://118554092",
topTex = "rbxassetid://346201871",
bottomTex = "rbxassetid://346201871",
leftTex = "rbxassetid://118554092",
rightTex = "rbxassetid://118554092",
displayTex = "",
sound = "rbxassetid://507863457",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Oak Wood Planks",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://346201871",
backTex = "rbxassetid://346201871",
topTex = "rbxassetid://346201871",
bottomTex = "rbxassetid://346201871",
leftTex = "rbxassetid://346201871",
rightTex = "rbxassetid://346201871",
displayTex = "",
sound = "rbxassetid://507863457",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Oak Log",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://71445924",
backTex = "rbxassetid://71445924",
topTex = "rbxassetid://152538557",
bottomTex = "rbxassetid://152538557",
leftTex = "rbxassetid://71445924",
rightTex = "rbxassetid://71445924",
displayTex = "",
sound = "rbxassetid://507863457",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Oak Leaves",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 1;
frontTex = "rbxassetid://151708391",
backTex = "rbxassetid://151708391",
topTex = "rbxassetid://151708391",
bottomTex = "rbxassetid://151708391",
leftTex = "rbxassetid://151708391",
rightTex = "rbxassetid://151708391",
displayTex = "",
sound = "rbxassetid://507863457",
-- couldn't find a leaves sound for this one, sorry lol
soundVol = 2,
hasGravity = false,
objectType = "Block"
}
}
local toolBar = {
{
name = "Dirt Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152569532",
backTex = "rbxassetid://152569532",
topTex = "rbxassetid://152569532",
bottomTex = "rbxassetid://152569532",
leftTex = "rbxassetid://152569532",
rightTex = "rbxassetid://152569532",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = false,
objectType = "Block"
},
{
name = "Grass Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://96430337",
backTex = "rbxassetid://96430337",
topTex = "rbxassetid://96430265",
bottomTex = "rbxassetid://179655033",
leftTex = "rbxassetid://96430337",
rightTex = "rbxassetid://96430337",
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = false,
objectType = "Block"
},
{
name = "Stone",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://75880927",
backTex = "rbxassetid://75880927",
topTex = "rbxassetid://75880927",
bottomTex = "rbxassetid://75880927",
leftTex = "rbxassetid://75880927",
rightTex = "rbxassetid://75880927",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Diamond Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://57928490",
backTex = "rbxassetid://57928490",
topTex = "rbxassetid://57928490",
bottomTex = "rbxassetid://57928490",
leftTex = "rbxassetid://57928490",
rightTex = "rbxassetid://57928490",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Diamond Block",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://56749955",
backTex = "rbxassetid://56749955",
topTex = "rbxassetid://56749955",
bottomTex = "rbxassetid://56749955",
leftTex = "rbxassetid://56749955",
rightTex = "rbxassetid://56749955",
displayTex = "",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Oak Wood Planks",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://346201871",
backTex = "rbxassetid://346201871",
topTex = "rbxassetid://346201871",
bottomTex = "rbxassetid://346201871",
leftTex = "rbxassetid://346201871",
rightTex = "rbxassetid://346201871",
displayTex = "",
sound = "rbxassetid://507863457",
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Oak Log",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://71445924",
backTex = "rbxassetid://71445924",
topTex = "rbxassetid://152538557",
bottomTex = "rbxassetid://152538557",
leftTex = "rbxassetid://71445924",
rightTex = "rbxassetid://71445924",
displayTex = "",
sound = "rbxassetid://507863457",
soundVol = 2,
hasGravity = false,
objectType = "Block"
}
--[[{
name = "Redstone",
size = Vector3.new(2.6, 0.05, 2.6),
transparency = 1;
frontTex = "rbxassetid://151911305",
backTex = "",
topTex = "rbxassetid://151911305",
bottomTex = "",
leftTex = "",
rightTex = "",
displayTex = "rbxassetid://64124418",
sound = "rbxassetid://1016978163",
soundVol = 2,
hasGravity = false,
objectType = "Redstone Dust"
},]]
}
function putTexture(part, frontF, backF, topF, bottomF, leftF, rightF, className)
local faces = {"Front", "Back", "Top", "Bottom", "Left", "Right"}
for i,f in pairs(faces) do
local decal = Instance.new(className, part)
if i == 1 then decal.Texture = frontF decal.Name = f end
if i == 2 then decal.Texture = backF or frontF decal.Name = f end
if i == 3 then decal.Texture = topF or frontF decal.Name = f end
if i == 4 then decal.Texture = bottomF or frontF decal.Name = f end
if i == 5 then decal.Texture = leftF or frontF decal.Name = f end
if i == 6 then decal.Texture = rightF or frontF decal.Name = f end
decal.Face = f
end
return part
end
function makeSquare(position, size, color, transparency, parent, zindex)
local label = Instance.new("TextLabel", parent)
label.Text = ""
label.BorderSizePixel = 0
label.BackgroundTransparency = transparency
label.Position = position
label.Size = size
label.BackgroundColor3 = color
if zindex == nil then label.ZIndex = 1 else label.ZIndex = zindex end
return label
end
function makeImage(position, size, image, parent, zindex)
local imglabel = Instance.new("ImageLabel", parent)
imglabel.BorderSizePixel = 0
imglabel.BackgroundTransparency = 1
imglabel.Position = position
imglabel.Size = size
imglabel.Image = image
if zindex == nil then imglabel.ZIndex = 1 else imglabel.ZIndex = zindex end
return imglabel
end
function putInventorySlot(position, image, parent, zindex)
local button = Instance.new("TextButton", parent)
button.Position = position
button.Size = UDim2.new(0, 36, 0, 36)
button.BackgroundColor3 = Color3.new(139/255, 139/255, 139/255)
button.Text = ""
button.BorderSizePixel = 0
button.ZIndex = zindex
local imageLabel = Instance.new("ImageLabel", button)
imageLabel.BackgroundTransparency = 0.9
imageLabel.Position = UDim2.new(0, 2, 0, 2)
imageLabel.Size = UDim2.new(0, 32, 0, 32)
imageLabel.Image = image
imageLabel.BorderSizePixel = 0
imageLabel.ZIndex = zindex
makeSquare(UDim2.new(0, 0, 0, 0), UDim2.new(0, 34, 0, 2),
Color3.new(55/255, 55/255, 55/255), 0, button, zindex)
makeSquare(UDim2.new(0, 0, 0, 0), UDim2.new(0, 2, 0, 34),
Color3.new(55/255, 55/255, 55/255), 0, button, zindex)
makeSquare(UDim2.new(0, 34, 0, 2), UDim2.new(0, 2, 0, 34),
Color3.new(255/255, 255/255, 255/255), 0, button, zindex)
makeSquare(UDim2.new(0, 2, 0, 34), UDim2.new(0, 34, 0, 2),
Color3.new(255/255, 255/255, 255/255), 0, button, zindex)
return button
end
creativeInv.Visible = false
creativeInv.Changed:connect(function()
blackOut.Visible = creativeInv.Visible
end)
coolButton.MouseButton1Click:connect(function()
changeLog.Visible = false
end)
imgSlot.ImageTransparency = 0.25
imgSlot.BackgroundTransparency = 1
imgSlot.ImageColor3 = Color3.new(0.225, 0.225, 0.225)
local Rotation = 0
if objType then
if objType.Value == "Redstone Dust" then
local topDecal = dust:FindFirstChild("Top")
if topDecal then
if theresRedstoneAtBack == false and theresRedstoneAtFront
== false and
theresRedstoneAtLeft == false and
theresRedstoneAtRight == false then
topDecal.Texture = redstoneDust
Rotation = 0
end
if part:FindFirstChild("IsBlock") then
local side1 = getSideByLocation(blkTar.CFrame.p
- part.CFrame.p)
if getSideByLocation(blkTar.CFrame.p -
part.CFrame.p) then
local texture =
part:FindFirstChild(side1)
if texture then
texture.Transparency = 0
end
end
end
end
for i = 1, 9 do
local part = Instance.new("Part", workspace)
part.Size = Vector3.new(0, 0, 0)
part.Transparency = 1
part.CanCollide = false
part.Velocity = Vector3.new(math.random(-5, 5), 5,
math.random(-5, 5))
part.Name = "Debris"
part.CFrame =
Mouse.Target.CFrame *
CFrame.new(math.random(-blkTar.Size.X/2,
blkTar.Size.X/2), math.random(-blkTar.Size.Y/2, blkTar.Size.Y/2), math.random(-
blkTar.Size.Z/2, blkTar.Size.Z/2))
part.CustomPhysicalProperties =
PhysicalProperties.new(0, 0.2, 0, 100, 100)
part.Touched:connect(function(prt)
if prt ~= blkTar then
part.CanCollide = true
end
end)
coroutine.resume(coroutine.create(function()
wait(math.random(50, 65)/100)
part:Destroy()
end))
--part.Anchored = false
end
blkTar:Destroy()
if blockIsRedstone == true then
local leftSide = nil
local rightSide = nil
local frontSide = nil
local backSide = nil
blockPlaced.CFrame = cFPos
blockPlaced.Name = block.name
putTexture(blockPlaced, block.frontTex, block.backTex,
block.topTex, block.bottomTex, block.leftTex, block.rightTex,
"Texture")
if partBelow then
local targetObjType =
partBelow:FindFirstChild("ObjectType")
if targetObjType then
if targetObjType.Value == "Block" then
canPlace = true
end
end
end
local side =
getSideByLocationRedstone(blockPlaced.CFrame.p - part.CFrame.p)
if side == "Left" then
leftSide = part
elseif side == "Right" then
rightSide = part
elseif side == "Front" then
frontSide = part
elseif side == "Back" then
backSide = part
elseif side == "Left Top" then
leftSide = part
elseif side == "Right Top" then
rightSide = part
elseif side == "Front Top" then
frontSide = part
elseif side == "Back Top" then
backSide = part
elseif side == "Left Bottom" then
leftSide = part
elseif side == "Right Bottom" then
rightSide = part
elseif side == "Front Bottom" then
frontSide = part
elseif side == "Back Bottom" then
backSide = part
end
targetObjType.Value = "Block"
blockPlaced:Destroy()
return
end
end
end
end
--[]
local gui = player.PlayerGui:FindFirstChild("ToolBar") or
Instance.new("ScreenGui", player.PlayerGui)
gui.Name = "ToolBar"
for i = 1, 9 do
if toolBar[i] ~= nil then
local img = putToolBarSlot(UDim2.new(0.5, -160 + ((i-
1)*40), 1, -105), toolBar[i].frontTex)
coroutine.resume(coroutine.create(function()
while wait() do
if toolBar[i] ~= nil then
if toolBar[i].displayTex == "" then
img.Image = toolBar[i].frontTex
else
img.Image = toolBar[i].displayTex
end
else
img.Image = ""
end
end
end))
else
local img = putToolBarSlot(UDim2.new(0.5, -160 + ((i-
1)*40), 1, -105), "")
coroutine.resume(coroutine.create(function()
while wait() do
if toolBar[i] ~= nil then
if toolBar[i].displayTex == "" then
img.Image = toolBar[i].frontTex
else
img.Image = toolBar[i].displayTex
end
else
img.Image = ""
end
end
end))
end
end
-- Heart bar
local hpFrame = makeSquare(UDim2.new(0.5, -166, 1, -130), UDim2.new(0,
162, 0, 18),
Color3.new(0/255, 0/255, 0/255), 1, gui, 1)
for i = 1, 10 do
local heartImg = makeImage(UDim2.new(0, (i-1)*16, 0, 0),
UDim2.new(0, 18, 0, 18),
"rbxassetid://1494233443", hearts, 2)
heartImg.ImageColor3 = Color3.new(240/255, 0, 0)
while wait() do
if humanoid.Health/humanoid.MaxHealth <= 0.27 then
if yIncrease <= 0 then
yIncrease = math.random(1, 2)
else
yIncrease = yIncrease - 1
end
heartImg.Position = UDim2.new(0,
heartImg.Position.X.Offset, 0, -yIncrease)
emptyHeart.Position = UDim2.new(0,
emptyHeart.Position.X.Offset, 0, -yIncrease)
else
if yIncrease >= 1 then
yIncrease = yIncrease - 1
heartImg.Position = UDim2.new(0,
heartImg.Position.X.Offset, 0, -yIncrease)
emptyHeart.Position = UDim2.new(0,
emptyHeart.Position.X.Offset, 0, -yIncrease)
end
end
end
end))
end
humanoid.Parent = nil
if char:FindFirstChild("Animate") then
char.Animate:Remove()
end
wait(0.25)
humanoid.Parent = char
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 punchRotXcam = 0
local punchRotYcam = 0
local punchRotZcam = 0
local punchSpeed = 0
local punching = 0
local selectedBlock = 8
local punchEnded = 1
local itemOnHand = nil
putTexture(cameraHandItem, itemOnHand.frontTex,
itemOnHand.backTex,
itemOnHand.topTex, itemOnHand.bottomTex,
itemOnHand.leftTex, itemOnHand.rightTex, "Texture")
cameraHand.Transparency = 1
for _,f in pairs(facesToResize) do
cameraHand:WaitForChild(f).Transparency = 1
cameraHand:WaitForChild(f).Transparency = 1
end
else
cameraHand.Transparency = 0
for _,f in pairs(facesToResize) do
cameraHand:WaitForChild(f).Transparency = 0
cameraHand:WaitForChild(f).Transparency = 0
end
end
if oldItemOnHand ~= itemOnHand then
changedItem = true
end
end
local pressedWTimes = 0
local sprintingNum = 0
local sprinting = false
Mouse.KeyDown:connect(function(key)
if sprinting == false then sprintingNum = 0 else sprintingNum = 1
end
if (key == "w" and sprinting == false and sneaking == 0) then
if pressedWTimes >= 1 or key == Enum.KeyCode.LeftControl
then
sprinting = true
humanoid.WalkSpeed = humanoid.WalkSpeed * 1.5
pressedWTimes = 0
coroutine.resume(coroutine.create(function()
for i = 1, 24 do
camera.FieldOfView = camera.FieldOfView +
((24-i)/10)
RS:wait()
end
end))
end
pressedWTimes = pressedWTimes + 1
coroutine.resume(coroutine.create(function()
for i = 1, 9 do
if sprinting == true then break end
wait()
end
pressedWTimes = 0
end))
end
if key == "q" and sprinting == false then
sneaking = 1
humanoid.WalkSpeed = humanoid.WalkSpeed / 2
humanoid.HipHeight = humanoid.HipHeight - 0.35
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 == "e" then
if creativeInventoryGUI.Visible == true then
creativeInventoryGUI.Visible = false
elseif creativeInventoryGUI.Visible == false then
creativeInventoryGUI.Visible = true
end
end
if key == "1" or key == "2" or key == "3" or
key == "4" or key == "5" or key == "6" or
key == "7" or key == "8" or key == "9" then
selectedBlock = tonumber(key) - 1
oldItemOnHand = itemOnHand
itemOnHand = toolBar[tonumber(key)]
updateItemOnHand()
if hasItemOnHand == 0 and itemOnHand then hi = 1 end
if hasItemOnHand == 1 and itemOnHand == nil then hi = 1 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)
local changedPerspective = 0
Mouse.KeyUp:connect(function(key)
if sprinting == false then sprintingNum = 0 else sprintingNum = 1
end
if (key == "w" and sprinting == true and sneaking == 0) then
sprinting = false
humanoid.WalkSpeed = humanoid.WalkSpeed / 1.5
coroutine.resume(coroutine.create(function()
for i = 1, 24 do
camera.FieldOfView = camera.FieldOfView - ((24-
i)/10)
RS:wait()
end
end))
end
if key == "q" and sprinting == false then
sneaking = 0
humanoid.WalkSpeed = humanoid.WalkSpeed * 2
humanoid.HipHeight = humanoid.HipHeight + 0.35
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
if key == "r" then
if changedPerspective == 0 then
changedPerspective = 1
camera.CFrame = camera.CFrame * CFrame.Angles(0,
math.rad(180), 0)
elseif changedPerspective == 1 then
changedPerspective = 0
camera.CFrame = camera.CFrame * CFrame.Angles(0,
math.rad(-180), 0)
end
end
end)
Mouse.TargetFilter = camera
-- lazy naming...
head.Parent = nil
torso.Parent = nil
lArm.Parent = nil
rArm.Parent = nil
lLeg.Parent = nil
rLeg.Parent = nil
weldTo(dTorso, humRootPart)
coroutine.resume(coroutine.create(function()
for i = 1, 55 do
corpse.CFrame = corpseCF --*
--CFrame.Angles(math.rad(-
corpse.Orientation.X), 0, math.rad(-corpse.Orientation.Z))
weldCorpse.C1 =
weldCorpse.C1:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(90)), 0.075)
RS:wait()
end
for _,p in pairs(corpse:GetChildren()) do
p:Destroy()
end
corpse.Anchored = true
wait(0.07)
smoke.Enabled = false
wait(2)
corpse:Destroy()
end))
print("You died!")
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 * CFrame.Angles(0,
math.rad(changedPerspective*180), 0)
if changedItem then
changedItem = false
coroutine.resume(coroutine.create(function()
for i = 1, 8 do
camHandY = camHandY - 0.2
RS:wait()
end
for i = 1, 8 do
camHandY = camHandY + 0.2
RS:wait()
end
end))
end
--print(AngleDifference(camPart.Orientation,
torso.Orientation).Y)
local negate = 1
if torso.Velocity.Y < 0 then
negate = -1
end
--cameraHandCFrame = cameraHandCFrame:lerp(CFrame.new(1.15*1.3 +
(walkAnim/2 - (walkAnim/4)), -1.35*1.3 + camHandY + (-BobbingY/8) + 0, -0.45 + -
camHandZ + ((camera.FieldOfView/45)-1.6)*1.3) *
CFrame.Angles(math.rad(punchRotXcam), math.rad(punchRotYcam),
math.rad(punchRotZcam)) * CFrame.new(0, 0, -1.75) *
CFrame.fromEulerAnglesXYZ(math.rad(85), math.rad(55), math.rad(22.5)), 0.25)
cameraHandCFrame =
cameraHandCFrame:lerp(CFrame.Angles(math.rad(rotationSpeed.X/1.5),
math.rad(rotationSpeed.Y/1.5), math.rad(rotationSpeed.Z/1.5)) * CFrame.new(1.15*1.3
+ (BobbingX/3.5), -1.35*1.3 + camHandY + ((0.4-BobbingY)/7) + 0, -0.45 + -camHandZ
+ ((camera.FieldOfView/45)-1.6)*1.3) * CFrame.Angles(math.rad(punchRotXcam),
math.rad(punchRotYcam), math.rad(punchRotZcam)) * CFrame.new(0, 0, -1.75) *
CFrame.fromEulerAnglesXYZ(math.rad(85), math.rad(55), math.rad(22.5)), 0.25)
humOffset = humOffset:lerp(CFrame.new(walkAnim/4 - (walkAnim/8),
BobbingY/13, 0), 0.25)
humanoid.CameraOffset = Vector3.new(humOffset.X, humOffset.Y, 0)
wait(0.075/1.3)
punchSpeed = 1
punchRotX = -75
punchRotY = 8
punchRotZ = 40
wait(0.075/1.3)
punchSpeed = 1
punchRotX = -20
punchRotZ = 40
wait(0.075/1.3)
punchSpeed = 3.5
punchRotX = 0
punchRotY = 0
punchRotZ = 0
punchRotXcam = 0
punchRotYcam = 0
punchRotZcam = 0
punchEnded = 1
wait(0.06/1.3)
punchSpeed = 0
end)
coPunch()
coPunchCam()
end
if ticks > 20 then
ticks = 0
if times == 0 then
times = times + 1
idleAnimRotX = -1
idleAnimRotZ = 0
elseif times == 1 then
times = times + 1
idleAnimRotX = -0.75
idleAnimRotZ = -0.75
elseif times == 2 then
times = times + 1
idleAnimRotX = 0
idleAnimRotZ = -1
elseif times == 3 then
times = times + 1
idleAnimRotX = 0.75
idleAnimRotZ = -0.75
--idleAnimRotX = 0.75
--idleAnimRotZ = -0
elseif times == 4 then
times = times + 1
idleAnimRotX = 1
idleAnimRotZ = 0
--idleAnimRotX = 1
--idleAnimRotZ = 0
elseif times == 5 then
times = times + 1
idleAnimRotX = 0.75
idleAnimRotZ = 0.75
elseif times == 6 then
times = times + 1
idleAnimRotX = 0
idleAnimRotZ = 1
elseif times == 7 then
times = 0
idleAnimRotX = -0.75
idleAnimRotZ = 0.75
end
end
if hi == 1 then hi = 0 end
lastCamRot = camPart.Orientation
neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0, -
math.rad(AngleDifference(oldTorsoOrientation, torso.Orientation).Y), 0)
ticks = ticks + 1
end
end
end