the remote event just fire without me clicking the button Btw I Repost this because i was shy
script
local player = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
game.Workspace.Tsunami.Tweener7.Disabled = false
print("it works")
player.OnServerEvent:Connect(tsunami)
the print(it works) works but the remote event fires without me clicking the button
btw no errors.
videos: robloxapp-20220205-2257424.wmv (3.6 MB)
local script:
local remote = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
script.Parent.Activated:Connect(function()
remote:FireServer(tsunami)
end)
it needs to spawn the tsunami if i click the button but it doesn’t work
any help will work Btw Play My Game:Coin Mining Simulator - Roblox
local player = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
local tweener = tsunami.Tweener7
local function tsunamiFunction(aplayer)
tweener.Disabled = false
print("it works")
end
player.OnServerEvent:Connect(tsunamiFunction)
local player = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
local tweener = tsunami.Tweener7
local function tsunamiFunction(player)
tweener.Disabled = false
print("it works")
end
player.OnServerEvent:Connect(tsunamiFunction)
There might be other script that run the function so you think the script your editing runned the function. Check your scripts at explorer by searching script.
hmm ok i will ask a few questions.
1- does your script consist of only the things you’ve shown us?
2- is there any other local script that is running also?
local player = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
function run()
game.Workspace.Tsunami.Tweener7.Disabled = false
print("it works")
end
player.OnServerEvent:Connect(run)
Localscript:
local remote = game.ReplicatedStorage.Events.Tsunami
local tsunami = game.Workspace.Tsunami
if not script.Parent:IsA("TextButton") then print('Im not a text button, please change this') return; -- just some debugging incase its not a button
script.Parent.MouseButton1Click:Connect(function()
remote:FireServer(tsunami)
end)