#Clicker Simulator

1 messages · Page 1 of 1 (latest)

worn dawn
#

i'm trying to make a clicker simulator game since i used to love a clicker simulator game 2 years ago that is now gone. i tried to make by myself the thing that makes u click on the entire screen but if i do that i can't move my roblox cam, how do i fix this?

civic stone
#

Can u show me the script?

worn dawn
#

sure, give me a second

worn dawn
#

local replicated = game:GetService("ReplicatedStorage")
local clickEvent = replicated:WaitForChild("ClickEvent")

local player = game.Players.LocalPlayer
local button = script.Parent

local clickSoundEnabled = true
local clickSound = Instance.new("Sound", button)
clickSound.SoundId = "rbxassetid://INSERT_CLICK_SOUND_ID"
clickSound.Volume = 1

button.MouseButton1Click:Connect(function()
clickEvent:FireServer()
if clickSoundEnabled then
clickSound:Play()
end
end)

-- Opzionalmente collegalo al sistema impostazioni
_G.ToggleClickSound = function(on)
clickSoundEnabled = on
end

civic stone
#

Can u show me the server script? Where u handled the clickEvent remote

worn dawn
#

you mean this?

#

because i didn't add any script there

civic stone
#

No no. U fired the server, right? So, show me the script on the server. Or u didnt script nothing on server?

worn dawn
#

im gonna send soon, im currently not at home sorry

civic stone
#

No problem