Greetings fellow scripters, I'm here today wondering how I can make a building tool like stamper build, but to place blocks in FE. My goal is to recreate build to survive zombies, with old roblox materials as textures. Why I want to make this game is because it was a really good game back in the time. Anyways, here is my script. It can't use the Z; most likely because I haven't explored a certain thing required for me for this script.
Tool:
script.Parent.Activated:Connect(function()
local mouse = game.Players.LocalPlayer:GetMouse()
local X = mouse.X
local Y = mouse.Y
local Z = mouse.Z
print(X,Y)
game.ReplicatedStorage.BuildObject:InvokeServer(X,Y)
end)
ServerScriptService:
game.ReplicatedStorage.BuildObject.OnServerInvoke = function(X,Y)
local block = Instance.new("Part",workspace)
block.Size = Vector3.new(4,4,4)
block.BrickColor = BrickColor.new("Brown")
local t1 = Instance.new("Texture",block)
local t2 = Instance.new("Texture",block)
local t3 = Instance.new("Texture",block)
local t4 = Instance.new("Texture",block)
local t5 = Instance.new("Texture",block)
local t6 = Instance.new("Texture",block)
t1.Texture = "rbxassetid://155806200"
t2.Texture = "rbxassetid://155806200"
t3.Texture = "rbxassetid://155806200"
t4.Texture = "rbxassetid://155806200"
t5.Texture = "rbxassetid://155806200"
t6.Texture = "rbxassetid://155806200"
t1.Face = "Front"
t2.Face = "Back"
t3.Face = "Bottom"
t4.Face = "Top"
t5.Face = "Left"
t6.Face = "Right"
block.Position = Vector3.new(X,Y,0)
end
I'm quite sorry for the messy code above.

1 comment
Ill be sure to try, thanks. :D