So, I want to detect if a player has bought a developer product and then spawn a mesh part in ServerStorage any ideas?
This is the script inside of the tsunami
--Variables--
local Brick = script.Parent
--End--
--Code--
local function PlayerTouched(Part)
local Parent = Part.Parent
if game.Players:GetPlayerFromCharacter(Parent) then
Parent.Humanoid.Health = 0
end
end
Brick.Touched:connect(PlayerTouched)
local sp = script.Parent.Speed.Value
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 0, -sp)
wait()
end