0% found this document useful (0 votes)
783 views55 pages

Minecraft Script for Roblox Users

This document contains a Minecraft script for the game Roblox. It includes instructions on how to use the script, which allows the user to build and destroy blocks like in Minecraft. The script provides a first person view with animations and includes 31 different block types to use in a creative inventory.

Uploaded by

angel.r71
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
783 views55 pages

Minecraft Script for Roblox Users

This document contains a Minecraft script for the game Roblox. It includes instructions on how to use the script, which allows the user to build and destroy blocks like in Minecraft. The script provides a first person view with animations and includes 31 different block types to use in a creative inventory.

Uploaded by

angel.r71
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
  • Introduction and Changelog

theo tird dimantion script : require(9254836590)("NameHere")

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)

--[[

▓▒▒▓▓ ░▓▒▒██▒▒▓█▒▒▓▓ █▒▒▓█▒▒▒▒▒▒▒█▓▒▒▒▒▒▒▒█▒▓▒▒▒▒▒▓█▒▒▒▒▒▒▒█▓▒▒▒▓▒▒▓█▒▒▒▒▒▓▒▓░


▓ ░█▒ ▓░ ▓▓ ░█ ░█░▒ ▒▒ █░ █ ░ ▒▓ ▓▒ █ ░░
░░ ░ ▒██░░░ █░ ▓▓ ░░█░ ▓▒ ▒█████░ ▓█████░░ ▓▓ ░█ ▒█░█▓ ▒▓ ░███████▓ ██░
▓ ▓█▓ ▒▒█ █▒ ░█ ▓▒ ▒█████░ ▓█████░░ ▓▓ ░█ ▒█▓░ ░▓ ▓███████ █▓
▓ ░░ ▒█ █▒ ░ █░ ░░░░█░ ▓█████░ ▒██░ ▒██▒ ░█ ░ ░███ ▒░
▒░ ░░ ▓▓ █░ ▓▒ █░ ░░ ░█░ ▓█████░ █░ ░░ ░ █░ ░ ███░ ░▒
▒░ ▓▓ ▒▓ █░ ▒█ █▒ ░ █ ▓█████░ ▓ █░ ▒▓ █▒ ░ █▒ ▒█▓█████▓ ░▒
▒░▒░█▒▒█▓ █░ ▓█ ██░ ░ █░ ▓█████░ ▓█████░ ▒█ ░ █▒ ▒█ ░ █▒ ░███▓███▓░ ▒
░▒░ ▒█▓ ▒▒ ▒█░ ▓▓ ░██ ░▓ ▒ ░ █░ █░ ▒█ ▓▒ ░█ ▒▓ ███ ▓███░ ▒░
▒░ ░▓██▒░░ ▓▓ █▒ ▒██ ▓▓ ░ ░ ░█░ ░ █░ ▒█ ▓▓ █░ ▒█ █▓░ ░███▒ ░▒
▒▒ ▒███░▒ ░█ █▓ ░██░ ▒█ ░ █░ ░ █░ ▒█ █▒ ░█ ▓▓ ░█ ░██▓▒ ▓░
▒▒ ▒██▓▓▒ ▒▓ █░ ▓█▓ █░ ▒█░ █░ ▓▓ ░█░ ▓▒ ░█▒ ▓ ▓█▒░ ▒▒
▒▒░ █▓ ▓▒░▒█▒░░▓█░░▒█▒▒░░▓▓░▒▒▒░░▒█▒░░░░░░░█▒░▒█▓░░▓█▒░▒█░░░█▓░░▓▒ ▓█░░▒▒
░▒▒▒░ ▒░░▒▒░░░░░░░░ ▒░░░▒▒▒▒▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒░▒▒▒░░░░ ░░░▒░
ASCII Art Generators are cool :)

]]

-- Scroll down for changelog...

-- ORIGINAL CREATOR: Depr1

-- 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
[Link]
-- 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.

-- Controls: Q to sneak, use the keypad numbers 1-9 to change blocks,


-- choose a empty slot if you want to remove a block, E to open creative
-- inventory, right-click to destroy a block in your toolbar in creative
-- inventory, R to make camera face your character's front or back.

-- 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! :)

local updateHand = false


local Changelog = [[

Redstone coming soon. (not... sorry)


Note (Read!): It will be a very long while till this script gets
updated again, i stopped updating this since im focusing more on other things
like C++ programming and game development, i'm not really that active much
in roblox (and if im off im probably programming), so yeah, maybe in a
million years i'll come back to update the script again (:P).
09/03/2018:
+ Added the heart bar.
+ Added death animation.
* Your camera now shakes like in minecraft when hurt.
* Toolbar Selection GUI now is accurate.

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 = [Link]
local player = [Link]:FindFirstChild(targetName)
local creativeInventory = {
{
name = "Dirt",
size = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](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 = [Link](className, part)
if i == 1 then [Link] = frontF [Link] = f end
if i == 2 then [Link] = backF or frontF [Link] = f end
if i == 3 then [Link] = topF or frontF [Link] = f end
if i == 4 then [Link] = bottomF or frontF [Link] = f end
if i == 5 then [Link] = leftF or frontF [Link] = f end
if i == 6 then [Link] = rightF or frontF [Link] = f end
[Link] = f
end
return part
end
function makeSquare(position, size, color, transparency, parent, zindex)
local label = [Link]("TextLabel", parent)
[Link] = ""
[Link] = 0
[Link] = transparency
[Link] = position
[Link] = size
label.BackgroundColor3 = color
if zindex == nil then [Link] = 1 else [Link] = zindex end
return label
end
function makeImage(position, size, image, parent, zindex)
local imglabel = [Link]("ImageLabel", parent)
[Link] = 0
[Link] = 1
[Link] = position
[Link] = size
[Link] = image
if zindex == nil then [Link] = 1 else [Link] = zindex end
return imglabel
end
function putInventorySlot(position, image, parent, zindex)
local button = [Link]("TextButton", parent)
[Link] = position
[Link] = [Link](0, 36, 0, 36)
button.BackgroundColor3 = [Link](139/255, 139/255, 139/255)
[Link] = ""
[Link] = 0
[Link] = zindex
local imageLabel = [Link]("ImageLabel", button)
[Link] = 0.9
[Link] = [Link](0, 2, 0, 2)
[Link] = [Link](0, 32, 0, 32)
[Link] = image
[Link] = 0
[Link] = zindex
makeSquare([Link](0, 0, 0, 0), [Link](0, 34, 0, 2),
[Link](55/255, 55/255, 55/255), 0, button, zindex)
makeSquare([Link](0, 0, 0, 0), [Link](0, 2, 0, 34),
[Link](55/255, 55/255, 55/255), 0, button, zindex)
makeSquare([Link](0, 34, 0, 2), [Link](0, 2, 0, 34),
[Link](255/255, 255/255, 255/255), 0, button, zindex)
makeSquare([Link](0, 2, 0, 34), [Link](0, 34, 0, 2),
[Link](255/255, 255/255, 255/255), 0, button, zindex)
return button
end

function AngleDifference(Angle1, Angle2)


local Difference = {X = 0, Y = 0, Z = 0}
Difference.X = Angle2.X - Angle1.X

if (Difference.X > 180) then


Difference.X = Difference.X - 360
elseif (Difference.X < -180) then
Difference.X = Difference.X + 360
end

Difference.Y = Angle2.Y - Angle1.Y

if (Difference.Y > 180) then


Difference.Y = Difference.Y - 360
elseif (Difference.Y < -180) then
Difference.Y = Difference.Y + 360
end

Difference.Z = Angle2.Z - Angle1.Z

if (Difference.Z > 180) then


Difference.Z = Difference.Z - 360
elseif (Difference.Z < -180) then
Difference.Z = Difference.Z + 360
end

return [Link](Difference.X, Difference.Y, Difference.Z)


end

local draggingBlock = nil


function makeInventory()
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui then
local invGui = [Link]("ScreenGui", playerGui)
local creativeInv = [Link]("Frame", invGui)
[Link] = 1
[Link] = [Link](0.5, -170, 0.5, -202)

[Link] = false

-- creative inventory GUI...

local blackOut = makeSquare([Link](0, 0, 0, 0), [Link](1, 0, 1,


0),
[Link](0/255, 0/255, 0/255), 0.3, invGui, 1)
[Link] = false

[Link]:connect(function()
[Link] = [Link]
end)

local changeLog = [Link]("TextLabel", invGui)


[Link] = Changelog
[Link] = "SourceSans"
[Link] = [Link].Size12
[Link] = [Link](0, [Link].X, 0,
[Link].Y + 2)
changeLog.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 0
[Link] = 0.5
[Link] = [Link](0.5, -[Link]/2, 0.5, -
[Link]/2)
changeLog.TextColor3 = [Link](1, 1, 1)
[Link] = "Left"
[Link] = "Top"

local coolButton = [Link]("TextButton", changeLog)


[Link] = [Link](1, -17, 0, 1)
[Link] = [Link](0, 16, 0, 12)
[Link] = "X"
[Link] = "SourceSans"
[Link] = [Link].Size12
[Link] = 0
coolButton.BackgroundColor3 = [Link](1, 0, 0)
[Link] = 0.2
coolButton.TextColor3 = [Link](1, 1, 1)
[Link] = 0.5
[Link] = 2

local line = makeSquare([Link](0, 0, 1, -14), [Link](1, 0, 0,


14),
[Link](0, 0, 0), 0.75, changeLog, 2)

local line2 = makeSquare([Link](0, 0, 0, 0), [Link](1, 0, 0, 14),


[Link](1, 1, 1), 0.9, changeLog, 1)

[Link] = "Change Log"


line2.TextColor3 = [Link](1, 1, 1)
[Link] = 0.75
[Link] = "SourceSans"
[Link] = [Link].Size12

[Link] = "Made by Depr1"


line.TextColor3 = [Link](1, 0.65, 0)
[Link] = 0.5
[Link] = "SourceSans"
[Link] = [Link].Size14
[Link] = "Left"

coolButton.MouseButton1Click:connect(function()
[Link] = false
end)

makeSquare([Link](0, -2, 0, 2), [Link](0, 340, 0, 404),


[Link](198/255, 198/255, 198/255), 0, creativeInv, 3)
makeSquare([Link](0, 338, 0, 0), [Link](0, 6, 0, 406),
[Link](85/255, 85/255, 85/255), 0, creativeInv, 2)
makeSquare([Link](0, 0, 0, 404), [Link](0, 342, 0, 4),
[Link](85/255, 85/255, 85/255), 0, creativeInv, 3)
makeSquare([Link](0, 2, 0, 0), [Link](0, 338, 0, 402),
[Link](198/255, 198/255, 198/255), 0, creativeInv, 3)
makeSquare([Link](0, -4, 0, -2), [Link](0, 4, 0, 406),
[Link](255/255, 255/255, 255/255), 0, creativeInv, 3)
makeSquare([Link](0, -2, 0, -4), [Link](0, 342, 0, 6),
[Link](255/255, 255/255, 255/255), 0, creativeInv, 2)
makeSquare([Link](0, 340, 0, -2), [Link](0, 2, 0, 2),
[Link](198/255, 198/255, 198/255), 0, creativeInv, 2)
makeSquare([Link](0, 340, 0, -4), [Link](0, 2, 0, 4),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, 342, 0, -2), [Link](0, 2, 0, 2),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, 344, 0, 0), [Link](0, 2, 0, 406),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, -4, 0, -4), [Link](0, 2, 0, 4),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, -2, 0, -6), [Link](0, 342, 0, 4),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, 0, 0, 406), [Link](0, 342, 0, 4),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, 342, 0, 404), [Link](0, 2, 0, 4),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, -4, 0, 404), [Link](0, 2, 0, 2),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, -2, 0, 406), [Link](0, 2, 0, 2),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
makeSquare([Link](0, -6, 0, -2), [Link](0, 2, 0, 406),
[Link](0/255, 0/255, 0/255), 0, creativeInv, 1)
local text = makeSquare([Link](0, 4, 0, 8), [Link](0, 0, 0, 0),
[Link](0/255, 0/255, 0/255), 1, creativeInv, 3)
[Link] = "Creative Inventory"
[Link] = "SourceSansSemibold"
[Link] = 14
[Link] = "Left"
--
local draggingBlockPicture = [Link]("ImageLabel", invGui)
[Link] = 1
[Link] = [Link](0, 32, 0, 32)
[Link] = 5
[Link]([Link](function()
local invMouse = player:GetMouse()
--local RS = game:GetService("RunService").RenderStepped
invMouse.Button2Down:connect(function()
draggingBlock = nil
end)
while RS:wait() do
[Link] = [Link](0, invMouse.X -
16, 0, invMouse.Y - 16)
if draggingBlock ~= nil then
[Link] = [Link]
else
[Link] = ""
end
end
end))

local done = false


local x = 0
local y = 0

for i,b in pairs(creativeInventory) do


local display = ""
if [Link] == "" then
display = [Link]
else
if [Link] then
display = [Link]
end
end
putInventorySlot([Link](0.5, (x*36) + 8, 0.5, (y*36) + 28),
display, creativeInv, 4).MouseButton1Down:connect(function()
if draggingBlock == nil then
draggingBlock = b
end
end)
x = x + 1
if x >= 8 then
x = 0
y = y + 1
end
end
if x == 0 then done = true end
while x < 8 and done == false do
putInventorySlot([Link](0.5, (x*36) + 8, 0.5, (y*36) + 28),
"", creativeInv, 4)
x = x + 1
end
for i = 1, 9 do
if toolBar[i] ~= nil then
local invSlot = putInventorySlot([Link](0, 8 + ((i-
1)*36), 0, 360), toolBar[i].frontTex, creativeInv, 4)
invSlot.MouseButton2Down:connect(function()
local imgLabel = invSlot:FindFirstChild("ImageLabel")
if imgLabel then
toolBar[i] = nil
[Link] = ""
end
end)
invSlot.MouseButton1Down:connect(function()
--updateHand = true
local imgLabel = invSlot:FindFirstChild("ImageLabel")
if toolBar[i] == nil then
toolBar[i] = draggingBlock
[Link] = [Link]
draggingBlock = nil
return
end
if toolBar[i] ~= nil and draggingBlock == nil then
draggingBlock = toolBar[i]
toolBar[i] = nil
[Link] = ""
return
elseif toolBar[i] ~= nil and draggingBlock ~= nil
then
--draggingBlock = toolBar[i]
--toolBar[i] = nil
[Link] = ""
local temp = toolBar[i]
toolBar[i] = draggingBlock
if imgLabel and draggingBlock ~= nil then
[Link] = [Link]
end
if imgLabel and draggingBlock == nil then
[Link] = ""
end
draggingBlock = temp
return
end
end)
else
local invSlot = putInventorySlot([Link](0, 8 + ((i-
1)*36), 0, 360), "", creativeInv, 4)
invSlot.MouseButton2Down:connect(function()
local imgLabel = invSlot:FindFirstChild("ImageLabel")
if imgLabel then
toolBar[i] = nil
[Link] = ""
end
end)
invSlot.MouseButton1Down:connect(function()
--updateHand = true
local imgLabel = invSlot:FindFirstChild("ImageLabel")
if toolBar[i] == nil then
toolBar[i] = draggingBlock
[Link] = [Link]
draggingBlock = nil
return
end
if toolBar[i] ~= nil and draggingBlock == nil then
draggingBlock = toolBar[i]
toolBar[i] = nil
[Link] = ""
return
elseif toolBar[i] ~= nil and draggingBlock ~= nil
then
--draggingBlock = toolBar[i]
--toolBar[i] = nil
[Link] = ""
local temp = toolBar[i]
toolBar[i] = draggingBlock
if imgLabel and draggingBlock ~= nil then
[Link] = [Link]
end
if imgLabel and draggingBlock == nil then
[Link] = ""
end
draggingBlock = temp
return
end
end)
end
end
return creativeInv
end
end
function putToolBarSlot(position, image, zindex)
local playerGui = player:FindFirstChild("PlayerGui")
if playerGui then
local gui = playerGui:FindFirstChild("ToolBar") or
[Link]("ScreenGui", playerGui)
[Link] = "ToolBar"
local slot = [Link]("ImageLabel", gui)
[Link] = position
[Link] = [Link](0, 32, 0, 32)
[Link] = 1
[Link] = 0
[Link] = image
[Link] = 2

local imgSlot = makeImage([Link](0, 0, 0, 0), [Link](0, 32, 0,


32),
"rbxassetid://347007448", slot)

[Link] = 0.25
[Link] = 1
imgSlot.ImageColor3 = [Link](0.225, 0.225, 0.225)

makeSquare([Link](0, 0, 0, 0), [Link](0, 2, 0, 32),


[Link](0/255, 0/255, 0/255), 0.7, slot)
makeSquare([Link](0, 2, 0, 0), [Link](0, 30, 0, 2),
[Link](0/255, 0/255, 0/255), 0.7, slot)
makeSquare([Link](0, -2, 0, -2), [Link](0, 36, 0, 2),
[Link](106/255, 106/255, 106/255), 0, slot)
makeSquare([Link](0, -2, 0, -2), [Link](0, 2, 0, 36),
[Link](106/255, 106/255, 106/255), 0, slot)
makeSquare([Link](0, 0, 0, 32), [Link](0, 34, 0, 2),
[Link](130/255, 130/255, 130/255), 0, slot)
makeSquare([Link](0, 32, 0, 0), [Link](0, 2, 0, 34),
[Link](130/255, 130/255, 130/255), 0, slot)
makeSquare([Link](0, -4, 0, -2), [Link](0, 2, 0, 38),
[Link](130/255, 130/255, 130/255), 0, slot)
makeSquare([Link](0, 34, 0, -2), [Link](0, 2, 0, 36),
[Link](106/255, 106/255, 106/255), 0, slot)
makeSquare([Link](0, -2, 0, 34), [Link](0, 38, 0, 2),
[Link](106/255, 106/255, 106/255), 0, slot)
makeSquare([Link](0, -4, 0, -4), [Link](0, 40, 0, 2),
[Link](156/255, 156/255, 156/255), 0, slot)
return slot
end
end
function divide(x, d)
if x ~= 0 and d ~= 0 then
return x/d
else
return x
end
end -- so it doesn't divide by zero
function getDistance(v1, v2)
return [Link](([Link]([Link](v2.X - v1.X), [Link](v2.Y - v1.Y),
[Link](v2.Z - v1.Z))).Magnitude)
end
function SnapToGrid(x, gridX)
local x = [Link]((x / gridX) + 0.5) * gridX
return x
end
function round(x)
if x%2 ~= 0.5 then
return [Link](x+0.5)
end
return x-0.5
end
function weldTo(part1, part2)
local weld = [Link]("Weld", part1)
weld.Part0 = part1
weld.Part1 = part2
return weld
end
function getMagnitudeXZ(velocity)
return [Link]([Link](velocity.X)^2 + [Link](velocity.Z)^2)
end
function findHumanoid(inst)
local find = inst
local hum = nil
repeat
if [Link] == "Workspace" then return nil end
find = [Link]
hum = find:FindFirstChild("Humanoid")
until hum
--if hum then print("found!!") else print("aw... not found") end
--if [Link] ~= "Humanoid" then hum = nil end
return hum
end
function getSideByLocation(loc)
local side = nil
if loc.X < 0 then side = "Left" end
if loc.X > 0 then side = "Right" end
if loc.Y > 0 then side = "Top" end
if loc.Y < 0 then side = "Bottom" end
if loc.Z < 0 then side = "Front" end
if loc.Z > 0 then side = "Back" end

if ([Link](loc.X) > 0 and [Link](loc.Y) > 0) or


([Link](loc.X) > 0 and [Link](loc.Z) > 0) or
([Link](loc.Y) > 0 and [Link](loc.Z) > 0)
then
return nil
end
return side
end
function getSideByLocationRedstone(loc)
local side = nil
if loc.X < 0 then side = "Left" end
if loc.X > 0 then side = "Right" end
if loc.Y > 0 then side = "Top" end
if loc.Y < 0 then side = "Bottom" end
if loc.Z < 0 then side = "Front" end
if loc.Z > 0 then side = "Back" end

if ([Link](loc.X) > 0 and [Link](loc.Y) > 0) or


([Link](loc.X) > 0 and [Link](loc.Z) > 0) or
([Link](loc.Y) > 0 and [Link](loc.Z) > 0)
then
return nil
end
return side
end
function getBlockAtRegion(region)
local blockFound = nil
for _,part in pairs([Link]:FindPartsInRegion3(region, nil,
[Link])) do
local usePart = true
if [Link] == "Debris" then usePart = false end
if usePart == true then
blockFound = part
break
end
end
return blockFound
end
function getRedstoneAtRegion(region)
local blockFound = nil
for _,part in pairs([Link]:FindPartsInRegion3(region, nil,
[Link])) do
if isRedstone(part) then
blockFound = part
break
end
end
return blockFound
end
function isRedstone(block)
local objType = block:FindFirstChild("ObjectType")
if objType then
if [Link] == "Redstone Dust" then
return true
else
return false
end
end
end
function updateRedstoneDust(dust, leftBlk, rightBlk, topBlk, bottomBlk, frontBlk,
backBlk, recursion)
local objType = nil
if dust then
objType = dust:FindFirstChild("ObjectType")
end

local redstoneDust = "rbxassetid://151911305"


local redstoneLine = "rbxassetid://151907047"
local redstoneCorner = "rbxassetid://151907106"
local redstoneT = "rbxassetid://151907156"
local redstoneCross = "rbxassetid://151906997"

local Rotation = 0

local theresRedstoneAtLeft = false


local theresRedstoneAtRight = false
local theresRedstoneAtFront = false
local theresRedstoneAtBack = false

if leftBlk then theresRedstoneAtLeft = isRedstone(leftBlk) end


if rightBlk then theresRedstoneAtRight = isRedstone(rightBlk) end
if frontBlk then theresRedstoneAtFront = isRedstone(frontBlk) end
if backBlk then theresRedstoneAtBack = isRedstone(backBlk) end

if objType then
if [Link] == "Redstone Dust" then
local topDecal = dust:FindFirstChild("Top")
if topDecal then
if theresRedstoneAtBack == false and theresRedstoneAtFront
== false and
theresRedstoneAtLeft == false and
theresRedstoneAtRight == false then
[Link] = redstoneDust
Rotation = 0
end

if theresRedstoneAtLeft == true or theresRedstoneAtRight ==


true then
[Link] = redstoneLine
Rotation = 0
end

if theresRedstoneAtFront == true or theresRedstoneAtBack ==


true then
[Link] = redstoneLine
Rotation = 90
end

if theresRedstoneAtLeft == true and theresRedstoneAtBack ==


true then
[Link] = redstoneCorner
Rotation = 0
end
if theresRedstoneAtBack == true and theresRedstoneAtRight
== true then
[Link] = redstoneCorner
Rotation = 90
end

if theresRedstoneAtRight == true and theresRedstoneAtFront


== true then
[Link] = redstoneCorner
Rotation = 180
end

if theresRedstoneAtFront == true and theresRedstoneAtLeft


== true then
[Link] = redstoneCorner
Rotation = -90
end

if theresRedstoneAtBack == true and theresRedstoneAtLeft ==


true
and theresRedstoneAtFront == true then
[Link] = redstoneT
Rotation = -90
end

if theresRedstoneAtLeft == true and theresRedstoneAtFront


== true
and theresRedstoneAtRight == true then
[Link] = redstoneT
Rotation = -180
end

if theresRedstoneAtFront == true and theresRedstoneAtRight


== true
and theresRedstoneAtBack == true then
[Link] = redstoneT
Rotation = 90
end

if theresRedstoneAtRight == true and theresRedstoneAtBack


== true
and theresRedstoneAtLeft == true then
[Link] = redstoneT
Rotation = 0
end

if theresRedstoneAtLeft == true and theresRedstoneAtRight


== true and
theresRedstoneAtFront == true and
theresRedstoneAtBack == true then
[Link] = redstoneCross
Rotation = 0
end
end
else
error("Not redstone dust.")
end
end
if recursion == true then
local function updateTex(blockTarget)
local leftSide = nil
local rightSide = nil
local frontSide = nil
local backSide = nil

local Point1 = [Link].p - [Link](2.6, 0.1, 2.6)


local Point2 = [Link].p + [Link](2.6, 0.1, 2.6)
local Region = [Link](Point1, Point2)
for _,part in pairs([Link]:FindPartsInRegion3(
Region,
nil,
[Link]
)) do
local objType = part:FindFirstChild("ObjectType")
if isRedstone(part) then
local side =
getSideByLocationRedstone([Link].p - [Link].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
end
end

updateRedstoneDust(blockTarget, leftSide, rightSide, nil, nil,


frontSide, backSide, false)
end
if leftBlk and theresRedstoneAtLeft then updateTex(leftBlk) end
if rightBlk and theresRedstoneAtRight then updateTex(rightBlk) end
if frontBlk and theresRedstoneAtFront then updateTex(frontBlk) end
if backBlk and theresRedstoneAtBack then updateTex(backBlk) end
end

if dust then [Link] = [Link]([Link].p.X, [Link].p.Y,


[Link].p.Z) * [Link](0, [Link](Rotation), 0) end
end
function placeBlock(block, cFPos, Mouse)
if block == nil then
if [Link].X <= 10 and [Link].Y <= 10 and
[Link].Z <= 10 and [Link] then
if [Link] ~= "Camera" then
--print([Link]:GetFullName())
local blkTar = [Link]
--[Link] = nil
local blockIsRedstone = isRedstone(blkTar)

local Point1 = [Link].p - [Link](2.7, 2.7, 2.7)


local Point2 = [Link].p + [Link](2.7, 2.7, 2.7)
local Region = [Link](Point1, Point2)
for _,part in pairs([Link]:FindPartsInRegion3(
Region,
nil,
[Link]
)) do

if part:FindFirstChild("IsBlock") then
local side1 = getSideByLocation([Link].p
- [Link].p)
if getSideByLocation([Link].p -
[Link].p) then
local texture =
part:FindFirstChild(side1)
if texture then
[Link] = 0
end
end
end
end

for i = 1, 9 do
local part = [Link]("Part", workspace)
[Link] = [Link](0, 0, 0)
[Link] = 1
[Link] = false
[Link] = [Link]([Link](-5, 5), 5,
[Link](-5, 5))
[Link] = "Debris"

[Link] =
[Link] *
[Link]([Link](-[Link].X/2,
[Link].X/2), [Link](-[Link].Y/2, [Link].Y/2), [Link](-
[Link].Z/2, [Link].Z/2))

[Link] =
[Link](0, 0.2, 0, 100, 100)

local billboard = [Link]("BillboardGui", part)


[Link] = [Link](1.2, 0, 1.2, 0)

local clipDescendant = [Link]("TextLabel",


billboard)
[Link] = [Link](0.5, 0, 0.5, 0)
[Link] = 1
[Link] = ""
[Link] = true

local img = [Link]("ImageLabel",


clipDescendant)
[Link] = [Link](2, 0, 2, 0)
[Link] = 1
[Link] = [Link]([Link](-70, 70)/100, 0,
[Link](-70, 70)/100, 0)

local tex = blkTar:FindFirstChild("Front")


if tex then
[Link] = [Link]
else
[Link] = "rbxassetid://744949545"
end

if [Link] == "rbxassetid://744949545" then


img.ImageColor3 = [Link]
end

[Link]:connect(function(prt)
if prt ~= blkTar then
[Link] = true
end
end)

[Link]([Link](function()
wait([Link](50, 65)/100)
part:Destroy()
end))
--[Link] = false
end
blkTar:Destroy()
if blockIsRedstone == true then
local leftSide = nil
local rightSide = nil
local frontSide = nil
local backSide = nil

local Point1 = [Link].p - [Link](2.6,


0.1, 2.6)
local Point2 = [Link].p + [Link](2.6,
0.1, 2.6)
local Region = [Link](Point1, Point2)
for _,part in
pairs([Link]:FindPartsInRegion3(
Region,
nil,
[Link]
)) do
local objType =
part:FindFirstChild("ObjectType")
if isRedstone(part) then
local side =
getSideByLocationRedstone([Link].p - [Link].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
end
end

updateRedstoneDust(nil, leftSide, rightSide, nil,


nil, frontSide, backSide, true)
end
end
end
return nil
else
local blkMouseTarget = [Link]

local blockPlaced = [Link]("Part", workspace)


[Link] = "Fabric"
[Link] = [Link]
[Link] = true
[Link] = [Link]

[Link] = cFPos

local blockType = [Link]("StringValue", blockPlaced)


[Link] = "ObjectType"
[Link] = [Link]

[Link] = [Link]
putTexture(blockPlaced, [Link], [Link],
[Link], [Link], [Link], [Link],
"Texture")

if [Link] == "Slab" then


[Link] = [Link] / [Link](1, 2, 1)
[Link] = [Link] * [Link](0, -
[Link].Y/2, 0)
elseif [Link] == "Redstone Dust" then
[Link] = [Link] * [Link](0, -1.3, 0)
[Link] = false
local canPlace = false

if isRedstone(blkMouseTarget) == true then


blockPlaced:Destroy()
return
end

local partBelow = getBlockAtRegion([Link](


[Link].p - [Link](1, 1, 1),
[Link].p + [Link](1, 1, 1)
))

if partBelow then
local targetObjType =
partBelow:FindFirstChild("ObjectType")
if targetObjType then
if [Link] == "Block" then
canPlace = true
end
end
end

if canPlace == false then


blockPlaced:Destroy()
return
end

local leftSide = nil


local rightSide = nil
local frontSide = nil
local backSide = nil

local Point1 = [Link].p - [Link](2.6, 0.1, 2.6)


local Point2 = [Link].p + [Link](2.6, 0.1, 2.6)
local Region = [Link](Point1, Point2)
for _,part in pairs([Link]:FindPartsInRegion3(
Region,
nil,
[Link]
)) do
local objType = part:FindFirstChild("ObjectType")
if isRedstone(part) then

local side =
getSideByLocationRedstone([Link].p - [Link].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

--if getSideByLocation(cFPos.p - [Link].p)


then
-- local texture =
part:FindFirstChild(side1)
-- if texture then
-- [Link] = 1
-- end
--end
--[[local side2 =
getSideByLocation([Link].p - cFPos.p)
if getSideByLocation(cFPos.p - [Link].p)
then
local texture =
blockPlaced:FindFirstChild(side2)
if texture then
[Link] = 1
end
end]]
end
end

updateRedstoneDust(blockPlaced, leftSide, rightSide, nil, nil,


frontSide, backSide, true)

--local partBelow = getBlockAtRegion([Link](


-- [Link].p - [Link](1, 1, 1),
-- [Link].p + [Link](1, 1, 1)
--))
end

if [Link] == [Link] then


local targetObjType = [Link]:FindFirstChild("ObjectType")
if targetObjType then
if [Link] == "Slab" then
local side = [Link] --
getSideByLocation([Link] - cFPos.p)
if side == "Bottom" or side == "Top" then
[Link] = [Link] *
[Link](1, 2, 1)
[Link] = [Link] *
[Link](0, [Link].Y/2, 0)

[Link] = "Block"

blockPlaced:Destroy()
return
end
end
end
end

local Point1 = cFPos.p - [Link](2.7, 2.7, 2.7)


local Point2 = cFPos.p + [Link](2.7, 2.7, 2.7)
local Region = [Link](Point1, Point2)
for _,part in pairs([Link]:FindPartsInRegion3(
Region,
nil,
[Link]
)) do
local objType = part:FindFirstChild("ObjectType")
if part:FindFirstChild("IsBlock") and objType then
local doNothing = false
if [Link] == "Slab" or [Link] == "Slab"
then doNothing = true end
if [Link] == [Link] and doNothing == false
then
local side1 = getSideByLocation(cFPos.p -
[Link].p)
if getSideByLocation(cFPos.p - [Link].p) then
local texture = part:FindFirstChild(side1)
if texture then
[Link] = 1
end
end
local side2 = getSideByLocation([Link].p -
cFPos.p)
if getSideByLocation(cFPos.p - [Link].p) then
local texture =
blockPlaced:FindFirstChild(side2)
if texture then
[Link] = 1
end
end
end
end
end

local isBlock = [Link]("CFrameValue", blockPlaced)


[Link] = "IsBlock"

if [Link] == true then


local connectedTo = [Link]("ObjectValue", blockPlaced)
[Link] = "ConnectedTo"
[Link] = false
[Link] = false
local detector = [Link]("Part",
workspace:WaitForChild("Camera"))
[Link] = 1
[Link] = false
[Link] = [Link](1, 0, 1)
local weldDetector = [Link]("Motor6D", detector)
weldDetector.Part0 = detector
weldDetector.Part1 = blockPlaced
weldDetector.C1 = [Link](0, -[Link].Y/2, 0)
local landed = false
local function fallingBlock()
[Link]([Link](function()
local falling =
blockPlaced:FindFirstChild("IsFalling") or [Link]("CFrameValue", blockPlaced)
[Link] = "IsFalling"
local grav = 0
while RS:wait() do
if landed then falling:Destroy() break end
grav = [Link](-1, grav - 0.0025)
--[Link] = [Link](cFPos.X,
[Link].Y + grav, cFPos.Z)
end
end))
end
fallingBlock()
[Link]:connect(function(part)
if [Link] == false and part ~= blockPlaced
and [Link] ~= "Debris" and part:FindFirstChild("IsFalling") == nil and
findHumanoid(part) == nil then
landed = true
[Link] = true
[Link] = [Link](0, 0, 0)
[Link] = true
[Link] = part
local yOrigin = [Link].Y +
([Link].Y/2) + ([Link].Y/2)
[Link] = [Link](cFPos.X, yOrigin,
cFPos.Z)
--detector:Destroy()
local falling = false
[Link]:connect(function()
if [Link].Y ~= yOrigin and falling ==
false then
falling = true
wait(0.075)
landed = false
[Link] = false
[Link] = false
[Link] = [Link](0, 0,
0)
fallingBlock()
falling = false
end
end)
[Link]:connect(function()
--print("hi")
if [Link] == nil and falling
== false then
falling = true
landed = false
[Link] = false
[Link] = false
[Link] = [Link](0, 0,
0)
fallingBlock()
end
end)
end
end)
end

local blockSound = [Link]("Sound", blockPlaced)


[Link] = [Link]
[Link] = [Link]
[Link] = [Link](95, 105)/100
[Link] = true
blockSound:Play()
return blockPlaced
end
end
if player then
local char = [Link]
if char then
for _,cM in pairs(char:GetChildren()) do
if [Link] == "CharacterMesh" then cM:Destroy() end
end

--[]
local gui = [Link]:FindFirstChild("ToolBar") or
[Link]("ScreenGui", [Link])
[Link] = "ToolBar"

makeSquare([Link](0.5, -166, 1, -111), [Link](0, 364, 0, 2),


[Link](0/255, 0/255, 0/255), 0, gui)
makeSquare([Link](0.5, -166, 1, -111 + 42), [Link](0, 364, 0, 2),
[Link](0/255, 0/255, 0/255), 0, gui)
makeSquare([Link](0.5, -166, 1, -111), [Link](0, 2, 0, 44),
[Link](0/255, 0/255, 0/255), 0, gui)
makeSquare([Link](0.5, -166 + 362, 1, -111), [Link](0, 2, 0, 44),
[Link](0/255, 0/255, 0/255), 0, gui)

for i = 1, 9 do
if toolBar[i] ~= nil then
local img = putToolBarSlot([Link](0.5, -160 + ((i-
1)*40), 1, -105), toolBar[i].frontTex)
[Link]([Link](function()
while wait() do
if toolBar[i] ~= nil then
if toolBar[i].displayTex == "" then
[Link] = toolBar[i].frontTex
else
[Link] = toolBar[i].displayTex
end
else
[Link] = ""
end
end
end))
else
local img = putToolBarSlot([Link](0.5, -160 + ((i-
1)*40), 1, -105), "")
[Link]([Link](function()
while wait() do
if toolBar[i] ~= nil then
if toolBar[i].displayTex == "" then
[Link] = toolBar[i].frontTex
else
[Link] = toolBar[i].displayTex
end
else
[Link] = ""
end
end
end))
end
end

local creativeInventoryGUI = makeInventory()

local humRootPart = char:WaitForChild("HumanoidRootPart")


local head = char:WaitForChild("Head")
local torso = char:WaitForChild("Torso")
local lArm = char:WaitForChild("Left Arm")
local rArm = char:WaitForChild("Right Arm")
local lLeg = char:WaitForChild("Left Leg")
local rLeg = char:WaitForChild("Right Leg")

local humanoid = char:WaitForChild("Humanoid")


[Link]:ClearAllChildren()
[Link] = 0.3
[Link] = false

-- Heart bar
local hpFrame = makeSquare([Link](0.5, -166, 1, -130), [Link](0,
162, 0, 18),
[Link](0/255, 0/255, 0/255), 1, gui, 1)

local hearts = makeSquare([Link](0, 0, 0, 0), [Link](0, 162, 0,


18),
[Link](0/255, 0/255, 0/255), 1, hpFrame, 1)
[Link] = true

for i = 1, 10 do
local heartImg = makeImage([Link](0, (i-1)*16, 0, 0),
[Link](0, 18, 0, 18),
"rbxassetid://1494233443", hearts, 2)

makeSquare([Link](0, 4, 0, 4), [Link](0, 2, 0, 2),


[Link](255/255, 200/255, 200/255), 0, heartImg, 2)

heartImg.ImageColor3 = [Link](240/255, 0, 0)

local emptyHeart = makeImage([Link](0, (i-1)*16, 0, 0),


[Link](0, 18, 0, 18),
"rbxassetid://1494233443", hpFrame, 1)
emptyHeart.ImageColor3 = [Link](0.3, 0.3, 0.3)

local outline = makeImage([Link](0, 0, 0, 0), [Link](0, 18,


0, 18),
"rbxassetid://1494176679", emptyHeart, 1)
outline.ImageColor3 = [Link](0, 0, 0)

local oldHP = [Link]/[Link] --


SnapToGrid(([Link]/[Link])*162, 8)
[Link]:connect(function()
local hp = [Link]/[Link] --
SnapToGrid(([Link]/[Link])*162, 8)
if SnapToGrid(oldHP*162, 8) < SnapToGrid(hp*162, 8) then
outline.ImageColor3 = [Link](1, 1, 1)
wait(0.1)
outline.ImageColor3 = [Link](0, 0, 0)
wait(0.1)
end
if oldHP > hp then
for i = 1, 2 do
outline.ImageColor3 = [Link](1, 1, 1)
wait(0.1)
outline.ImageColor3 = [Link](0, 0, 0)
wait(0.1)
end
end
oldHP = hp
end)
[Link]([Link](function()
local yIncrease = 0
local originalY = [Link]

while wait() do
if [Link]/[Link] <= 0.27 then
if yIncrease <= 0 then
yIncrease = [Link](1, 2)
else
yIncrease = yIncrease - 1
end

[Link] = [Link](0,
[Link], 0, -yIncrease)
[Link] = [Link](0,
[Link], 0, -yIncrease)
else
if yIncrease >= 1 then
yIncrease = yIncrease - 1

[Link] = [Link](0,
[Link], 0, -yIncrease)
[Link] = [Link](0,
[Link], 0, -yIncrease)
end
end
end
end))
end

[Link] = nil

if char:FindFirstChild("Animate") then
[Link]:Remove()
end

[Link] = [Link](1.3, 1.3, 1.3)


putTexture(head, "rbxassetid://38738031", "rbxassetid://36047330",
"rbxassetid://36047341", "rbxassetid://36047347",
"rbxassetid://36047323", "rbxassetid://36047315", "Decal")
head:WaitForChild("Mesh"):Destroy()
head:WaitForChild("face"):Destroy()
[Link] = [Link](1.3, 1.95, 0.65)
putTexture(torso, "rbxassetid://38934753", "rbxassetid://38934731",
"rbxassetid://38934780", "rbxassetid://38934740",
"rbxassetid://38934762", "rbxassetid://38934762", "Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(lArm, "rbxassetid://38934581", "rbxassetid://38934560",
"rbxassetid://38934613", "rbxassetid://38934568",
"rbxassetid://38934601", "rbxassetid://38934591", "Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(rArm, "rbxassetid://38934560", "rbxassetid://38934581",
"rbxassetid://38934613", "rbxassetid://38934568",
"rbxassetid://38934601", "rbxassetid://38934591", "Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(lLeg, "rbxassetid://38936226", "rbxassetid://38936209",
"rbxassetid://38934719", "rbxassetid://38934712",
"rbxassetid://38936255", "rbxassetid://38936242", "Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(rLeg, "rbxassetid://38936209", "rbxassetid://38936226",
"rbxassetid://38934719", "rbxassetid://38934712",
"rbxassetid://38936242", "rbxassetid://38936255", "Decal")

-- now for the real stuff


-- |
-- |
-- V
[Link]("BlockMesh", torso)
[Link]("BlockMesh", lArm)
[Link]("BlockMesh", rArm)
[Link]("BlockMesh", lLeg)
[Link]("BlockMesh", rLeg)

local camera = [Link]

local camPart = [Link]("Part", camera)


[Link] = [Link](0, 0, 0)
[Link] = [Link]
[Link] = false
[Link] = true
[Link] = 1

local cameraHand = [Link]("Part", camera)


[Link] = [Link](0.65, 1.95, 0.65)
[Link] = false
[Link] = true
[Link] = "CameraHand"
putTexture(cameraHand, "rbxassetid://38934560",
"rbxassetid://38934581",
"rbxassetid://38934613", "rbxassetid://38934568",
"rbxassetid://38934601", "rbxassetid://38934591", "Decal")

local cameraHandItem = [Link]("Part", camera)


[Link] = "CameraHandItem"
[Link] = [Link](1.1, 1.1, 1.1)
[Link] = true
[Link] = false
[Link] = 1

-- welding doesn't really work.


--local cameraHandWeld = [Link]("Motor6D", camPart)
--cameraHandWeld.Part0 = camPart
--cameraHandWeld.Part1 = cameraHand
--cameraHandWeld.C0 = [Link](5, 0, 0)

local rootJoint = torso:FindFirstChild("RootJoint") or


[Link]("Motor6D", torso)
[Link] = "RootJoint"
rootJoint.Part0 = humRootPart
rootJoint.Part1 = torso
rootJoint.C1 = [Link](0, 0.05, 0)

local neck = torso:FindFirstChild("Neck") or [Link]("Motor6D",


torso)
[Link] = "Neck"
neck.Part0 = head
neck.Part1 = torso

local lS = torso:FindFirstChild("Left Shoulder") or


[Link]("Motor6D", torso)
[Link] = "Left Shoulder"
lS.Part0 = lArm
lS.Part1 = torso
lS.C0 = [Link](-0.325, 0.975, 0) * [Link](0, 0, 0)
lS.C1 = [Link](0.65, 0.975, 0)

local rS = torso:FindFirstChild("Right Shoulder") or


[Link]("Motor6D", torso)
[Link] = "Right Shoulder"
rS.Part0 = rArm
rS.Part1 = torso
rS.C0 = [Link](-0.325, 0.975, 0) * [Link](0, 0, 0)
rS.C1 = [Link](-0.65, 0.975, 0) * [Link](0, -[Link](180),
0)

local lH = torso:FindFirstChild("Left Hip") or [Link]("Motor6D",


torso)
[Link] = "Left Hip"
lH.Part0 = lLeg
lH.Part1 = torso
lH.C0 = [Link](0, 0.975, 0)
lH.C1 = [Link](0.325, -0.975, 0) * [Link](0, 0, 0)

local rH = torso:FindFirstChild("Right Hip") or [Link]("Motor6D",


torso)
[Link] = "Right Hip"
rH.Part0 = rLeg
rH.Part1 = torso
rH.C0 = [Link](0, 0.975, 0)
rH.C1 = [Link](-0.325, -0.975, 0) * [Link](0, -
[Link](180), 0)

for _,p in pairs(char:GetChildren()) do


if [Link] ~= "HumanoidRootPart" and [Link] == "Part" then
local hit = [Link]("Part", char)
[Link] = "DamagePart"
[Link] = [Link]("Bright red")
[Link] = "SmoothPlastic"
[Link] = 1
[Link] = [Link]([Link].X + 0.05, [Link].Y + 0.05,
[Link].Z + 0.05)
[Link] = false
weldTo(hit, p)
end
end

wait(0.25)

-- local billNameTag = [Link]("BillboardGui", char)


-- [Link] = [Link](1, 0, 1, 0)
-- [Link] = head
-- [Link] = player
--
-- local textLabel = [Link]("TextLabel", billNameTag)
-- [Link] = "Arcade"
-- --[Link] = [Link](1, 0, 1, 0)
-- [Link] = true
-- --[Link] = 100
-- [Link] = targetName
-- [Link] = [Link]([Link].X/100, 0, 0.75, 0)
-- [Link] = 0
-- textLabel.BackgroundColor3 = [Link](0, 0, 0)
-- textLabel.TextColor3 = [Link](1, 1, 1)
-- [Link] = 0.5
--
-- if [Link] == "Depr1" then
-- textLabel.TextColor3 = [Link](1, 0.75, 0)
-- end
--
-- [Link] = [Link](-[Link].X/200 + 0.5,
0)
-- [Link] = [Link](0, 1.5, 0)

[Link] = 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 oldHP = [Link]


local damageTime = 0

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

local selectBox = [Link]("SelectionBox", camera)


[Link] = 0.5
selectBox.Color3 = [Link](0, 0, 0)
[Link] = 0

local handItem = [Link]("Part", char)


[Link] = "HandItem"
[Link] = [Link](0.52, 0.52, 0.52)
[Link] = 1
[Link] = false

local handItemWeld = [Link]("Weld", char)


handItemWeld.Part0 = handItem
handItemWeld.Part1 = lArm
handItemWeld.C1 = [Link](0, -0.9, -0.6) * [Link]([Link](-
10), [Link](45), 0)

local sound = [Link]("Sound", char)


[Link] = "Hurt"
[Link] = 10
[Link] = "rbxassetid://535690488"

local facesToResize = {"Front", "Back", "Left", "Right", "Bottom",


"Top"}

local camCurrentZoom = ([Link].p - [Link]).magnitude


Mouse.Button1Down:connect(function()
if punchEnded == 1 then punching = 1 end
if [Link] then
if getDistance([Link].p, [Link].p) <= 10.4 then
local humanoid =
[Link]:FindFirstChild("Humanoid")
if humanoid then
[Link] = [Link] - 10
local parts = [Link]:GetChildren()
for _,p in pairs(parts) do
if [Link] == "Part" then
[Link] =
[Link]([Link].X + ([Link].X * 18), [Link].Y +
([Link].Y * 18) + 8, [Link].Z + ([Link].Z *
18))
end
end
return
end
local x = [Link].p.X
local y = [Link].p.Y
local z = [Link].p.Z
if [Link] == "Right" then x = x +
2.6 end
if [Link] == "Left" then x = x -
2.6 end
if [Link] == "Top" then y = y + 2.6
end
if [Link] == "Bottom" then y = y -
2.6 end
if [Link] == "Back" then z = z +
2.6 end
if [Link] == "Front" then z = z -
2.6 end
if [Link].X > 2.6 or [Link].Y >
2.6 or [Link].Z > 2.6 then
x = [Link].p.X
y = [Link].p.Y
z = [Link].p.Z
end
-- local x = round([Link](mouseX)/2.6)*2.6
-- local y = round([Link](mouseY)/2.6)*2.6
-- local z = round([Link](mouseZ)/2.6)*2.6
-- if [Link].p.X < 0 then x = x * -1 end
-- if [Link].p.Y < 0 then y = y * -1 end
-- if [Link].p.Z < 0 then z = z * -1 end
local blk = placeBlock(toolBar[selectedBlock + 1],
[Link](SnapToGrid(x, 2.6), SnapToGrid(y, 2.6), SnapToGrid(z, 2.6)), Mouse)
if blk then
for _,f in pairs(facesToResize) do
blk:WaitForChild(f).StudsPerTileU = 2.6
blk:WaitForChild(f).StudsPerTileV = 2.6
end
end
end
end
end)

local changedItem = false


local hasItemOnHand = 0
local hi = 0
-- selection thingy
local selectLabel = [Link]("TextLabel", gui)
[Link] = [Link](0, 32, 0, 32)
[Link] = [Link](0.5, -160 + (selectedBlock*40), 1, -
105)
[Link] = 1
selectLabel.BackgroundColor3 = [Link](1, 1, 1)
[Link] = 0
[Link] = ""
[Link] = 3

makeSquare([Link](0, -2, 0, 0), [Link](0, 2, 0, 32),


[Link](88/255, 102/255, 85/255), 0, selectLabel, 3)
makeSquare([Link](0, -2, 0, -2), [Link](0, 32, 0, 2),
[Link](88/255, 102/255, 85/255), 0, selectLabel, 3)
makeSquare([Link](0, -2, 0, 32), [Link](0, 36, 0, 2),
[Link](212/255, 231/255, 207/255), 0, selectLabel, 3)
makeSquare([Link](0, 32, 0, 0), [Link](0, 2, 0, 32),
[Link](212/255, 231/255, 207/255), 0, selectLabel, 3)
makeSquare([Link](0, 34, 0, -4), [Link](0, 2, 0, 40),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, -4, 0, -4), [Link](0, 2, 0, 40),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, -4, 0, -4), [Link](0, 40, 0, 2),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, 32, 0, -2), [Link](0, 2, 0, 2),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, -4, 0, 34), [Link](0, 40, 0, 2),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, -6, 0, -6), [Link](0, 2, 0, 42),
[Link](212/255, 231/255, 207/255), 0, selectLabel, 3)
makeSquare([Link](0, -6, 0, -6), [Link](0, 42, 0, 2),
[Link](212/255, 231/255, 207/255), 0, selectLabel, 3)
makeSquare([Link](0, 36, 0, -4), [Link](0, 2, 0, 40),
[Link](88/255, 102/255, 85/255), 0, selectLabel, 3)
makeSquare([Link](0, 36, 0, -6), [Link](0, 2, 0, 2),
[Link](163/255, 180/255, 159/255), 0, selectLabel, 3)
makeSquare([Link](0, 38, 0, -6), [Link](0, 2, 0, 44),
[Link](0/255, 0/255, 0/255), 0.3, selectLabel, 3)
makeSquare([Link](0, -8, 0, -6), [Link](0, 2, 0, 44),
[Link](0/255, 0/255, 0/255), 0.3, selectLabel, 3)
makeSquare([Link](0, -8, 0, -8), [Link](0, 48, 0, 2),
[Link](0/255, 0/255, 0/255), 0, selectLabel, 3)
--
local oldItemOnHand = itemOnHand
function updateItemOnHand()
for _,d in pairs(handItem:GetChildren()) do
d:Destroy()
end
for _,d in pairs(cameraHandItem:GetChildren()) do
d:Destroy()
end
if itemOnHand ~= nil then
putTexture(handItem, [Link],
[Link],
[Link], [Link],
[Link], [Link], "Texture")

putTexture(cameraHandItem, [Link],
[Link],
[Link], [Link],
[Link], [Link], "Texture")

for _,f in pairs(facesToResize) do


handItem:WaitForChild(f).StudsPerTileU = 0.52
handItem:WaitForChild(f).StudsPerTileV = 0.52
end

for _,f in pairs(facesToResize) do


cameraHandItem:WaitForChild(f).StudsPerTileU = 1.1
cameraHandItem:WaitForChild(f).StudsPerTileV = 1.1
end

[Link] = 1
for _,f in pairs(facesToResize) do
cameraHand:WaitForChild(f).Transparency = 1
cameraHand:WaitForChild(f).Transparency = 1
end
else
[Link] = 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
[Link]: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 == [Link]
then
sprinting = true
[Link] = [Link] * 1.5
pressedWTimes = 0
[Link]([Link](function()
for i = 1, 24 do
[Link] = [Link] +
((24-i)/10)
RS:wait()
end
end))
end
pressedWTimes = pressedWTimes + 1
[Link]([Link](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
[Link] = [Link] / 2
[Link] = [Link] - 0.35
rootJoint.C1 = [Link](0, 0.325, 0) *
[Link]([Link](sneaking*45), 0, 0)
lH.C0 = [Link](0, 0.975, 0) * [Link](-
[Link](sneaking*45), 0, 0)
rH.C0 = [Link](0, 0.975, 0) *
[Link]([Link](sneaking*45), 0, 0)
--print("Sneaking...")
end
if key == "e" then
if [Link] == true then
[Link] = false
elseif [Link] == false then
[Link] = 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
[Link] = [Link](0.5, -160 +
((selectedBlock)*40), 1, -105)
end)

local interrump = false


game:GetService('RunService'):BindToRenderStep('Camera',
[Link], function()
if [Link] < oldHP then
interrump = true
RS:wait()
interrump = false
for i = 1, 15 do
if interrump == true then interrump = false break end
[Link] = [Link] * [Link](0, 0, -
[Link](15-i))
RS:wait()
end
end
end)

local changedPerspective = 0
[Link]: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
[Link] = [Link] / 1.5
[Link]([Link](function()
for i = 1, 24 do
[Link] = [Link] - ((24-
i)/10)
RS:wait()
end
end))
end
if key == "q" and sprinting == false then
sneaking = 0
[Link] = [Link] * 2
[Link] = [Link] + 0.35
rootJoint.C1 = [Link](0, 0.05, 0) * [Link](0, 0,
0)
lH.C0 = [Link](0, 0.975, 0) * [Link](0, 0, 0)
rH.C0 = [Link](0, 0.975, 0) * [Link](0, 0, 0)
--print("Stopped sneaking...")
end
if key == "r" then
if changedPerspective == 0 then
changedPerspective = 1
[Link] = [Link] * [Link](0,
[Link](180), 0)
elseif changedPerspective == 1 then
changedPerspective = 0
[Link] = [Link] * [Link](0,
[Link](-180), 0)
end
end
end)

[Link] = camera

local dead = false


local humOffset = [Link](0, 0, 0)
local camHandY = 0
local camHandZ = 0
local cameraHandCFrame = [Link](1.15, -1.35, -2) *
[Link]([Link](90), [Link](55), [Link](20))
local bodyRot = [Link](0, 0, 0)
local lastCamRot = [Link]
while RS:wait() do
[Link] = [Link](0,
SnapToGrid(([Link]/[Link])*162, 8) + 2, 0, 18)
camCurrentZoom = (([Link](0, -1*sneaking, 0) *
[Link]).p - [Link]).magnitude
if itemOnHand ~= nil then
hasItemOnHand = 1
[Link] = [Link]
else
hasItemOnHand = 0
[Link] = 1
end
if [Link] <= 0 and dead == false then
dead = true
local corpseCF = [Link] + [Link](0, -
2.925, 0)
local corpse = [Link]("Part", workspace)
[Link] = "Dead Corpse"
[Link] = [Link](3, 1, 3)
[Link] = corpseCF
[Link] = 1
[Link] = [Link](1,
1, 0, 1, 1)

local dHead = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

local dTorso = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

local dLArm = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

local dRArm = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

local dLLeg = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

local dRLeg = [Link]("Part", corpse)


[Link] = false
[Link] = "Fabric"

[Link] = [Link](1.3, 1.3, 1.3)


putTexture(dHead, "rbxassetid://38738031",
"rbxassetid://36047330",
"rbxassetid://36047341", "rbxassetid://36047347",
"rbxassetid://36047323", "rbxassetid://36047315",
"Decal")

[Link] = [Link](1.3, 1.95, 0.65)


putTexture(dTorso, "rbxassetid://38934753",
"rbxassetid://38934731",
"rbxassetid://38934780", "rbxassetid://38934740",
"rbxassetid://38934762", "rbxassetid://38934762",
"Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(dLArm, "rbxassetid://38934581",
"rbxassetid://38934560",
"rbxassetid://38934613", "rbxassetid://38934568",
"rbxassetid://38934601", "rbxassetid://38934591",
"Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(dRArm, "rbxassetid://38934560",
"rbxassetid://38934581",
"rbxassetid://38934613", "rbxassetid://38934568",
"rbxassetid://38934601", "rbxassetid://38934591",
"Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(dLLeg, "rbxassetid://38936226",
"rbxassetid://38936209",
"rbxassetid://38934719", "rbxassetid://38934712",
"rbxassetid://38936255", "rbxassetid://38936242",
"Decal")

[Link] = [Link](0.65, 1.95, 0.65)


putTexture(dRLeg, "rbxassetid://38936209",
"rbxassetid://38936226",
"rbxassetid://38934719", "rbxassetid://38934712",
"rbxassetid://38936242", "rbxassetid://38936255",
"Decal")

local weldCorpse = weldTo(dTorso, corpse)


weldCorpse.C0 = [Link](0, -1.95 - 0.4, 0)

-- lazy naming...

local weld1 = weldTo(dTorso, dHead)


weld1.C0 = [Link](0, 1.625, 0)

local weld2 = weldTo(dTorso, dLArm)


weld2.C0 = [Link](0.325, 0.975, 0) * [Link](0,
0, 0)
weld2.C1 = [Link](-0.65, 0.975, 0)

local weld3 = weldTo(dTorso, dRArm)


weld3.C0 = [Link](-0.325, 0.975, 0) * [Link](0,
0, 0)
weld3.C1 = [Link](-0.65, 0.975, 0) * [Link](0, -
[Link](180), 0)

local weld4 = weldTo(dTorso, dLLeg)


weld4.C0 = [Link](0, -0.975, 0)
weld4.C1 = [Link](-0.325, 0.975, 0) * [Link](0,
0, 0)

local weld5 = weldTo(dTorso, dRLeg)


weld5.C0 = [Link](0, -0.975, 0)
weld5.C1 = [Link](-0.325, 0.975, 0) * [Link](0,
-[Link](180), 0)

for _,p in pairs(corpse:GetChildren()) do


if [Link] == "Part" then
local hit = [Link]("Part", p)
[Link] = "DamagePart"
[Link] = [Link]("Bright red")
[Link] = "SmoothPlastic"
[Link] = 0.5
[Link] = [Link]([Link].X + 0.05,
[Link].Y + 0.05, [Link].Z + 0.05)
[Link] = false
weldTo(hit, p)
end
end

[Link] = nil
[Link] = nil
[Link] = nil
[Link] = nil
[Link] = nil
[Link] = nil

weldTo(dTorso, humRootPart)

[Link]([Link](function()
for i = 1, 55 do
[Link] = corpseCF --*
--[Link]([Link](-
[Link].X), 0, [Link](-[Link].Z))

weldCorpse.C1 =
weldCorpse.C1:lerp([Link](0, 0, 0) * [Link](0, 0, [Link](90)), 0.075)
RS:wait()
end
for _,p in pairs(corpse:GetChildren()) do
p:Destroy()
end
[Link] = true

local smoke = [Link]("ParticleEmitter", corpse)


[Link] = [Link]({
[Link](0, 0.6),
[Link](1, 0.6)
})
[Link] = "rbxassetid://1494734425"
[Link] = 100
[Link] = [Link](0.6, 1.2)
[Link] = [Link](2, 5)
[Link] = [Link](-30, 30)

wait(0.07)

[Link] = false

wait(2)

corpse:Destroy()
end))
print("You died!")
end
if [Link] < oldHP then
damageTime = 60
sound:Play()
end
oldHP = [Link]
if damageTime > 0 and [Link] > 0 then
for _,p in pairs(char:GetChildren()) do
if [Link] ~= "HumanoidRootPart" and [Link] ==
"Part" then
if [Link] == "DamagePart" then
[Link] = 0.5
end
end
end
damageTime = damageTime - 2
if damageTime <= 0 then
for _,p in pairs(char:GetChildren()) do
if [Link] ~= "HumanoidRootPart" and [Link]
== "Part" then
if [Link] == "DamagePart" then
[Link] = 1
end
end
end
end
end
[Link] = [Link] * [Link](0,
[Link](changedPerspective*180), 0)

if getMagnitudeXZ([Link]) > 1 then


if walkAnim >= 1 then
increaseWalkAnim = -1
elseif walkAnim <= -1 then
increaseWalkAnim = 1
end
walkAnim = walkAnim + (increaseWalkAnim/(10+(sneaking*20)))
* ((5 + getMagnitudeXZ([Link]))/20)
else
walkAnim = 0
end

--lH.C0 = [Link](0, 0.975, 0) * [Link](-


[Link](sneaking*45), 0, 0)
--rH.C0 = [Link](0, 0.975, 0) *
[Link]([Link](sneaking*45), 0, 0)
lH.C0 = lH.C0:lerp([Link](0, 0.975, 0) *
[Link]([Link]([Link](-60), [Link]([Link](60), -[Link](sneaking*45)
+ [Link](damageTime*1.5) +
[Link](walkAnim*getMagnitudeXZ([Link])*5/(1+sneaking)))), 0, 0), 0.15)
rH.C0 = rH.C0:lerp([Link](0, 0.975, 0) *
[Link]([Link]([Link](-60), [Link]([Link](60), [Link](sneaking*45)
+ [Link](damageTime*1.5) +
[Link](walkAnim*getMagnitudeXZ([Link])*5/(1+sneaking)))), 0, 0), 0.15)
--
--rootJoint.C0 = [Link](0, 0, 0) * [Link](0, 0, 0)
--print([Link]([Link].Y) -
[Link]([Link].Y))
--if ([Link].Y * 2) - ([Link].Y +
[Link].Y) > 45 then
--[Link] = [Link] *
[Link](0, [Link](-45 + [Link].Y), 0)
--print("-45")
--end
--if ([Link].Y * 2) - ([Link].Y +
[Link].Y) < -45 then
--[Link] = [Link] *
[Link](0, [Link](45 + [Link].Y), 0)
--print("45")
--end

if changedItem then
changedItem = false
[Link]([Link](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

--move these arms


rootJoint.C1 = rootJoint.C1:lerp([Link](0, 0.325, 0) *
[Link]([Link](sneaking*45), [Link](punchRotY), 0), 0.2)

lS.C0 = lS.C0:lerp([Link](-0.325, 0.975, 0) *


[Link]([Link]([Link](-60), [Link]([Link](60), idleAnimRotX/20 +
[Link](-hasItemOnHand*10) + [Link](punchRotX) + [Link](damageTime*1.5) +
[Link](walkAnim*getMagnitudeXZ([Link])*5/(1+sneaking)))), 0,
[Link](punchRotZ) + idleAnimRotZ/20), 0.025+([Link](1,
getMagnitudeXZ([Link]))/12)*2 + divide(punchSpeed, 6) + hi)
rS.C0 = rS.C0:lerp([Link](-0.325, 0.975, 0) *
[Link]([Link]([Link](-60), [Link]([Link](60), idleAnimRotX/20 +
[Link](damageTime*1.5) +
[Link](walkAnim*getMagnitudeXZ([Link])*5/(1+sneaking)))), 0,
idleAnimRotZ/20), 0.025+([Link](1, getMagnitudeXZ([Link]))/12)*2)

if [Link] and getDistance([Link].p, [Link].p) <=


10.4 then
if [Link]:FindFirstChild("Humanoid") == nil
and [Link] ~= camera then
[Link] = [Link]
else
[Link] = nil
end
else
[Link] = nil
end

--local neckYRot = [Link]([Link].Y -


[Link].Y)

--neck.C1 = [Link](0, 0.975, 0) *


[Link]([Link](sneaking*45), neckYRot, 0)
--neck.C0 = [Link](0, -0.65, 0) * [Link](-
[Link]([Link].X - [Link].X - (sneaking*45)), 0, 0)

--print(AngleDifference([Link],
[Link]).Y)

local negate = 1
if [Link].Y < 0 then
negate = -1
end

--local vel = [Link]([Link]([Link].Y))*negate


--if vel == [Link] or vel == -[Link] then vel = 0.1 end
--local vel = [Link].Y^0.6

local BobbingY = walkAnim*2


if BobbingY >= 1 then BobbingY = 1 BobbingY = -BobbingY end

local rotationSpeed = AngleDifference([Link],


lastCamRot)

local BobbingX = -0.5 + walkAnim

--cameraHandCFrame = cameraHandCFrame:lerp([Link](1.15*1.3 +
(walkAnim/2 - (walkAnim/4)), -1.35*1.3 + camHandY + (-BobbingY/8) + 0, -0.45 + -
camHandZ + (([Link]/45)-1.6)*1.3) *
[Link]([Link](punchRotXcam), [Link](punchRotYcam),
[Link](punchRotZcam)) * [Link](0, 0, -1.75) *
[Link]([Link](85), [Link](55), [Link](22.5)), 0.25)
cameraHandCFrame =
cameraHandCFrame:lerp([Link]([Link](rotationSpeed.X/1.5),
[Link](rotationSpeed.Y/1.5), [Link](rotationSpeed.Z/1.5)) * [Link](1.15*1.3
+ (BobbingX/3.5), -1.35*1.3 + camHandY + ((0.4-BobbingY)/7) + 0, -0.45 + -camHandZ
+ (([Link]/45)-1.6)*1.3) * [Link]([Link](punchRotXcam),
[Link](punchRotYcam), [Link](punchRotZcam)) * [Link](0, 0, -1.75) *
[Link]([Link](85), [Link](55), [Link](22.5)), 0.25)
humOffset = humOffset:lerp([Link](walkAnim/4 - (walkAnim/8),
BobbingY/13, 0), 0.25)
[Link] = [Link](humOffset.X, humOffset.Y, 0)

[Link] = [Link] * cameraHandCFrame

[Link] = [Link] * [Link](0, -0.5,


0) * [Link]([Link](-210), [Link](-40), [Link](-100)) * [Link](0, -
0.35, 0)

if camCurrentZoom >= 1.5 then


[Link] = 1
for _,t in pairs(cameraHand:GetChildren()) do
if [Link] == 0 then
[Link] = 1
end
end
for _,t in pairs(cameraHandItem:GetChildren()) do
if [Link] == 0 then
[Link] = 1
end
end
else
changedPerspective = 0
[Link] = hasItemOnHand
for _,t in pairs(cameraHand:GetChildren()) do
if [Link] == 1 then
[Link] = hasItemOnHand
end
end
for _,t in pairs(cameraHandItem:GetChildren()) do
if [Link] == 1 then
[Link] = 0
end
end
end

if updateHand == true then


updateHand = false
updateItemOnHand()
end

if punching == 1 and punchEnded == 1 then


punching = 0
--print("steve uses punch!!")
local coPunchCam = [Link](function()
local mult = 2.25
punchRotXcam = 40/2*mult
punchRotYcam = 25/2*mult
camHandZ = 2.5
wait(0.075/4)
punchRotXcam = 50/2*mult
punchRotYcam = 25*mult
punchRotZcam = -10*mult
camHandZ = 1
wait(0.075/4)
punchRotYcam = 50/1.5*mult
punchRotXcam = -10*mult
--wait(0.075/2)
--punchRotYcam = 50
--punchRotXcam = -10
wait(0.02)
punchRotXcam = -20*mult
wait(0.055)
camHandZ = 0
punchRotXcam = 0
punchRotYcam = 0
punchRotZcam = 0
end)
local coPunch = [Link](function()
punchEnded = 0
punchSpeed = 1
punchRotX = -60
punchRotY = -8
punchRotZ = -35

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

local rotX = [Link](math.atan2([Link].Z,


[Link].X)) + 90
if [Link] ~= [Link](0, 0, 0) then
--print(rotX)
bodyRot = bodyRot:lerp([Link](0, -[Link](rotX),
0), 0.125)
[Link] = [Link]([Link].p.X,
[Link].p.Y, [Link].p.Z) * bodyRot
end
local neckYRot = [Link]([Link].Y -
[Link].Y)
neck.C1 = [Link](0, 0.975, 0) *
[Link]([Link](sneaking*45), neckYRot, 0)
neck.C0 = [Link](0, -0.65, 0) * [Link](-
[Link]([Link].X - [Link].X - (sneaking*45)), 0, 0)

local oldTorsoOrientation = [Link]


if AngleDifference([Link], [Link]).Y > 45
then
[Link] = [Link]([Link].p.X,
[Link].p.Y, [Link].p.Z) * [Link](0,
[Link]([Link].Y + 45), 0)
bodyRot = [Link](0, [Link]([Link].Y +
45), 0)
--print("-45")
elseif AngleDifference([Link], [Link]).Y
< -45 then
[Link] = [Link]([Link].p.X,
[Link].p.Y, [Link].p.Z) * [Link](0,
[Link]([Link].Y - 45), 0)
bodyRot = [Link](0, [Link]([Link].Y -
45), 0)
--print("45")
end

lastCamRot = [Link]
neck.C1 = neck.C1 * [Link](0, -
[Link](AngleDifference(oldTorsoOrientation, [Link]).Y), 0)
ticks = ticks + 1
end
end
end

mael saitama script : require(4611907300).xio("Name")

theo backrooms script : require(9263079367)("VictimNameHere")

ellio guns script : require(7507987223)("YourNameHere","Guns")

pour tout le monde goku script : require(7935964098)("yourfulluser")

among us ellio : require(5828018389)("zombiemb3")

model placer tout le monde : require(8837986469).Model_Insert("YourNameHere")

potion mminecraft script: require(8753925776)("YourNameHere",true)

theo tird dimantion script : require(9254836590)("NameHere")
mael minecraft script : -- NOTE (READ!!): This script doesn't wo
local Changelog = [[
   Redstone coming soon. (not... sorry)
   Note (Read!): It will be a very long while till this script g
local creativeInventory = {
{
name = "Dirt",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://15
displayTex = "",
sound = "rbxassetid://1102186681",
soundVol = 1.25,
hasGravity = true,
objectType = "Block"
},
{
name = "Sto
backTex = "rbxassetid://152410853",
topTex = "rbxassetid://152410853",
bottomTex = "rbxassetid://152410853",
leftTex = "rbxas
{
name = "Gold Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://152572121",
backTex = "rbx
soundVol = 2,
hasGravity = false,
objectType = "Block"
},
{
name = "Redstone Ore",
size = Vector3.new(2.6, 2.6, 2.6),
transpa
bottomTex = "rbxassetid://75881126",
leftTex = "rbxassetid://75881126",
rightTex = "rbxassetid://75881126",
displayTex = "",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex = "rbxassetid://151802074",
backTex = "rbxassetid://151802074",
hasGravity = false,
objectType = "Block"
},
{
name = "Diorite",
size = Vector3.new(2.6, 2.6, 2.6),
transparency = 0;
frontTex

You might also like