I want it to like when the player selects the dialogChoice the value named "Owner" inside of the object to change to the players name when selected. hope this isn't to not understandable?
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if choice == script.Parent.Choice1 then
local boat = game.Lighting.yo:clone()
boat.Parent=player.Character
boat:makeJoints()
if boat.Parent.Owner.Value==nil then
boat.Parent.Owner.Value=player.Character.Name
return
end
end
end)

2 comments
Hit edit, then put your code in the code block with the 'Lua