#Why wont this script work
1 messages · Page 1 of 1 (latest)
nvm just fixed it
whats ya fix i was about to post a fix for ya
I forgot to capitalize the H in the qoutations
local killbrick =
game.Workspace:FindFirstChild("killbrick")
if not killbrick then
warn("killbrick not found in workspace: Creating a new one")
killbrick = Instance.new("Part")
killbrick.Name = "killbrick"
killbrick.Size = Vector3.new(10, 10, 10)
killbrick.Position = Vector3.new(0, 5, 0)
killbrick.Anchored = true
killbrick.CanCollide = true
killbrick.Parent = game.Workspace
end
``` if you ever get a weird thing i do this in all my games for remote events if you evr get a thing where it never makes the block or you forgot its just basically a edgecase fix incase you ever forget to make the actual part that will always be a backup
its just for edge cases and forgetting you dont have to do it at all
its just a tip from me
o alr
for an example
i uuse for like this
local Remotes = ReplicatedStorage:FindFirstChild("Remotes")
if not Remotes then
Remotes = Instance.new("Folder")
Remotes.Name = "Remotes"
Remotes.Parent = ReplicatedStorage
end
** You are now Level 1! **
ohh okay
anyway have a good and fun time learning lua
** You are now Level 6! **