What do you want to achieve? I want the explosion to not break terrain, it’s set on “NoCraters”
What is the issue? The explosion breaks my terrain even though it’s set on “NoCraters”. I also have tried debugging with the print code, but no success because it didn’t print at all.
What solutions have you tried so far? I have tried getting help from AI, I looked in the dev forum, and still couldn’t get the issue resolved.
Some details: It’s a script not a local one, it’s located in replicatedstorage.
That’s all you need, I guess. If you need more details just ask.
It may very well be that the remote event RemoteEvent is simply not being fired from the client, consider reviewing the scripts that fire that event, and ensure that they all do in fact fire the event.
The script that fires the RemoteEvent is a localscript so it should fire the RemoteEvent since it’s the only script I have that fires a Remoteevent. I have checked out the script it seems okay. It’s a local script for the client that fires a RemoteEvent to the server and then uses a Script to execute action(explosion). I haven’t found any errors too. The localscript is located in a textbutton and the receiver is located in replicatedstorage.
Try replacing ‘game.ReplicatedStorage’ with 'game:GetService(“ReplicatedStorage”). Also, do you have multiple remote events? If so, then try renaming the target remote event to something else.
local RemoteEvent = game:GetService("ReplicatedStorage")
:GetService() acquires the specified service you’re looking for. It’s better than using game.ReplicatedStorage because I’m pretty sure it’s more accurate
Sorry if it’s a bit messy, I’m new to this. This is the fire signal though. [edited: 50% of this script was made with AI because of the buying option.]
local button = script.Parent
local replicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = replicatedStorage:WaitForChild("RemoteEvent")
local productidd = 1839490031
button.Visible = false
local function handleButtonVisibility()
while true do
local duplicants = game.Workspace.duplicants:GetChildren()
local foundPart = false
for _, child in ipairs(duplicants) do
if child.Name == "Part" then
foundPart = true
break
end
end
if foundPart then
task.wait(8)
button.Visible = true
break
end
wait(0.1)
end
end
handleButtonVisibility()
button.MouseButton1Click:Connect(function()
button.Visible = false
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productidd)
end)
game:GetService("MarketplaceService").PromptProductPurchaseFinished:Connect(function(player, produid, waspurch)
if produid == productidd then
if waspurch then
remoteEvent:FireServer()
else
button.Visible = true
end
end
end)
task.wait(60)
button.Visible = true