Im trying to make a choice game where one chair explodes and the other doesn't, only problem is the explosion is exploding in a different spot???
p1=game.Workspace.p1block
p2=game.Workspace.p2block
repeat
wait(.1)
until game.Players.LocalPlayer.PlayerGui.ScreenGui
gui=game.Players.LocalPlayer.PlayerGui.ScreenGui
button=gui:WaitForChild("TextButton")
button.Text="ATTEMPT YOUR FATE"
print(button.Text)
local particle= game:GetService("ReplicatedStorage")
choice1=workspace:WaitForChild("Chair1")
choice2=workspace:WaitForChild("Chair2")
gui.TextButton.MouseButton1Down:Connect(function()
chose=math.random(1,2)
print(chose)
if chose==1 then
print("Option1")
local p1=Instance.new("Explosion",p1)
print("Option1")
end
if chose==2 then
print("Option2")
local p1=Instance.new("Explosion",p2)
print("Option2")
end
end)
This is the script.
