|
| 30 Aug 2016 12:00 PM |
Alright so I went and made myself a brick using Instance.New
I throw a disabled script into it. And then made disabled = false. But the script didn't do a thing.
I tested this in the real game. It fails I tested this in RblStudio with Server + 1 Player And it failed I tested this in RblStudio with Play mode and it worked...
So I thought maybe it was because I was using a local script to disabled a global script. That's not why, it still worked in play mode. But failed in the others
And I even moved the script unto the instant brick Manually while testing in Server + 1 player mode. Then disabled it and the script didn't activate.
Why is the global script not activating once I move it (using a local script) into an instance.new brick.
P.S. I looked in the instance brick and the script was there and it's disable was false. So it got there but it just didn't do anything. Not even print. |
|
|
| Report Abuse |
|
|
isc88
|
  |
| Joined: 30 May 2013 |
| Total Posts: 27545 |
|
|
| 30 Aug 2016 12:03 PM |
did you set the Instance.New brick's parent? Example
local brick = Instance.new("Part") brick.Parent = game.Workspace
isc88 R$128 72,500 |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 30 Aug 2016 12:04 PM |
| If FilteringEnabled is on, it explains why it can't change a server script. Its status of being enabled is not replicated and hence does not run on the server. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 12:07 PM |
Filtering enabled is not on
Yes, the brick in parented to workspace. The brick is fine. It's just the script I assume. |
|
|
| Report Abuse |
|
|
| |
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 30 Aug 2016 01:51 PM |
| I bet you just #### bricks huh |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 30 Aug 2016 01:53 PM |
Go away Monadic. Nobody likes you.
@bullseye What's the script? |
|
|
| Report Abuse |
|
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 30 Aug 2016 01:54 PM |
| And yet you seek self-gratification by telling me that in attempt to feel better about yourself. |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 30 Aug 2016 01:55 PM |
| Hey, I'm just saying what everyone else was already thinking. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2016 03:05 PM |
tool.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() local target = mouse.Target if target.Name == "MilkMachine" then local g = Instance.new("Part",game.workspace) g.BrickColor = BrickColor.new("Institutional white") g.Material = "SmoothPlastic" local p = Instance.new("StringValue", g) p.Name = "PValue" p.Value = player.Name g.Name = "Milk1" g.Rotation = Vector3.new(-90, 90, 0) g.Anchored = true g.Size = Vector3.new(1.6, 1.3, 1.1) g.Shape = "Cylinder" g.CFrame = target.CFrame * CFrame.new(1,0,0)* CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) local clne = game.Workspace.ClickBricksFood.ClickBrickM.MilkScript:Clone() clne.Parent = g clne.Disabled = false tool:Destroy() end end) end)
This is the script that clones the script I want into the instance. |
|
|
| Report Abuse |
|
|