#Screen gui

1 messages · Page 1 of 1 (latest)

dense torrent
#

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)

civic vortex
#

Just add a check to see if game.Players:GetPlayerFromCharacter(hit.Parent) == localPlayer

dense torrent
#

pls correct my 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)

#

i copy your

civic vortex
#

It’s 1 line mate

dense torrent
#

second

#

wait(5)
if game.Players:GetPlayerFromCharacter(hit.Parent) == localPlayer
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)
i have bad script

#

hit, localplayer

#

red

#

pls write normal script for me

#

@civic vortex

dense torrent
#

please

#

i new scripter

#

i need only this

#

please

civic vortex
#

I gave you the bricks, now you can go and solve this issue. I almost wrote the entire line that you needed to add

dense torrent
#

bruh

#

say any tutorial

#

pls

#

i 0 in scripting

sharp kiln
#

ts actually sad af 😭

granite hedge
#

@dense torrent

#

something like this?

dense torrent
#

yes, but i made a image

#

watch