So I'm very VERY new so, I wanna start simple, by making a block building game, I tried to play with my friend but apparently, friend can't see my blocks, neither can I see theirs, code works fine but I think its the local script I used, I know that I needed a server script, but idk how... Help me pls!
-Local Script-
local Tool = script.Parent
Tool.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function()
local clone = game.ReplicatedStorage.Part:Clone()
clone.Parent = workspace
clone.Position = script.Parent.INVI.Position
clone.Orientation = script.Parent.INVI.Orientation
end)
end)
local Nothing = 0
repeat game.ReplicatedStorage.Part.BrickColor = BrickColor.new("Really red") wait (.1) game.ReplicatedStorage.Part.BrickColor = BrickColor.new("Deep orange") wait (.1) game.ReplicatedStorage.Part.BrickColor = BrickColor.new("New Yeller") wait (.1) game.ReplicatedStorage.Part.BrickColor = BrickColor.new("Lime green") wait (.1) game.ReplicatedStorage.Part.BrickColor = BrickColor.new("Really blue") wait (.1) game.ReplicatedStorage.Part.BrickColor = BrickColor.new("Royal purple") wait (.1) until Nothing == 1

1 comment
Please fixit, and put it in code line