Why does this only work in Test mode? [ADDED SCRIPT :D]
Hi, I'm making a One Piece game- a Anime-based game.
And I already made the Data. Now every time someone spawns into my game, a GUI will pop up on their screen.
My problem is that it only works in ROBLOX studio. i.e, when I'm testing it.
It even changes the StringValue in the Data. And it's supposed to clone a tool in the lighting, and deliver it to my Backpack. As I said, it works fine in Studio. It's when I play the game in a server.
02 | ScreenGui = script.Parent.Parent |
03 | StarterGui = script.Parent.Parent.Parent |
04 | local Player = game.Players.LocalPlayer |
05 | mouse = Player:GetMouse() |
06 | function DataClone(mouse) |
07 | LKS = game.Lighting.KnightsSword:clone() |
08 | LKS.Parent = Player.Backpack |
09 | Player.Data.Weapon.Value = "KS" |
10 | dope = ScreenGui:GetChildren() |
11 | for i, v in pairs (dope) do |
15 | script.Parent.MouseButton 1 Click:connect(DataClone) |