#Why wont this script work

1 messages · Page 1 of 1 (latest)

wind maple
#

you need

tawdry vine
#

nvm just fixed it

wind maple
#

whats ya fix i was about to post a fix for ya

tawdry vine
#

I forgot to capitalize the H in the qoutations

wind maple
#

ah lmao yeah that can get you sometimes

#

want a tip btw?

tawdry vine
#

sure

#

i just started scripting like 4 days ago

wind maple
#
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

tawdry vine
#

wow alright

#

thanks

wind maple
#

soz

#

its FindFirstChild

tawdry vine
#

o alr

wind maple
#

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
eternal sentinelBOT
#

studio** You are now Level 1! **studio

tawdry vine
#

ohh okay

wind maple
#

anyway have a good and fun time learning lua

tawdry vine
#

i understand it better now

#

thanks

wind maple
#

its a great language

#

tho i lean more to c/c++

#

have a good day! byee

tawdry vine
#

alr cya

#

imma delete this post so it wont trip others up

eternal sentinelBOT
#

studio** You are now Level 6! **studio