Is there any possible method i can use to add a script on the player when he buy it on Shop?
COMMUNITY QUESTION
How to clone a script to the player?
1 answer
make sure this is in a local script :P
local player = game.Players.LocalPlayer
function Buy()
local script = game.Lighting.Script:Clone()
script.Parent = player
end
buybutton.MouseButton1Click:connect(Buy)
This discussion is preserved as it was. New answers, comments, and votes are closed.
