#Need help

1 messages · Page 1 of 1 (latest)

pale sentinel
#

help me make a script so that when you touch it, the image is visible only to the person who took it, and not to the entire server. Here is the script:

wait(5)
local part = workspace.capuchina
local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
local image = Instance.new("ImageLabel", gui)

gui.Enabled = false
image.Size = UDim2.new(0.3, 0, 0.6, 0)
image.AnchorPoint = Vector2.new(0.5, 0.5)
image.Position = UDim2.new(0.5, 0, 0.5, 0)
image.Image = "rbxassetid://103612459193614"
image.BackgroundTransparency = 1

part.touched:Connect(function(hit)
gui.Enabled = true
task.wait(4)
gui.Enabled = false
end)

plush anvil
#

no

#

local part = workspace.capuchina
local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
local image = Instance.new("ImageLabel", gui)

gui.Enabled = false
image.Size = UDim2.new(0.3, 0, 0.6, 0)
image.AnchorPoint = Vector2.new(0.5, 0.5)
image.Position = UDim2.new(0.5, 0, 0.5, 0)
image.Image = "rbxassetid://103612459193614"
image.BackgroundTransparency = 1

part.Touched:Connect(function(hit)
    -- Check if the player touched the part
    local character = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(character)

    -- If the object hit is part of a player's character, show the image
    if player then
        gui.Enabled = true
        task.wait(4)
        gui.Enabled = false
    end
end)
pale sentinel
#

BRUH CHATGPT

plush anvil
#

?

runic islandBOT
#

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

plush anvil
#

wym man

#

!!

pale sentinel
#

this script don't work

plush anvil
#

to actually make it

#

💔

pale sentinel
#

bruh

plush anvil
#

someone would come and hlep you

#

dw

#

man

pale sentinel
#

i think

plush anvil
#

what

pale sentinel
#

someone help me

plush anvil
#

no

tight kelp
plush anvil
#

yeah

#

i agree

pale sentinel
#

how i can made it?

plush anvil
#

!

pale sentinel
#

i 0 in scripting

#

i don't know any

plush anvil
#

so who scripted that

pale sentinel
#

my friend

#

how i need enable/disable script?

#

@tight kelp

#

help please

plush anvil
#

bro dont wat to help

#

💀

#

👲

pale sentinel
#

shut up bruh

plush anvil
#

thats not nice

pale sentinel
#

help - ⛔
LOLL - ✅

plush anvil
#

?

pale sentinel
#

you can't help

#

you write in SCRIPTING-HELP

#

BRUH

plush anvil
#

oh yeah that was bc its harder then waht your doing

snow estuary
#

CREATING an image label, setting its position

snow estuary
autumn oyster
#

why are u creating gui at runtime

blissful orchid
#
local image = Instance.new("ImageLabel", gui)
image.Size = UDim2.new(0.3, 0, 0.6, 0)
image.AnchorPoint = Vector2.new(0.5, 0.5)
image.Position = UDim2.new(0.5, 0, 0.5, 0)
image.Image = "rbxassetid://103612459193614"
image.BackgroundTransparency = 1
image.Visible = false --dont use gui.Enabled

local part = workspace.capuchina

part.touched:Connect(function(hit)
    image.Visible = true
    task.wait(4)
    image.Visible = false
end)``` put this *local script* in your gui
#

should work

misty flicker
misty flicker