Part Touched Functions (Tutorial)

Pubblicato il: 02 agosto 2018
sul canale di: iDevCodes
194
10

Use .Touched functions on parts to make a function happen.
Script: -| Variables |-

Part = script.Parent --The part being touched
Debounce = true --Debounce is needed to stop the Player from spamming the function and sometimes causing the game to crash.
Baseplate = game.Workspace.Baseplate

-| Function|- e.g. The event that takes place.
Part.Touched:Connect(function()
if Debounce == true then
Baseplate.Transparency = 1
wait(1)
Debounce = false
else
Baseplate.Transparency = 0
wait(1)
Debounce = true
end
end)

Discord: DESIRE#1490

Roblox
Roblox Studio


In questa pagina del sito puoi guardare il video online Part Touched Functions (Tutorial) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato iDevCodes 02 agosto 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 194 volte e gli è piaciuto 10 spettatori. Buona visione!