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

Can Someone Tell me Why this tool/Script is Client Sided Only?

Asked by 4 years ago
Edited by theking48989987 4 years ago
bin = script.Parent
me = script.Parent.Parent.Parent
Player = game.Players.LocalPlayer
Character = Player.Character

enabled = true

function onButton1Down(mouse)
if not enabled then
        return
    end

    local player = game.Players.LocalPlayer
    if player == nil then return end



      enabled = false

game:GetService("Chat"):Chat(me.Character.Head, "Golden Dust: Drill!")
script.Parent.Jutsu:Play()
game.Players.LocalPlayer.PlayerGui.Chakra.Clock.Value=game.Players.LocalPlayer.PlayerGui.Chakra.Clock.Value -250
wait(0.01)
Character.Torso.Anchored = false
wait(0.1)

Character.Humanoid.Name = "Humanoid2"

        x = Instance.new("Part")
        x.BrickColor = BrickColor.new("Bright yellow")
        x.Size = Vector3.new(80,1,80)
        x.TopSurface = "Smooth"
        x.BottomSurface = "Smooth"
        x.Shape = "Block"
        x.Name = me.Name
        x.CanCollide = false
        x.Transparency = 0
        x.Material = "Sand"
        fd = script.Fall:clone()
        fd.Parent = x
        m = Instance.new("CylinderMesh")
        m.Parent = x
        sd = script.Firedamage:clone()
        sd.Parent = x
        x.Anchored = true
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = me.Character.Torso.CFrame.lookVector*0
        x.Parent = Workspace
        y.Parent = x
        x.CFrame = me.Character.Torso.CFrame*CFrame.new(0,-2, -50)
        game.Debris:AddItem(x, 5)
        x = Instance.new("Part")
        x.BrickColor = BrickColor.new("Bright yellow")
        x.Size = Vector3.new(80,100,80)
        x.TopSurface = "Smooth"
        x.BottomSurface = "Smooth"
        x.Shape = "Block"
        x.Name = me.Name
        x.CanCollide = false
        x.Transparency = 0
        x.Material = "Sand"
        fd = script.Fall:clone()
        fd.Parent = x
        m = Instance.new("SpecialMesh")
        m.Parent = x
        m.MeshType = "FileMesh"
        m.MeshId = "http://www.roblox.com/asset/?id=1323306"
        m.Scale = Vector3.new(30, 10, 30)
        sd = script.Firedamage:clone()
        sd.Parent = x
        x.Anchored = true
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = me.Character.Torso.CFrame.lookVector*0
        x.Parent = Workspace
        y.Parent = x
        x.CFrame = me.Character.Torso.CFrame*CFrame.new(0,0, -50)
        game.Debris:AddItem(x, 5)
        x = Instance.new("Part")
        x.BrickColor = BrickColor.new("Bright yellow")
        x.Size = Vector3.new(50,100,50)
        x.TopSurface = "Smooth"
        x.BottomSurface = "Smooth"
        x.Shape = "Block"
        x.Name = me.Name
        x.CanCollide = false
        x.Transparency = 0
        x.Material = "Sand"
        fd = script.Fall:clone()
        fd.Parent = x
        m = Instance.new("SpecialMesh")
        m.Parent = x
        m.MeshType = "FileMesh"
        m.MeshId = "http://www.roblox.com/asset/?id=102638417"
        m.Scale = Vector3.new(-30.3, 30.3, -30.3)
        ed = script.Ignition:clone()
        ed.Parent = x
        hd = script.Animate:clone()
        hd.Parent = x
        sd = script.Firedamage:clone()
        sd.Parent = x
        x.Anchored = true
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = me.Character.Torso.CFrame.lookVector*0
        x.Parent = Workspace
        y.Parent = x
        x.CFrame = me.Character.Torso.CFrame*CFrame.new(0,20, -50)
        game.Debris:AddItem(x, 5)

wait(5)
Character.Humanoid2.Name = "Humanoid"
Character.Torso.Anchored = false





      wait(35)

enabled = true
    end



enabled = true
function onS(mouse) 
mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
end 
bin.Selected:connect(onS)

2 answers

Log in to vote
0
Answered by 4 years ago

Any values, properties or anything in general you change except your own Character won't be replicated to the whole server, just for you to see only; This is because Filtering is Enabled as default.

Ad
Log in to vote
0
Answered by 4 years ago

It's because it uses LocalPlayer. LocalPlayer can't be accessed from the Server.

0
^ http_shawn 1 — 4y

Answer this question