generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Roblox . . .

Previous Thread :: Next Thread 
bullseye44 is not online. bullseye44
Joined: 28 Feb 2012
Total Posts: 91
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 is not online. 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 is not online. 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
bullseye44 is not online. bullseye44
Joined: 28 Feb 2012
Total Posts: 91
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
bullseye44 is not online. bullseye44
Joined: 28 Feb 2012
Total Posts: 91
30 Aug 2016 12:34 PM
Bump
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
30 Aug 2016 01:51 PM
I bet you just #### bricks huh
Report Abuse
AxonMega is not online. 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 is not online. 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 is not online. 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
bullseye44 is not online. bullseye44
Joined: 28 Feb 2012
Total Posts: 91
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image