#can someone told me what did i do wrong in this script?
52 messages · Page 1 of 1 (latest)
i need to when i left from this platform it will disappeared and when i on the platform it will appear
but for some reason when i left from the platform model disappeared only for few seconds
Please give text code, not picture.
local CrystalSlime = game.Workspace.crystal_slime.crystal_slime2
local SpawnZone = game.Workspace.asdasdas
local function onPart2Enter()
game.Workspace.BoolValue.Value = true
task.wait(2)
CrystalSlime.Union1.Transparency = 0
CrystalSlime["body of slime 1"].Transparency = 0.3
CrystalSlime["left crystal"].Transparency = 0
CrystalSlime["right crystal"].Transparency = 0
end
local function onPart2Leave()
if workspace.BoolValue.Value == true then
task.wait(1)
CrystalSlime.Union1.Transparency = 1
CrystalSlime["body of slime 1"].Transparency = 1
CrystalSlime["left crystal"].Transparency = 1
CrystalSlime["right crystal"].Transparency = 1
elseif workspace.BoolValue.Value == false then
CrystalSlime.Union1.Transparency = 1
CrystalSlime["body of slime 1"].Transparency = 1
CrystalSlime["left crystal"].Transparency = 1
CrystalSlime["right crystal"].Transparency = 1
end
end
SpawnZone.TouchEnded:Connect(onPart2Leave)
SpawnZone.Touched:Connect(onPart2Enter)
Dude cmon... Everyone that is trying to help around here would ask to use format... Isnt even that hard
What are you talking about. "Code block" is literally what you sent a sticker of... It may be referred to as "format" too. Not sure why you are coming at me, I'm here to help this guy.
Dude, you are coming at me on 2 posts... I'm just saying what little shit you have to do so I can help
What are you talking about my man. Are you upset I am attempting to multitask by helping multiple people at once?
print("This, is that really hard?")
If that guy can't even use format, why would I use my 2 neurons left to help?
Are you upset at him or me.. I'm failing to understand what you're talking about or to. You replied to me saying "Dude cmon... Everyone that is trying to help around here would ask to use format... Isnt even that hard", when all I said was to use a codeblock, so we can read his code better.
Dude, if you can't put this little effort to type 6 symbols and one word, why would I put the effort to fix your code?
And I'm more mad upset on you for you passive-aggressive attitude
local CrystalSlime = game.Workspace.crystal_slime.crystal_slime2
local SpawnZone = game.Workspace.asdasdas
local function onPart2Enter()
print("onPart2Enter called") -- Add a print statement here
game.Workspace.BoolValue.Value = true
task.wait(2)
CrystalSlime.Union1.Transparency = 0
CrystalSlime["body of slime 1"].Transparency = 0.3
CrystalSlime["left crystal"].Transparency = 0
CrystalSlime["right crystal"].Transparency = 0
end
local function onPart2Leave()
print("onPart2Leave called") -- Add a print statement here
if workspace.BoolValue.Value == true then
task.wait(1)
CrystalSlime.Union1.Transparency = 1
CrystalSlime["body of slime 1"].Transparency = 1
CrystalSlime["left crystal"].Transparency = 1
CrystalSlime["right crystal"].Transparency = 1
elseif workspace.BoolValue.Value == false then
CrystalSlime.Union1.Transparency = 1
CrystalSlime["body of slime 1"].Transparency = 1
CrystalSlime["left crystal"].Transparency = 1
CrystalSlime["right crystal"].Transparency = 1
end
end
SpawnZone.TouchEnded:Connect(onPart2Leave)
SpawnZone.Touched:Connect(onPart2Enter)
and look in console
when and what is called
OH
I see
xDDD
so its will be 1 always
wdym
** You are now Level 3! **
if
player get down
work.BoolValue == true
but even if its true or false
it will still be visisble
visible
after 1 second
why
look
at ur conditions
if workspace.BoolValue.Value == true
--make visible
but also
if workspace.BoolValue.Value == false
-- still makes visible
why u have that bool anyway
You don't make sense, lmao.
change to this instead:
local CrystalSlime = game.Workspace.crystal_slime.crystal_slime2
local SpawnZone = game.Workspace.asdasdas
local function onPart2Enter()
task.wait(2)
CrystalSlime.Union1.Transparency = 0
CrystalSlime["body of slime 1"].Transparency = 0.3
CrystalSlime["left crystal"].Transparency = 0
CrystalSlime["right crystal"].Transparency = 0
end
local function onPart2Leave()
task.wait(1)
CrystalSlime.Union1.Transparency = 1
CrystalSlime["body of slime 1"].Transparency = 1
CrystalSlime["left crystal"].Transparency = 1
CrystalSlime["right crystal"].Transparency = 1
end
SpawnZone.TouchEnded:Connect(onPart2Leave)
SpawnZone.Touched:Connect(onPart2Enter)
You are really annoying...
idk
i thought that i will use different function
but then i remembered about this one
and i stay with bool
tysm anyway
You aren't making any sense, please stop speaking in this guy's post. This is meant to help him which is all I was trying to achieve until you barged in complaining about random things.
Sorry for the drama caused in your post @glacial slate.