Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

So can anyone tell me why the hell this is happening?

Asked by 6 years ago
Edited 6 years ago

Im trying to make a tycoon dropper, clientsided and serversided. What i mean with that is that the ore is added to the client and the server. The client wont see the ore on the server while the ore on the client wont exist on the server.

This is the result on the client: https://gyazo.com/243fd9769b5fd8a18abee6305a6d19b6

This is the result on the server: https://gyazo.com/0c05a28e8ec27fe09b0aca5d47205217

The parts arent anchored and theres no invisible wall blocking since it still doesnt work when i turn CanCollide = true. It works fine clientsided. there is no error.

while wait(cool.Value) do
    if script.Parent.Parent == game.Workspace:WaitForChild("Mars"):WaitForChild("Tycoon") and Buildt.Value == true then 

        print("looping")


        local OreClone = MOre:Clone()
        local Name = OreClone.Name

        local PlanetFolder = ServerValues:WaitForChild(Planet.Value)
        local Owner = PlanetFolder:WaitForChild("Owners")
        local plr = Owner.Value


        local plrFolder = PlrFolders:WaitForChild(plr.UserId)
        local Frame = dropper.CFrame * CFrame.new(dropper.CFrame.lookVector * -1)

        OreClone.CanCollide = false

        OreClone.CFrame = Frame
        OreClone.Parent = plrFolder
        OreClone:BreakJoints()

        AddOre:FireClient(plr,Name, Frame)
        OreClone:WaitForChild("Script").Disabled = false
        OreClone:BreakJoints()

    end 
end
0
Well, surely those 2 gifs will make up for the absolute lack of any form of code... Le_Teapots 913 — 6y
0
WHAT even is the code Theroofypidgeot 21 — 6y
0
seeing the code wont help you 1000anton 38 — 6y
0
there you go 1000anton 38 — 6y
View all comments (8 more)
0
what do you mean by 'clientsided and serversided'? can you explain what you mean exactly? brokenVectors 525 — 6y
0
updated 1000anton 38 — 6y
0
Profanity isn't allowed on the website Gey4Jesus69 2705 — 6y
0
lolwut? I don't see any use of profanity in this post at all. Le_Teapots 913 — 6y
0
me neither 1000anton 38 — 6y
0
Profanity Here: The word "HELL", That its used as a swear word. Chris75764 49 — 6y
0
Why don't you just add the ore on only one of these? ax_gold 360 — 6y
0
Becuse it looks better 1000anton 38 — 6y

Answer this question