So i am trying to make a game were you jump on plates and i wanted to make finish with some effects but once i wrote to scripts it dosen''t work heres the first script

local Blur = game.Lighting.Blur

script.Parent.Touched:Connect(function(hit)

local character = hit.Parent
	local player = game.Players:GetPlayerFromCharacter(character)
	local human = hit.Parent:FindFirstChild("Humanoid") 

if script.Parent.BrickColor.Name == ("New Yeller") then -- reikia dar sutvarkyti
		
		game.ReplicatedStorage.Win:FireClient(player)
		
		Blur.Size = 20
	end
end)

here is the event listener script

game.ReplicatedStorage.Win.OnClientEvent:Connect(function(player)
    print("My dad is back with the milk")
    player.PlayerGui:FindFirstChild("menu3").Visible = true
end)

The first script blurs the screen but i see no signs of the remote event script.

1 comment

0

My suggestion is define Replicated storage as service. Also, is your listener script a local script?