#help

87 messages · Page 1 of 1 (latest)

sonic fern
#

@chrome edge i wrote this script

local EW1D = game.Workspace.easywall1.Decal
local EW1 = game.Workspace.easywall1

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Shelly" or "shelly" then
            EW1.Transparency = 0.7 
            EW1.CanCollide = false
            wait(3)
            EW1.Transparency = 0
            EW1.CanCollide = true
        end
    end)
end)

but can I add "and" after EW1.Transparency = 0.7, and then write EW1D.Transparency = 0.7? it stops working when i do it

chrome edge
#

alr

sonic fern
#

i wanted to write uh

chrome edge
sonic fern
#

the whole script stops working when i do this

#

lemme type it

chrome edge
#

do what?

chrome edge
sonic fern
#
local EW1D = game.Workspace.easywall1.Decal
local EW1 = game.Workspace.easywall1

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Shelly" or "shelly" then
            EW1.Transparency = 0.7 and EW1D.Transparency = 0.7
            EW1.CanCollide = false
            wait(3)
            EW1.Transparency = 0 and EW1D.Transparency = 0.7
            EW1.CanCollide = true
        end
    end)
end)
chrome edge
#

oh

trail magnet
#

why the and

chrome edge
#

that wont work

trail magnet
#

thats not how lua syntax works

#

just make a new line

sonic fern
chrome edge
#
local EW1D = game.Workspace.easywall1.Decal
local EW1 = game.Workspace.easywall1

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Shelly" or "shelly" then
            EW1.Transparency = 0.7
EW1D.Transparency = 0.7
            EW1.CanCollide = false
            wait(3)
            EW1.Transparency = 0
 EW1D.Transparency = 0.7
            EW1.CanCollide = true
        end
    end)
end)
trail magnet
#

it will

sonic fern
#

oh

chrome edge
sonic fern
#

okej sprobuje

chrome edge
trail magnet
#

ello?

chrome edge
#

pepsi or coke?

trail magnet
#

wth

#

ummmmmmm

#

pepsi.

#

I dont do drugs

chrome edge
chrome edge
sonic fern
#

ale dziala

trail magnet
#

yeah pepsi am sed to it

#

used

chrome edge
chrome edge
trail magnet
#

Also if you want them on the same line you could use ; instead and btw it wont make a diffrence with time

chrome edge
trail magnet
#

probasbly a local script?

chrome edge
#

might be

#

do decals even have a transparency

trail magnet
#

but he shouldnt use and

chrome edge
#

is 0 real

#

what is world

maiden haven
sonic fern
mild elbowBOT
#

studio** You are now Level 2! **studio

trail magnet
#

bro u on coke?

chrome edge
#

iam gonna go get some coke

sonic fern
trail magnet
#

.

chrome edge
chrome edge
chrome edge
chrome edge
#

i love me some sprite and bananas

trail magnet
#
local EW1D = game.Workspace.easywall1.Decal
local EW1 = game.Workspace.easywall1

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Shelly" or "shelly" then
            EW1.Transparency = 0.7; EW1D.Transparency = 0.7
            EW1.CanCollide = false
            wait(3)
            EW1.Transparency = 0; EW1D.Transparency = 0
            EW1.CanCollide = true
        end
    end)
end)
#

if it dosent work make sure its a server one

chrome edge
#

iam gonna go to the park and probably wash myself in a river or sum

trail magnet
#

bro u so random, r u ok?

chrome edge
chrome edge
trail magnet
#

hmmmm oke

chrome edge
#

imma go back later

#

so cya

trail magnet
#

k bye

sonic fern
#

@chrome edge

#

jestes?

#

@alpine turtle

#

can you help?

#

so

#

I have two scripts:

#
local EW1D = game.Workspace.easywall1.Decal
local EW1 = game.Workspace.easywall1

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Shelly" or "shelly" then
            EW1.Transparency = 0.7
            EW1D.Transparency = 0.7
            EW1.CanCollide = false
            wait(3)
            EW1.Transparency = 0
            EW1D.Transparency = 0
            EW1.CanCollide = true
        end
    end)
end)
#

These are all separate and in workspace

#
local EW2D = game.Workspace.easywall2.Decal
local EW2 = game.Workspace.easywall2

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if msg == "Colt" or "colt" then
            EW2.Transparency = 0.7
            EW2D.Transparency = 0.7
            EW2.CanCollide = false
            wait(3)
            EW2.Transparency = 0
            EW2D.Transparency = 0
            EW2.CanCollide = true
        end
    end)
end)
#

But I have a problem

#

When I say Colt or shelly, BOTH walls disappear

#

Instead of the one I want to

#

so how do i fix that?

#

Wait

#

but you typed colt and shelly

#

i want only colt

#

if someone types Colt then ew2 disappears

#

if someone types shelly ew1 disappears

#

Oka

#

And if I were to make a third script like this

#

but if someone said Nita EW3 disappears

#

@alpine turtle