Guis not updating

Sorry, but i dont think this will work because the button will be used for another event too, at least for now

Then it’d be great if you could answer these question

Screenshot 2024-01-12 173417

the button is the one at the bottom and the gui is at the top

There was a typo in your first script, “connect” I fixed it an added some things in the second script, just copy paste the two and replace them with your current ones

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function() -- you made a typo
	
	ReplicatedStorage.WeaponDescriptionEvent.Sword:Fire()

	
end)
local name = script.Parent.SwordName
local desc = script.Parent.SwordDesc
local image = script.Parent.ImageLabel
local replicatedstorage = game:GetService("ReplicatedStorage")
local sword = replicatedstorage.WeaponDescriptionEvent:WaitForChild("Sword")
--rbxasset://textures/ui/GuiImagePlaceholder.png

local function onsword()
	
	name.Text = "Sword"
	desc.Text = "Just A Regular Sword, Nothing Special About Em'"
	image.Image = "rbxassetid://15682244886"
	
end´

sword.Event:Connect(onsword)
2 Likes

alright, thanks a lot, it worked!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.