One more thing, the script is indeed smoother but what do I add so the parts can reappear again? It’s fadingstairs in my obby
Didn’t work by the way and I’m doing my best, here’s my script I have right now. Disappears just fine and the parts also reappear, but it’s for every player instead of only the client (player) who steps on the blocks. RunContext is also set to ‘‘Client’’ under the Behavior property:
local TweenService = game:GetService("TweenService")
local block = script.Parent
db = false
local function onTouch()
if db == false then
db = true
for i = 1, 20 do
block.Transparency = i/20
wait(0.05)
end
block.CanCollide = false
wait(2)
block.CanCollide = true
block.Transparency = 0
db = false
end
end
block.Touched:connect(onTouch)
how do you know if it’s for every player? i heard that serverside viewing can sometimes be a bit clunky so instead go to the test tab then start a local server with 2 players
I told my cousin to join, and we tested all potential solutions above 1 by 1 for a while. The latest script I’ve posted above is what I’m now using, and the blocks fade and appear smoothly like butter. Only thing left to do is to make the parts client-based. What I wish for is when I step on the staircase(s), it should only disappear for me and no one else in the server. Searched all over youtube and found nothing as well. Also I use no forms of social media like discord or twitter, i only use youtube!
Touched
signal passes a parameter which is the BasePart
of what touched it, you can check if the BasePart
belongs to the current character with part:IsDescendantOf(game.Players.LocalPlayer.Character)