script.Parent.MouseButton1Click:Connect(function()
local SoundService = game:GetService("SoundService")
local sound = game.Workspace.Sounds.Click
SoundService:PlayLocalSound(sound)
local Character = Player.Character
local humanoid = Character:WaitForChild("Humanoid")
local anim = Instance.new("Animation", humanoid)
anim.AnimationId = "http://www.roblox.com/asset/?id=5027685199"
local animTrack = humanoid:LoadAnimation(anim)
animTrack:Play()
Player.PlayerGui.Shop.ShopFrame.Confirm.Visible = true
end)
Player.PlayerGui.Shop.ShopFrame.Confirm.MouseButton1Click:Connect(function()
game.ReplicatedStorage.EventsAndValues.Emote:FireServer(script.Parent.Name)
end)
I have a print emote in the server script I get Emote 4x in the output, this leads to everything messing up and also the character spawns like 4 duplicates of everything inside of it. Which breaks my scripts and such. I just need to make it so the event fires once and once only. I did add a debounce but the same thing just kept happening.
