So I made a brick that when you touch it, a picture is supposed to pop up and play a sound...
script.parent.Touched:connect(function()
local s = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
local i = Instance.new("ImageLabel",game.Players.LocalPlayer.PlayerGui.ScreenGui)
i.Image = "rbxgameasset://Images/fat fedora guy"
i.Size = UDim2.new(0.559, 0,0.683, 0)
i.Position =UDim2.new(0.211, 0,0.089, 0)
local m = Instance.new("Sound",game.Workspace)
m.Volume = 1
m.SoundId = "rbxassetid://256126911"
m:Play()
wait(5)
s:Destroy()
i:Destroy()
m:Destroy()
end)
Why isn't this script working? I tried putting it in a normal script, as well, and it still didn't work.

2 comments
You can only access local player in a local script
Also instead of doing "rbxassetid://256126911" do "http://www.roblox.com/asset/?id=256126911" for SoundId